-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (42 loc) · 1.26 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
plugins {
id 'java'
id 'maven-publish'
}
group = "net.mitask"
version = project.hasProperty("override_version") ? (project.properties["override_version"] as String).substring(0, 7) : "1.1.0"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.projectlombok:lombok:1.18.34"
annotationProcessor "org.projectlombok:lombok:1.18.34"
implementation "com.google.auto.service:auto-service:1.1.1"
annotationProcessor "com.google.auto.service:auto-service:1.1.1"
implementation "org.slf4j:slf4j-api:1.7.27"
implementation "com.google.code.gson:gson:2.11.0"
implementation "org.yaml:snakeyaml:2.3"
}
publishing {
repositories {
maven {
name = "glassMaven"
credentials(PasswordCredentials)
def projVer = project.version as String
if (projVer.endsWith("-SNAPSHOT") || (projVer.indexOf('.') == -1)) {
url = "https://maven.glass-launcher.net/snapshots"
} else {
url = "https://maven.glass-launcher.net/releases"
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}