[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 {
compileOnly "com.songoda:EpicSpawners:6.0.6"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
if (project.hasProperty('hook.compile_epicspawners6') &&

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,10 @@
group 'Hook_SuperiorSkyblock'
group 'Hooks:SuperiorSkyblock'
dependencies {
compileOnly "com.bgsoftware:SuperiorSkyblockAPI:1.8.2"
compileOnly "org.spigotmc:v1_8_R3-Taco:latest"
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
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 {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v1181'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.1-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v1182'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v119'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v1191'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.1-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v1192'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.2-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v1193'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.3-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

@ -8,10 +8,12 @@ java {
}
}
group 'NMS:v1194'
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.19.4-R0.1-SNAPSHOT")
compileOnly project(":API")
compileOnly parent
compileOnly rootProject
}
shadowJar {
@ -24,7 +26,7 @@ assemble {
tasks {
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()))
}
}

View File

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

View File

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