forked from CadixDev/at
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
61 lines (50 loc) · 1.29 KB
/
build.gradle.kts
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
59
60
61
plugins {
`java-library`
`maven-publish`
id("net.kyori.indra.licenser.spotless") version "3.1.3"
}
val baseVersion: String by project
version = baseVersion + "." + (System.getenv("GITHUB_RUN_NUMBER") ?: "9999")
logger.lifecycle(":building at v${version}")
java {
sourceCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
api("org.cadixdev:bombe:0.3.4")
api("net.fabricmc:mapping-io:0.4.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.1")
}
tasks.withType<Jar>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
tasks.withType<Test> {
useJUnitPlatform()
}
indraSpotlessLicenser {
licenseHeaderFile("LICENSE")
newLine(true)
}
publishing {
publications {
register<MavenPublication>("mavenJava") {
from(components["java"])
}
}
repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
setUrl("https://deploy.shedaniel.me/")
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}