/* * This file is a part of the SteamWar software. * * Copyright (C) 2023 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 . */ import org.apache.tools.ant.taskdefs.condition.Os import java.util.function.BiConsumer 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 'java' id 'application' id 'com.github.johnrengelman.shadow' version '8.1.1' id 'de.steamwar.gradle' version 'RELEASE' } group 'de.steamwar' version '' compileJava.options.encoding = 'UTF-8' sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 mainClassName = '' repositories { mavenCentral() 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://repo.papermc.io/repository/maven-public/') } } dependencies { compileOnly 'org.projectlombok:lombok:1.18.22' testCompileOnly 'org.projectlombok:lombok:1.18.22' annotationProcessor 'org.projectlombok:lombok:1.18.22' testAnnotationProcessor 'org.projectlombok:lombok:1.18.22' compileOnly 'org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT' compileOnly 'org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT' annotationProcessor 'org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT' compileOnly swdep("Spigot-1.19") compileOnly swdep("WorldEdit-1.15") compileOnly swdep("SpigotCore") testImplementation swdep("SpigotCore") testImplementation(platform('org.junit:junit-bom:5.10.0')) testImplementation('org.junit.jupiter:junit-jupiter') testImplementation 'com.github.seeseemelk:MockBukkit-v1.20:3.9.0' } test { useJUnitPlatform() testLogging { events "passed", "skipped", "failed" } }