-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (50 loc) · 1.35 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
plugins {
id("java-library")
id("maven-publish")
}
group = "cloud.grabsky"
version = "1.20.1-${System.getenv("GITHUB_RUN_NUMBER") ?: "DEV"}"
repositories {
mavenCentral()
maven { url = "https://repo.papermc.io/repository/maven-public/" }
}
dependencies {
// JetBrains Annotations
compileOnly("org.jetbrains:annotations:24.1.0")
// Lombok
compileOnly("org.projectlombok:lombok:1.18.32")
annotationProcessor("org.projectlombok:lombok:1.18.32")
// Paper API
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
}
publishing {
repositories {
maven {
url = "https://maven.pkg.github.com/Grabsky/commands"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register("maven", MavenPublication.class) {
from components.java
}
}
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
javadoc {
(options as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet")
}
tasks.register("release") {
print("${version.toString().split('-')[0]} #${System.getenv("GITHUB_RUN_NUMBER")}")
}
tasks.register("tag") {
print(version)
}