-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
53 lines (46 loc) · 1.22 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
allprojects {
repositories {
maven {
url = uri("https://repo.osgeo.org/repository/release/")
}
mavenCentral()
maven {
url = uri("https://clojars.org/repo/")
}
maven {
url = uri("https://maven.geotoolkit.org/")
}
}
}
subprojects {
apply {
plugin("java")
plugin("jacoco")
}
configurations {
get("implementation").isTransitive = false
get("compileOnly").isTransitive = false
get("testImplementation").isTransitive = false
}
repositories {
mavenLocal()
}
tasks.withType(JavaCompile::class) {
options.encoding = "utf-8"
}
dependencies {
add("testImplementation", "junit:junit:4.11")
}
tasks["jacocoTestReport"].dependsOn("test")
tasks["check"].dependsOn("jacocoTestReport")
tasks.register("sourcesJar", Jar::class) {
archiveClassifier.set("sources")
from("src/main/java", "src/main/resources")
}
tasks.register("javadocJar", Jar::class) {
dependsOn("javadoc")
archiveClassifier.set("javadoc")
from("build/docs/javadoc")
}
tasks["assemble"].dependsOn("sourcesJar", "javadocJar")
}