forked from aromaa/WorldGuardExtraFlags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
53 lines (46 loc) · 1.12 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
import kr.entree.spigradle.kotlin.paper
import kr.entree.spigradle.kotlin.papermc
import kr.entree.spigradle.module.common.YamlGenerate
plugins {
// lombok + annotation processing
id("io.freefair.lombok") version "6.0.0-m2"
// spigradle for quick dep resolution
id("kr.entree.spigradle") version "2.2.3"
// spotless for formatting
id("com.diffplug.spotless") version "5.12.5"
java
}
allprojects {
// set the global version
version = "4.2.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
papermc()
}
// disable yaml generation by default
tasks.withType<YamlGenerate> {
enabled = false
}
}
subprojects {
apply(plugin = "java")
apply(plugin = "io.freefair.lombok")
apply(plugin = "com.diffplug.spotless")
dependencies {
compileOnly(paper())
}
// target jvm 14
tasks.withType<JavaCompile> {
targetCompatibility = JavaVersion.VERSION_14.toString()
sourceCompatibility = JavaVersion.VERSION_14.toString()
}
spotless {
java {
importOrder()
removeUnusedImports()
eclipse().configFile(rootProject.file("eclipse-ddd-modified.xml"))
licenseHeaderFile(rootProject.file("LICENSE_HEADER"))
}
}
}