2021-04-17 13:50:56 +02:00
|
|
|
/*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
plugins {
|
|
|
|
// Adding the base plugin fixes the following gradle warnings in IntelliJ:
|
|
|
|
//
|
|
|
|
// Warning: root project 'module-work-multi': Unable to resolve all content root directories
|
|
|
|
// Details: java.lang.IllegalStateException: No value has been specified for this provider.
|
|
|
|
//
|
|
|
|
// Warning: root project 'module-work-multi': Unable to resolve additional project configuration.
|
|
|
|
// Details: java.lang.IllegalStateException: No value has been specified for this provider.
|
|
|
|
id 'base'
|
|
|
|
id 'application'
|
|
|
|
|
|
|
|
id 'com.github.johnrengelman.shadow' version '5.0.0'
|
2023-05-21 20:40:40 +02:00
|
|
|
id 'de.steamwar.gradle' version 'RELEASE'
|
2022-06-27 21:17:53 +02:00
|
|
|
}
|
2022-06-27 20:19:01 +02:00
|
|
|
|
2021-04-17 13:50:56 +02:00
|
|
|
group 'de.steamwar'
|
|
|
|
version ''
|
|
|
|
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
2021-05-14 16:44:36 +02:00
|
|
|
compileJava.options.compilerArgs << '-parameter'
|
2021-04-17 13:50:56 +02:00
|
|
|
|
2023-10-27 17:55:13 +02:00
|
|
|
sourceCompatibility = 17
|
|
|
|
targetCompatibility = 17
|
2021-04-17 13:50:56 +02:00
|
|
|
|
|
|
|
mainClassName = ''
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2021-04-18 14:29:58 +02:00
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://raw.githubusercontent.com/yoyosource/YAPION/master/releases")
|
|
|
|
}
|
2022-02-10 16:28:15 +01:00
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.codemc.io/repository/maven-snapshots/")
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri('https://libraries.minecraft.net')
|
|
|
|
}
|
2023-10-27 16:34:54 +02:00
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.papermc.io/repository/maven-public/")
|
|
|
|
}
|
2021-04-17 13:50:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-06-27 20:19:01 +02:00
|
|
|
file('.').listFiles().each {
|
|
|
|
if (!it.isDirectory()) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if (new File(it, "build.gradle").exists()) {
|
|
|
|
implementation project(":" + it.name)
|
|
|
|
}
|
|
|
|
}
|
2021-04-17 13:50:56 +02:00
|
|
|
}
|