mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-28 12:56:42 +01:00
Fix gradle to compile 1.17 nms with Java 16
This commit is contained in:
parent
e9341f373e
commit
ec7f9214ff
11
build.gradle
11
build.gradle
@ -1,7 +1,6 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
id 'maven'
|
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
||||||
id 'com.github.johnrengelman.shadow' version '6.1.0'
|
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -14,6 +13,11 @@ subprojects {
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven { url 'https://repo.bg-software.com/repository/nms/' }
|
maven { url 'https://repo.bg-software.com/repository/nms/' }
|
||||||
|
maven { url 'https://repo.bg-software.com/repository/common/' }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
@ -30,6 +34,7 @@ repositories {
|
|||||||
maven { url 'https://repo.bg-software.com/repository/nms/' }
|
maven { url 'https://repo.bg-software.com/repository/nms/' }
|
||||||
maven { url 'https://repo.bg-software.com/repository/api/' }
|
maven { url 'https://repo.bg-software.com/repository/api/' }
|
||||||
maven { url 'https://repo.bg-software.com/repository/public-libs/' }
|
maven { url 'https://repo.bg-software.com/repository/public-libs/' }
|
||||||
|
maven { url 'https://repo.bg-software.com/repository/common/' }
|
||||||
|
|
||||||
String mavenUsername = project.hasProperty('mavenUsername') ? project.mavenUsername : System.getenv('mavenUsername');
|
String mavenUsername = project.hasProperty('mavenUsername') ? project.mavenUsername : System.getenv('mavenUsername');
|
||||||
String mavenPassword = project.hasProperty('mavenPassword') ? project.mavenPassword : System.getenv('mavenPassword');
|
String mavenPassword = project.hasProperty('mavenPassword') ? project.mavenPassword : System.getenv('mavenPassword');
|
||||||
@ -50,6 +55,8 @@ dependencies {
|
|||||||
implementation project(":API")
|
implementation project(":API")
|
||||||
implementation fileTree("archive")
|
implementation fileTree("archive")
|
||||||
|
|
||||||
|
implementation 'com.bgsoftware.common.reflection:ReflectionUtils:latest'
|
||||||
|
|
||||||
// Spigot jars
|
// Spigot jars
|
||||||
compileOnly "org.spigotmc:v1_7_R3:latest"
|
compileOnly "org.spigotmc:v1_7_R3:latest"
|
||||||
compileOnly 'org.spigotmc:v1_16_R3-Tuinity:latest'
|
compileOnly 'org.spigotmc:v1_16_R3-Tuinity:latest'
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -26,3 +26,5 @@ include 'v1_15_R1'
|
|||||||
include 'v1_16_R1'
|
include 'v1_16_R1'
|
||||||
include 'v1_16_R2'
|
include 'v1_16_R2'
|
||||||
include 'v1_16_R3'
|
include 'v1_16_R3'
|
||||||
|
include 'v1_17_R1'
|
||||||
|
|
||||||
|
13
v1_17_R1/build.gradle
Normal file
13
v1_17_R1/build.gradle
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
group 'v1_17_R1'
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(16))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compileOnly "org.spigotmc:v1_17_R1:latest"
|
||||||
|
compileOnly project(":API")
|
||||||
|
compileOnly parent
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user