SteamWar/BauSystem2.0
Archiviert
12
0

Add dependencies.gradle
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-06-27 20:19:01 +02:00
Ursprung 89272f76cc
Commit a4c4870236
7 geänderte Dateien mit 65 neuen und 22 gelöschten Zeilen

Datei anzeigen

@ -50,7 +50,7 @@ dependencies {
implementation project(":BauSystem_Main") implementation project(":BauSystem_Main")
compileOnly files("${projectDir}/../lib/Spigot-1.15.jar") compileOnly spigot15
compileOnly files("${projectDir}/../lib/WorldEdit-1.15.jar") compileOnly worldEdit15
compileOnly files("${projectDir}/../lib/SpigotCore.jar") compileOnly spigotCore
} }

Datei anzeigen

@ -51,13 +51,13 @@ dependencies {
implementation project(":BauSystem_Main") implementation project(":BauSystem_Main")
compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT' compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
compileOnly files("${projectDir}/../lib/Spigot-1.18.jar")
compileOnly 'it.unimi.dsi:fastutil:8.5.6' compileOnly 'it.unimi.dsi:fastutil:8.5.6'
compileOnly 'com.mojang:datafixerupper:4.0.26' compileOnly 'com.mojang:datafixerupper:4.0.26'
compileOnly 'io.netty:netty-all:4.1.68.Final' compileOnly 'io.netty:netty-all:4.1.68.Final'
compileOnly 'com.mojang:authlib:1.5.25' compileOnly 'com.mojang:authlib:1.5.25'
compileOnly 'com.mojang:brigadier:1.0.18' compileOnly 'com.mojang:brigadier:1.0.18'
compileOnly files("${projectDir}/../lib/WorldEdit-1.15.jar") compileOnly spigot18
compileOnly files("${projectDir}/../lib/SpigotCore.jar") compileOnly worldEdit15
compileOnly spigotCore
} }

Datei anzeigen

@ -51,13 +51,13 @@ dependencies {
implementation project(":BauSystem_Main") implementation project(":BauSystem_Main")
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT' compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
compileOnly files("${projectDir}/../lib/Spigot-1.19.jar")
compileOnly 'it.unimi.dsi:fastutil:8.5.6' compileOnly 'it.unimi.dsi:fastutil:8.5.6'
compileOnly 'com.mojang:datafixerupper:4.0.26' compileOnly 'com.mojang:datafixerupper:4.0.26'
compileOnly 'io.netty:netty-all:4.1.68.Final' compileOnly 'io.netty:netty-all:4.1.68.Final'
compileOnly 'com.mojang:authlib:1.5.25' compileOnly 'com.mojang:authlib:1.5.25'
compileOnly 'com.mojang:brigadier:1.0.18' compileOnly 'com.mojang:brigadier:1.0.18'
compileOnly files("${projectDir}/../lib/WorldEdit-1.15.jar") compileOnly spigot19
compileOnly files("${projectDir}/../lib/SpigotCore.jar") compileOnly worldEdit15
compileOnly spigotCore
} }

Datei anzeigen

@ -56,12 +56,11 @@ dependencies {
annotationProcessor 'org.atteo.classindex:classindex:3.11' annotationProcessor 'org.atteo.classindex:classindex:3.11'
testAnnotationProcessor 'org.atteo.classindex:classindex:3.11' testAnnotationProcessor 'org.atteo.classindex:classindex:3.11'
// compileOnly 'org.spigotmc:spigot-api:1.18-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT' compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT'
// compileOnly files("${projectDir}/../lib/Spigot-1.18.jar")
compileOnly files("${projectDir}/../lib/Spigot-1.19.jar")
compileOnly 'com.mojang:authlib:1.5.25' compileOnly 'com.mojang:authlib:1.5.25'
compileOnly 'io.netty:netty-all:4.1.68.Final' compileOnly 'io.netty:netty-all:4.1.68.Final'
compileOnly files("${projectDir}/../lib/WorldEdit-1.15.jar")
compileOnly files("${projectDir}/../lib/SpigotCore.jar") compileOnly spigot19
compileOnly worldEdit15
compileOnly spigotCore
} }

Datei anzeigen

@ -36,6 +36,8 @@ plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0' id 'com.github.johnrengelman.shadow' version '5.0.0'
} }
apply from: 'dependencies.gradle'
group 'de.steamwar' group 'de.steamwar'
version '' version ''
@ -91,10 +93,14 @@ allprojects {
} }
dependencies { dependencies {
implementation project(":BauSystem_Main") file('.').listFiles().each {
implementation project(":BauSystem_15") if (!it.isDirectory()) {
implementation project(":BauSystem_18") return
implementation project(":BauSystem_19") }
if (new File(it, "build.gradle").exists()) {
implementation project(":" + it.name)
}
}
} }
task buildResources(type: Copy) { task buildResources(type: Copy) {

34
dependencies.gradle Normale Datei
Datei anzeigen

@ -0,0 +1,34 @@
/*
* This file is a part of the SteamWar software.
*
* Copyright (C) 2020 SteamWar.de-Serverteam
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
ext {
spigot19 = depend('Spigot-1.19')
spigot18 = depend('Spigot-1.18')
spigot15 = depend('Spigot-1.15')
worldEdit15 = depend('WorldEdit-1.15')
spigotCore = depend('SpigotCore')
}
private def depend(s) {
if (file("${rootDir}/lib/${s}.jar").exists()) {
return files("${rootDir}/lib/${s}.jar")
} else {
return "de.steamwar:${s.toLowerCase()}:RELEASE"
}
}

Datei anzeigen

@ -19,7 +19,11 @@
rootProject.name = 'BauSystem2.0' rootProject.name = 'BauSystem2.0'
include 'BauSystem_15' file('.').listFiles().each {
include 'BauSystem_18' if (!it.isDirectory()) {
include 'BauSystem_19' return
include 'BauSystem_Main' }
if (new File(it, "build.gradle").exists()) {
include(it.name)
}
}