-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
93 lines (81 loc) · 2.37 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
plugins {
`java-library`
id("org.cadixdev.licenser") version "0.6.1"
`maven-publish`
id("com.github.ben-manes.versions") version "0.39.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.kyori.indra") version "2.1.0"
id("net.kyori.indra.publishing.sonatype") version "2.1.0"
id("org.spongepowered.gradle.sponge.dev") version "1.1.1"
id("org.checkerframework") version "0.6.8"
}
repositories {
mavenCentral()
}
val organization: String by project
val projectUrl: String by project
val junitVersion: String by project
val mockitoVersion: String by project
license {
properties {
this["name"] = "collections"
this["organization"] = organization
this["url"] = projectUrl
}
header(rootProject.file("HEADER.txt"))
include("**/*.java")
newLine(false)
}
dependencies {
// fastutil
implementation("it.unimi.dsi:fastutil-core:8.5.8")
// Tests
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.mockito:mockito-core:$mockitoVersion")
testImplementation("org.mockito:mockito-junit-jupiter:$mockitoVersion")
testImplementation("org.mockito:mockito-inline:$mockitoVersion")
}
checkerFramework {
// checkers = listOf(
// "org.checkerframework.checker.nullness.NullnessChecker",
// "org.checkerframework.checker.units.UnitsChecker"
// )
}
tasks {
shadowJar {
minimize()
relocate("it.unimi.dsi.fastutil", "org.spongepowered.collections.libs.fastutil")
}
}
spongeConvention {
repository("collections") {
ci(true)
publishing(true)
}
mitLicense()
}
indra {
javaVersions() {
target(8)
testWith(8,11,17)
minimumToolchain(17)
}
configurePublications {
pom {
developers {
developer {
id.set("gabizou")
name.set("Gabriel Harris-Rouquette")
email.set("[email protected]")
}
developer {
id.set("Deamon")
name.set("Nick Conde")
email.set("[email protected]")
}
}
}
}
}