-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
43 lines (37 loc) · 1.06 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
plugins {
`java-library`
`maven-publish`
}
group = "org.cameek"
version = "8.362"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
publishing {
publications {
create<MavenPublication>("myLibrary") {
from(components["java"])
}
}
repositories {
maven {
name = "myRepo"
url = uri(layout.buildDirectory.dir("repo"))
}
}
}
//tasks.withType<JavaCompile> {
// val javaCompile = this
// doFirst {
// val task = this
// // if ((java.sourceCompatibility == JavaVersion.VERSION_1_8) && System.env.JDK6_HOME != null) {
// // javaCompile.options.bootstrapClasspath?.files?.add(File(""))
// //options.fork = true
// // options.bootClasspath = "$System.env.JDK6_HOME/jre/lib/rt.jar"
// // options.bootClasspath += "$File.pathSeparator$System.env.JDK6_HOME/jre/lib/jsse.jar"
// // use the line above as an example to add jce.jar
// // and other specific JDK jars
// // }
// }
//}