Skip to content

Commit d7d2cab

Browse files
committed
chore: convert gradle files to kotlin dsl
1 parent 21fe5be commit d7d2cab

File tree

19 files changed

+207
-167
lines changed

19 files changed

+207
-167
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
*.sw?
2-
gradle
32
env.sh
43
.gradle
54
.classpath

build.gradle

Lines changed: 0 additions & 80 deletions
This file was deleted.

build.gradle.kts

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
plugins {
2+
`java-library`
3+
id("com.diffplug.spotless") version "5.14.0"
4+
id("io.papermc.paperweight.userdev") version "1.3.1"
5+
}
6+
7+
dependencies {
8+
paperDevBundle("1.18-R0.1-SNAPSHOT")
9+
}
10+
11+
java {
12+
sourceCompatibility = JavaVersion.VERSION_17
13+
}
14+
15+
subprojects {
16+
apply(plugin = "java-library")
17+
apply(plugin = "java")
18+
apply(plugin = "com.diffplug.spotless")
19+
20+
group = "org.oddlama.vane"
21+
version = "1.3.2"
22+
23+
repositories() {
24+
mavenCentral()
25+
maven("https://papermc.io/repo/repository/maven-public/")
26+
maven("https://repo.dmulloy2.net/nexus/repository/public/")
27+
maven("https://repo.mikeprimm.com/")
28+
maven("https://repo.codemc.org/repository/maven-public/")
29+
maven("https://jitpack.io")
30+
}
31+
32+
tasks.withType<JavaCompile> {
33+
options.compilerArgs.addAll(arrayOf("-Xlint:all", "-Xlint:-processing", "-Xdiags:verbose"))
34+
}
35+
36+
dependencies {
37+
compileOnly(group = "org.jetbrains", name = "annotations", version = "20.0.0")
38+
annotationProcessor("org.jetbrains:annotations:20.0.0")
39+
}
40+
41+
spotless {
42+
java {
43+
importOrder()
44+
removeUnusedImports()
45+
}
46+
}
47+
}
48+
49+
configure(subprojects.filter {
50+
!listOf("vane-waterfall").contains(it.name)
51+
}) {
52+
apply(plugin = "io.papermc.paperweight.userdev")
53+
54+
dependencies {
55+
paperDevBundle("1.18-R0.1-SNAPSHOT")
56+
}
57+
58+
tasks {
59+
build {
60+
dependsOn("reobfJar")
61+
}
62+
}
63+
}
64+
65+
configure(subprojects.filter {
66+
!listOf("vane-annotations", "vane-waterfall").contains(it.name)
67+
}) {
68+
tasks.create<Copy>("copyJar") {
69+
from("jar")
70+
into("${project.rootProject.projectDir}/target")
71+
}
72+
73+
tasks {
74+
build {
75+
dependsOn("copyJar")
76+
}
77+
78+
processResources {
79+
filesMatching("**/plugin.yml") {
80+
expand(project.properties)
81+
}
82+
}
83+
}
84+
85+
dependencies {
86+
implementation(group = "com.comphenix.protocol", name = "ProtocolLib", version = "4.8.0-SNAPSHOT")
87+
88+
compileOnly(project(":vane-annotations"))
89+
annotationProcessor(project(path = ":vane-annotations", configuration = "reobf"))
90+
}
91+
}
92+
93+
configure(subprojects.filter {
94+
!listOf("vane-annotations", "vane-core", "vane-waterfall").contains(it.name)
95+
}) {
96+
dependencies {
97+
implementation(project(path = ":vane-core", configuration = "shadow"))
98+
}
99+
}

gradle/wrapper/gradle-wrapper.jar

57.8 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 0 additions & 12 deletions
This file was deleted.

settings.gradle.kts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
pluginManagement {
2+
repositories {
3+
gradlePluginPortal()
4+
maven("https://papermc.io/repo/repository/maven-public/")
5+
}
6+
}
7+
8+
rootProject.name = "vane"
9+
10+
include(":vane-admin")
11+
include(":vane-annotations")
12+
include(":vane-bedtime")
13+
include(":vane-core")
14+
include(":vane-enchantments")
15+
include(":vane-permissions")
16+
include(":vane-portals")
17+
include(":vane-regions")
18+
include(":vane-trifles")
19+
include(":vane-waterfall")

vane-bedtime/build.gradle

Lines changed: 0 additions & 3 deletions
This file was deleted.

vane-bedtime/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies {
2+
implementation(group = "us.dynmap", name = "dynmap-api", version = "3.2-SNAPSHOT")
3+
}

vane-core/build.gradle

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)