diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..f97ebb7d --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.parallel=true diff --git a/hCore-bukkit/build.gradle b/hCore-bukkit/build.gradle index a512afb1..1e40639f 100644 --- a/hCore-bukkit/build.gradle +++ b/hCore-bukkit/build.gradle @@ -24,3 +24,71 @@ dependencies { implementation project(':hCore-bukkit:nms:v1_19_R3') implementation project(':hCore-bukkit:nms:v1_20_R1') } + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', + + ':hCore-bukkit:nms:v1_8_R3:jar', + ':hCore-bukkit:nms:v1_8_R3:shadowJar', + + ':hCore-bukkit:nms:v1_9_R1:jar', + ':hCore-bukkit:nms:v1_9_R1:shadowJar', + + ':hCore-bukkit:nms:v1_9_R2:jar', + ':hCore-bukkit:nms:v1_9_R2:shadowJar', + + ':hCore-bukkit:nms:v1_10_R1:jar', + ':hCore-bukkit:nms:v1_10_R1:shadowJar', + + ':hCore-bukkit:nms:v1_11_R1:jar', + ':hCore-bukkit:nms:v1_11_R1:shadowJar', + + ':hCore-bukkit:nms:v1_12_R1:jar', + ':hCore-bukkit:nms:v1_12_R1:shadowJar', + + ':hCore-bukkit:nms:v1_13_R1:jar', + ':hCore-bukkit:nms:v1_13_R1:shadowJar', + + ':hCore-bukkit:nms:v1_13_R2:jar', + ':hCore-bukkit:nms:v1_13_R2:shadowJar', + + ':hCore-bukkit:nms:v1_14_R1:jar', + ':hCore-bukkit:nms:v1_14_R1:shadowJar', + + ':hCore-bukkit:nms:v1_15_R1:jar', + ':hCore-bukkit:nms:v1_15_R1:shadowJar', + + ':hCore-bukkit:nms:v1_16_R1:jar', + ':hCore-bukkit:nms:v1_16_R1:shadowJar', + + ':hCore-bukkit:nms:v1_16_R2:jar', + ':hCore-bukkit:nms:v1_16_R2:shadowJar', + + ':hCore-bukkit:nms:v1_16_R3:jar', + ':hCore-bukkit:nms:v1_16_R3:shadowJar', + + ':hCore-bukkit:nms:v1_17_R1:jar', + ':hCore-bukkit:nms:v1_17_R1:shadowJar', + + ':hCore-bukkit:nms:v1_18_R1:jar', + ':hCore-bukkit:nms:v1_18_R1:shadowJar', + + ':hCore-bukkit:nms:v1_18_R2:jar', + ':hCore-bukkit:nms:v1_18_R2:shadowJar', + + ':hCore-bukkit:nms:v1_19_R1:jar', + ':hCore-bukkit:nms:v1_19_R1:shadowJar', + + ':hCore-bukkit:nms:v1_19_1_R1:jar', + ':hCore-bukkit:nms:v1_19_1_R1:shadowJar', + + ':hCore-bukkit:nms:v1_19_R2:jar', + ':hCore-bukkit:nms:v1_19_R2:shadowJar', + + ':hCore-bukkit:nms:v1_19_R3:jar', + ':hCore-bukkit:nms:v1_19_R3:shadowJar', + + ':hCore-bukkit:nms:v1_20_R1:jar', + ':hCore-bukkit:nms:v1_20_R1:shadowJar' +) diff --git a/hCore-bukkit/nms/build.gradle b/hCore-bukkit/nms/build.gradle index 10ae18f3..265d1ae2 100644 --- a/hCore-bukkit/nms/build.gradle +++ b/hCore-bukkit/nms/build.gradle @@ -1,2 +1,7 @@ tasks.register('cleanup') { doLast { delete 'build' } } tasks.build.finalizedBy cleanup + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_10_R1/build.gradle b/hCore-bukkit/nms/v1_10_R1/build.gradle index fe8f0845..62f1b5ec 100644 --- a/hCore-bukkit/nms/v1_10_R1/build.gradle +++ b/hCore-bukkit/nms/v1_10_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.10.2-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_11_R1/build.gradle b/hCore-bukkit/nms/v1_11_R1/build.gradle index ee45127b..20232c98 100644 --- a/hCore-bukkit/nms/v1_11_R1/build.gradle +++ b/hCore-bukkit/nms/v1_11_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.11-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_12_R1/build.gradle b/hCore-bukkit/nms/v1_12_R1/build.gradle index 02dc5d70..e9bf2356 100644 --- a/hCore-bukkit/nms/v1_12_R1/build.gradle +++ b/hCore-bukkit/nms/v1_12_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.12.2-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_13_R1/build.gradle b/hCore-bukkit/nms/v1_13_R1/build.gradle index 4bbfee6a..65f2de90 100644 --- a/hCore-bukkit/nms/v1_13_R1/build.gradle +++ b/hCore-bukkit/nms/v1_13_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.13-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_13_R2/build.gradle b/hCore-bukkit/nms/v1_13_R2/build.gradle index d5f12a2a..31464fdb 100644 --- a/hCore-bukkit/nms/v1_13_R2/build.gradle +++ b/hCore-bukkit/nms/v1_13_R2/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.13.1-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_14_R1/build.gradle b/hCore-bukkit/nms/v1_14_R1/build.gradle index c2078b0a..7a0c1073 100644 --- a/hCore-bukkit/nms/v1_14_R1/build.gradle +++ b/hCore-bukkit/nms/v1_14_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.14.4-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_15_R1/build.gradle b/hCore-bukkit/nms/v1_15_R1/build.gradle index af456309..30d542f6 100644 --- a/hCore-bukkit/nms/v1_15_R1/build.gradle +++ b/hCore-bukkit/nms/v1_15_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.15-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_16_R1/build.gradle b/hCore-bukkit/nms/v1_16_R1/build.gradle index 7008e205..21d8353c 100644 --- a/hCore-bukkit/nms/v1_16_R1/build.gradle +++ b/hCore-bukkit/nms/v1_16_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_16_R2/build.gradle b/hCore-bukkit/nms/v1_16_R2/build.gradle index cf3928c1..70d15dc4 100644 --- a/hCore-bukkit/nms/v1_16_R2/build.gradle +++ b/hCore-bukkit/nms/v1_16_R2/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.16.2-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_16_R3/build.gradle b/hCore-bukkit/nms/v1_16_R3/build.gradle index 3b9cd34b..b5da8341 100644 --- a/hCore-bukkit/nms/v1_16_R3/build.gradle +++ b/hCore-bukkit/nms/v1_16_R3/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.16.4-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_17_R1/build.gradle b/hCore-bukkit/nms/v1_17_R1/build.gradle index 2f490113..7a1f944d 100644 --- a/hCore-bukkit/nms/v1_17_R1/build.gradle +++ b/hCore-bukkit/nms/v1_17_R1/build.gradle @@ -3,4 +3,9 @@ sourceCompatibility = 16 dependencies { compileOnly 'org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_18_R1/build.gradle b/hCore-bukkit/nms/v1_18_R1/build.gradle index 50bebf8c..f0360e29 100644 --- a/hCore-bukkit/nms/v1_18_R1/build.gradle +++ b/hCore-bukkit/nms/v1_18_R1/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.18-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_18_R2/build.gradle b/hCore-bukkit/nms/v1_18_R2/build.gradle index fd671c3d..66b90368 100644 --- a/hCore-bukkit/nms/v1_18_R2/build.gradle +++ b/hCore-bukkit/nms/v1_18_R2/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.18.2-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_19_1_R1/build.gradle b/hCore-bukkit/nms/v1_19_1_R1/build.gradle index cc62cc25..0ec1538a 100644 --- a/hCore-bukkit/nms/v1_19_1_R1/build.gradle +++ b/hCore-bukkit/nms/v1_19_1_R1/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.19.1-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_19_R1/build.gradle b/hCore-bukkit/nms/v1_19_R1/build.gradle index 44aded33..b8a9f91f 100644 --- a/hCore-bukkit/nms/v1_19_R1/build.gradle +++ b/hCore-bukkit/nms/v1_19_R1/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.19-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_19_R2/build.gradle b/hCore-bukkit/nms/v1_19_R2/build.gradle index 7d601442..1bb61337 100644 --- a/hCore-bukkit/nms/v1_19_R2/build.gradle +++ b/hCore-bukkit/nms/v1_19_R2/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.19.3-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_19_R3/build.gradle b/hCore-bukkit/nms/v1_19_R3/build.gradle index 6dcb18f6..62c99e06 100644 --- a/hCore-bukkit/nms/v1_19_R3/build.gradle +++ b/hCore-bukkit/nms/v1_19_R3/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.19.4-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_20_R1/build.gradle b/hCore-bukkit/nms/v1_20_R1/build.gradle index 16bb63bd..a10b1620 100644 --- a/hCore-bukkit/nms/v1_20_R1/build.gradle +++ b/hCore-bukkit/nms/v1_20_R1/build.gradle @@ -4,4 +4,9 @@ dependencies { compileOnly 'com.mojang:authlib:3.2.28' compileOnly 'org.spigotmc:spigot:1.20-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_8_R3/build.gradle b/hCore-bukkit/nms/v1_8_R3/build.gradle index aa42c8c6..644fa7ba 100644 --- a/hCore-bukkit/nms/v1_8_R3/build.gradle +++ b/hCore-bukkit/nms/v1_8_R3/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.8.8-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_9_R1/build.gradle b/hCore-bukkit/nms/v1_9_R1/build.gradle index e5792f50..039fc742 100644 --- a/hCore-bukkit/nms/v1_9_R1/build.gradle +++ b/hCore-bukkit/nms/v1_9_R1/build.gradle @@ -1,4 +1,9 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.9-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) diff --git a/hCore-bukkit/nms/v1_9_R2/build.gradle b/hCore-bukkit/nms/v1_9_R2/build.gradle index 4135952a..61e9792e 100644 --- a/hCore-bukkit/nms/v1_9_R2/build.gradle +++ b/hCore-bukkit/nms/v1_9_R2/build.gradle @@ -1,4 +1,10 @@ dependencies { compileOnly 'org.spigotmc:spigot:1.9.4-R0.1-SNAPSHOT' compileOnly project(':hCore-bukkit:api') -} \ No newline at end of file +} + +tasks.compileJava.dependsOn( + ':hCore-bukkit:api:jar', + ':hCore-bukkit:api:shadowJar', +) + diff --git a/hCore-bungee/build.gradle b/hCore-bungee/build.gradle index f7256a34..14942b58 100644 --- a/hCore-bungee/build.gradle +++ b/hCore-bungee/build.gradle @@ -2,3 +2,8 @@ dependencies { implementation project(':hCore-bungee:api') annotationProcessor project(':hCore-bungee:api') } + +tasks.compileJava.dependsOn( + ':hCore-bungee:api:jar', + ':hCore-bungee:api:shadowJar' +)