[CI SKIP] Grouped all submodules

This commit is contained in:
OmerBenGera 2023-03-25 12:53:58 +03:00
parent 5efb72564e
commit 1d3df3e171
86 changed files with 94 additions and 77 deletions

View File

@ -1,10 +1,10 @@
group 'Hook_EpicSpawners6' group 'Hooks:EpicSpawners6'
dependencies { dependencies {
compileOnly "com.songoda:EpicSpawners:6.0.6" compileOnly "com.songoda:EpicSpawners:6.0.6"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_epicspawners6') && if (project.hasProperty('hook.compile_epicspawners6') &&

View File

@ -1,10 +1,10 @@
group 'Hook_EpicSpawners6' group 'Hooks:EpicSpawners6'
dependencies { dependencies {
compileOnly "com.songoda:EpicSpawners:7.0.2" compileOnly "com.songoda:EpicSpawners:7.0.2"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_epicspawners7') && if (project.hasProperty('hook.compile_epicspawners7') &&

View File

@ -1,10 +1,10 @@
group 'Hook_FactionsUUID' group 'Hooks:FactionsUUID'
dependencies { dependencies {
compileOnly "com.drtshock:Factions:1.6.9.5-U0.6.22-b309" compileOnly "com.drtshock:Factions:1.6.9.5-U0.6.22-b309"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_factionsuuid') && if (project.hasProperty('hook.compile_factionsuuid') &&

View File

@ -1,10 +1,10 @@
group 'Hook_FactionsX' group 'Hooks:FactionsX'
dependencies { dependencies {
compileOnly "net.prosavage:FactionsX:0.4.2" compileOnly "net.prosavage:FactionsX:0.4.2"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_factionsx') && if (project.hasProperty('hook.compile_factionsx') &&

View File

@ -1,10 +1,10 @@
group 'Hook_Lands' group 'Hooks:Lands'
dependencies { dependencies {
compileOnly 'me.angeschossen:Lands:4.5.2.7' compileOnly 'me.angeschossen:Lands:4.5.2.7'
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_lands') && if (project.hasProperty('hook.compile_lands') &&

View File

@ -1,11 +1,11 @@
group 'Hook_MassiveFactions' group 'Hooks:MassiveFactions'
dependencies { dependencies {
compileOnly "com.massivecraft:Factions:2.13.6" compileOnly "com.massivecraft:Factions:2.13.6"
compileOnly "com.massivecraft:MassiveCore:2.13.6" compileOnly "com.massivecraft:MassiveCore:2.13.6"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_massivefactions') && if (project.hasProperty('hook.compile_massivefactions') &&

View File

@ -1,10 +1,10 @@
group 'Hook_SuperiorSkyblock' group 'Hooks:SuperiorSkyblock'
dependencies { dependencies {
compileOnly "com.bgsoftware:SuperiorSkyblockAPI:1.8.2" compileOnly "com.bgsoftware:SuperiorSkyblockAPI:1.8.2"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('hook.compile_superiorskyblock') && if (project.hasProperty('hook.compile_superiorskyblock') &&

1
Hooks/build.gradle Normal file
View File

@ -0,0 +1 @@
group 'Hooks'

1
NMS/build.gradle Normal file
View File

@ -0,0 +1 @@
group 'NMS'

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v117'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v1181'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.1-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.1-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v1182'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v119'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v1191'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.1-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.1-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v1192'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.2-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.2-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v1193'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.3-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.3-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -8,10 +8,12 @@ java {
} }
} }
group 'NMS:v1194'
dependencies { dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.4-R0.1-SNAPSHOT") paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.4-R0.1-SNAPSHOT")
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
shadowJar { shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks { tasks {
reobfJar { reobfJar {
File outputFile = new File(parent.projectDir, "archive/reobf/${project.name}.jar") File outputFile = new File(rootProject.archiveFolder, "reobf/${project.name}.jar")
outputJar.set(layout.buildDirectory.file(outputFile.getPath())) outputJar.set(layout.buildDirectory.file(outputFile.getPath()))
} }
} }

View File

@ -1,9 +1,9 @@
group 'v1_12_R1' group 'NMS:v1_12_R1'
dependencies { dependencies {
compileOnly "org.spigotmc:v1_12_R1:latest" compileOnly "org.spigotmc:v1_12_R1:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('nms.compile_v1_12') && !Boolean.valueOf(project.findProperty("nms.compile_v1_12").toString())) { if (project.hasProperty('nms.compile_v1_12') && !Boolean.valueOf(project.findProperty("nms.compile_v1_12").toString())) {

View File

@ -1,9 +1,9 @@
group 'v1_16_R3' group 'NMS:v1_16_R3'
dependencies { dependencies {
compileOnly "org.spigotmc:v1_16_R3-Tuinity:latest" compileOnly "org.spigotmc:v1_16_R3-Tuinity:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('nms.compile_v1_16') && !Boolean.valueOf(project.findProperty("nms.compile_v1_16").toString())) { if (project.hasProperty('nms.compile_v1_16') && !Boolean.valueOf(project.findProperty("nms.compile_v1_16").toString())) {

View File

@ -1,9 +1,9 @@
group 'v1_7_R4' group 'NMS:v1_7_R4'
dependencies { dependencies {
compileOnly "org.spigotmc:v1_7_R4:latest" compileOnly "org.spigotmc:v1_7_R4:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('nms.compile_v1_7') && !Boolean.valueOf(project.findProperty("nms.compile_v1_7").toString())) { if (project.hasProperty('nms.compile_v1_7') && !Boolean.valueOf(project.findProperty("nms.compile_v1_7").toString())) {

View File

@ -1,9 +1,9 @@
group 'v1_8_R3' group 'NMS:v1_8_R3'
dependencies { dependencies {
compileOnly "org.spigotmc:v1_8_R3-Taco:latest" compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API") compileOnly project(":API")
compileOnly parent compileOnly rootProject
} }
if (project.hasProperty('nms.compile_v1_8') && !Boolean.valueOf(project.findProperty("nms.compile_v1_8").toString())) { if (project.hasProperty('nms.compile_v1_8') && !Boolean.valueOf(project.findProperty("nms.compile_v1_8").toString())) {

View File

@ -1,14 +1,18 @@
import org.gradle.api.GradleException
plugins { plugins {
id 'java' id 'java'
id 'com.github.johnrengelman.shadow' version '7.0.0' id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'maven-publish' id 'maven-publish'
} }
group 'WildLoaders' group 'WildLoaders'
version = "2022.7" version = "2022.7"
project.ext {
archiveFolder = file("archive/")
targetFolder = file("target/")
buildVersion = System.getenv("BUILD_NUMBER") == null ? version : version + "-b" + System.getenv("BUILD_NUMBER")
}
allprojects { allprojects {
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow' apply plugin: 'com.github.johnrengelman.shadow'
@ -42,13 +46,13 @@ allprojects {
subprojects { subprojects {
shadowJar { shadowJar {
archiveFileName = "${project.name}.jar" archiveFileName = "${project.name}.jar"
destinationDirectory = file("../archive/") destinationDirectory = rootProject.archiveFolder
} }
} }
dependencies { dependencies {
implementation fileTree(rootProject.archiveFolder.getAbsolutePath())
implementation project(":API") implementation project(":API")
implementation fileTree("archive")
implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest' implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3' implementation 'com.bgsoftware.common.config:CommentedConfiguration:1.0.3'
@ -60,7 +64,7 @@ dependencies {
jar { jar {
from { from {
for (File file : new File("archive").listFiles()) { for (File file : rootProject.archiveFolder.listFiles()) {
zipTree(file) zipTree(file)
} }
} }
@ -68,11 +72,10 @@ jar {
processResources { processResources {
outputs.upToDateWhen { false } outputs.upToDateWhen { false }
String versionNumber = System.getenv("BUILD_NUMBER") == null ? version : version + "-b" + System.getenv("BUILD_NUMBER")
eachFile { details -> eachFile { details ->
if (details.name.contentEquals('plugin.yml')) { if (details.name.contentEquals('plugin.yml')) {
filter { String line -> filter { String line ->
line.replace('${project.version}', versionNumber) line.replace('${project.version}', rootProject.buildVersion)
} }
} }
} }
@ -81,31 +84,25 @@ processResources {
shadowJar { shadowJar {
dependsOn(jar) dependsOn(jar)
if (System.getenv("BUILD_NUMBER") == null) { archiveFileName = rootProject.name + "-" + rootProject.buildVersion + ".jar"
archiveName = rootProject.name + "-" + version + ".jar"
} else {
archiveName = rootProject.name + "-" + version + "-b" + System.getenv("BUILD_NUMBER") + ".jar"
}
delete fileTree('./target/') { delete fileTree(rootProject.targetFolder.getAbsolutePath())
exclude archiveName
}
exclude '*exclude.jar' exclude '*exclude.jar'
destinationDir = file("./target/") destinationDirectory = rootProject.targetFolder
from sourceSets.getByName("main").output from sourceSets.getByName("main").output
configurations = [project.configurations.getByName("runtimeClasspath")] configurations = [project.configurations.getByName("runtimeClasspath")]
} }
task copyAPI(type: Copy) { task copyAPI(type: Copy) {
from './archive/API.jar' from rootProject.archiveFolder.getAbsolutePath() + '/API.jar'
into './target/' into rootProject.targetFolder.getAbsolutePath()
rename('API.jar', rootProject.name + 'API.jar') rename('API.jar', rootProject.name + 'API.jar')
} }
clean { clean {
delete file('./archive/') delete rootProject.archiveFolder
} }
build { build {

View File

@ -8,23 +8,25 @@ pluginManagement {
rootProject.name = 'WildLoaders' rootProject.name = 'WildLoaders'
include 'API' include 'API'
include 'Hook_EpicSpawners6' include 'Hooks'
include 'Hook_EpicSpawners7' include 'Hooks:EpicSpawners6'
include 'Hook_FactionsUUID' include 'Hooks:EpicSpawners7'
include 'Hook_FactionsX' include 'Hooks:FactionsUUID'
include 'Hook_Lands' include 'Hooks:FactionsX'
include 'Hook_MassiveFactions' include 'Hooks:Lands'
include 'Hook_SuperiorSkyblock' include 'Hooks:MassiveFactions'
include 'v1_7_R4' include 'Hooks:SuperiorSkyblock'
include 'v1_8_R3' include 'NMS'
include 'v1_12_R1' include 'NMS:v1_7_R4'
include 'v1_16_R3' include 'NMS:v1_8_R3'
include 'v117' include 'NMS:v1_12_R1'
include 'v1181' include 'NMS:v1_16_R3'
include 'v1182' include 'NMS:v117'
include 'v119' include 'NMS:v1181'
include 'v1191' include 'NMS:v1182'
include 'v1192' include 'NMS:v119'
include 'v1193' include 'NMS:v1191'
include 'v1194' include 'NMS:v1192'
include 'NMS:v1193'
include 'NMS:v1194'