From 2fa5af64caa01b706e12b610905e53fdad939e97 Mon Sep 17 00:00:00 2001 From: Intelli Date: Wed, 2 Mar 2022 13:14:30 -0700 Subject: [PATCH] Updated Gradle build file to match Maven --- build.gradle | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 93e584a..8bf64f5 100644 --- a/build.gradle +++ b/build.gradle @@ -2,8 +2,8 @@ import org.apache.tools.ant.filters.ReplaceTokens plugins { id 'java' - id 'com.github.johnrengelman.shadow' version '6.0.0' - id 'com.palantir.git-version' version '0.12.3' + id 'com.github.johnrengelman.shadow' version '7.1.2' + id 'com.palantir.git-version' version '0.13.0' } group = 'net.coreprotect' @@ -11,7 +11,7 @@ String projectVersion = '20.4' String projectBranch = '' version = projectVersion // `version` might be modified, we don't always want that (e.g. plugin.yml) description = 'Provides block protection for your server.' -sourceCompatibility = '1.8' +sourceCompatibility = '17' if (System.getenv("BUILD_NUMBER") != null) { // Being built in Jenkins, append Build ID @@ -25,17 +25,16 @@ logger.info("Building version $version") repositories { jcenter() maven { url = 'https://hub.spigotmc.org/nexus/content/groups/public/' } - maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' } maven { url = 'https://papermc.io/repo/repository/maven-public/' } maven { url = 'https://repo.codemc.org/repository/maven-public/' } - maven { url = 'https://maven.sk89q.com/repo/' } + maven { url = 'https://maven.enginehub.org/repo/' } } dependencies { compileOnly('com.sk89q.worldedit:worldedit-bukkit:7.0.0-SNAPSHOT') { exclude group: 'org.bukkit' } - compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT' + compileOnly 'io.papermc.paper:paper-api:1.17-R0.1-SNAPSHOT' implementation 'org.bstats:bstats-bukkit-lite:1.8' implementation 'com.zaxxer:HikariCP:4.0.3' }