-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
56 lines (46 loc) · 1.39 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
import org.gradle.api.JavaVersion.VERSION_11
import org.gradle.api.JavaVersion.VERSION_1_8
plugins {
kotlin("jvm") version "1.2.61"
id("net.minecrell.licenser") version "0.3"
id("com.github.johnrengelman.shadow") version "2.0.4"
id("org.openjfx.javafxplugin") version "0.0.8"
id("application")
}
allprojects {
apply(plugin = "application")
group = "me.minidigger"
version = "0.0.1-SNAPSHOT"
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
application {
mainClassName = "me.minidigger.minecraftlauncher.launcher.LauncherMain"
}
}
subprojects {
apply(plugin = "kotlin")
apply(plugin = "java")
apply(plugin = "net.minecrell.licenser")
apply(plugin = "com.github.johnrengelman.shadow")
apply(plugin = "org.openjfx.javafxplugin")
java.sourceCompatibility = VERSION_11
java.targetCompatibility = VERSION_11
val compileJava by tasks.getting(JavaCompile::class) {
options.compilerArgs.add("-proc:none")
options.encoding = "UTF-8"
}
javafx {
version = "13"
modules("javafx.controls", "javafx.fxml", "javafx.web")
}
license {
header = rootProject.file("LICENSE")
filter.include("**/*.java")
filter.include("**/*.kt")
filter.exclude("**/jmccc/**")
}
}