-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
119 lines (104 loc) · 3.41 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import com.techshroom.inciseblue.commonLib
import net.minecrell.gradle.licenser.LicenseExtension
plugins {
id("com.techshroom.incise-blue") version "0.3.14"
id("com.github.johnrengelman.shadow") version "5.0.0"
id("net.researchgate.release") version "2.8.0" apply false
}
subprojects {
version = rootProject.version
apply(plugin = "com.techshroom.incise-blue")
apply(plugin = "java-library")
inciseBlue {
util {
javaVersion = JavaVersion.VERSION_1_8
}
ide()
license()
lwjgl {
lwjglVersion = "3.1.3"
}
}
configure<LicenseExtension> {
exclude("**/Sync.java")
exclude("**/Color.java")
}
dependencies {
"compileOnly"("com.techshroom", "jsr305-plus", "0.0.1")
commonLib("com.google.auto.service", "auto-service", "1.0-rc5") {
"compileOnly"(lib())
"annotationProcessor"(lib())
}
commonLib("com.google.auto.value", "auto-value", "1.6.5") {
"compileOnly"(lib("annotations"))
"annotationProcessor"(lib())
}
"testImplementation"("junit", "junit", "4.12")
"testImplementation"("ch.qos.logback", "logback-classic", "1.2.3")
"testImplementation"("ch.qos.logback", "logback-core", "1.2.3")
}
}
listOf("api", "ap", "implementation", "bale-out").map { project(":$it") }.forEach {
it.apply(plugin = "net.researchgate.release")
}
listOf("api", "ap", "implementation").map { project(":$it") }.forEach {
it.inciseBlue.maven {
projectDescription = "UnplannedDescent"
coords("TechShroom", "UnplannedDescent")
}
}
project(":api") {
inciseBlue.lwjgl {
addDependency("")
addDependency("stb")
}
dependencies {
"api"("org.slf4j", "slf4j-api", "1.7.25")
"api"("com.flowpowered", "flow-math", "1.0.3")
"api"("com.google.guava", "guava", "23.0")
"implementation"("net.java.dev.jna", "jna", "4.5.0")
"implementation"("com.github.luben", "zstd-jni", "1.3.2-2")
commonLib("org.eclipse.collections", "eclipse-collections", "9.0.0") {
"api"(lib("api"))
"implementation"(lib())
}
}
}
project(":ap") {
dependencies {
"implementation"(project(":api"))
"implementation"("com.google.auto", "auto-common", "0.8")
"implementation"("com.squareup", "javapoet", "1.9.0")
"testImplementation"("com.google.testing.compile", "compile-testing", "0.12")
}
}
project(":implementation") {
inciseBlue.lwjgl {
addDependency("")
addDependency("opengl")
addDependency("openal")
addDependency("glfw")
addDependency("nanovg")
addDependency("stb")
}
dependencies {
"implementation"(project(":api"))
"implementation"("com.squareup", "javapoet", "1.9.0")
}
}
project(":examples") {
dependencies {
"implementation"(project(":api"))
"annotationProcessor"(project(":ap"))
"compileOnly"(project(":ap"))
"runtime"(project(":implementation"))
"implementation"("ch.qos.logback", "logback-classic", "1.2.3")
"implementation"("ch.qos.logback", "logback-core", "1.2.3")
}
apply(plugin = "com.github.johnrengelman.shadow")
tasks.named<Jar>("jar") {
manifest {
attributes("Main-Class" to "com.techshroom.unplanned.examples.ExamplePicker")
}
}
}