Port to java 16 and MC 1.17
This commit is contained in:
+16
-13
@@ -10,7 +10,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.guardsquare:proguard-gradle:7.0.1'
|
||||
classpath 'com.guardsquare:proguard-gradle:7.1.0-beta4'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,10 +105,10 @@ subprojects {
|
||||
|
||||
tasks.publish.dependsOn build //stupid fix for maven/loom not publishing the main artifact
|
||||
|
||||
task ('proguard', type: proguard.gradle.ProGuardTask) {
|
||||
task('proguard', type: proguard.gradle.ProGuardTask) {
|
||||
configuration './proguard.conf'
|
||||
verbose
|
||||
injars project.buildDir.toString() + '/libs/' + archivesBaseName + "-" + project.mod_version + ".jar"
|
||||
injars project.buildDir.toString() + '/libs/' + archivesBaseName + "-" + project.mod_version + ".jar"
|
||||
outjars project.buildDir.toString() + '/libs/' + archivesBaseName + "-" + project.mod_version + "-min.jar"
|
||||
printmapping 'out.map'
|
||||
keepparameternames
|
||||
@@ -137,7 +137,7 @@ subprojects {
|
||||
allprojects {
|
||||
apply plugin: "fabric-loom"
|
||||
|
||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_16
|
||||
version = System.getenv("TRAVIS_TAG") ?: project.mod_version
|
||||
|
||||
repositories {
|
||||
@@ -146,7 +146,7 @@ allprojects {
|
||||
url = "https://maven.fabricmc.net"
|
||||
}
|
||||
|
||||
maven { url = "https://maven.terraformersmc.com/releases/"}
|
||||
maven { url = "https://maven.terraformersmc.com/releases/" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -155,10 +155,19 @@ allprojects {
|
||||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
modRuntime "com.terraformersmc:modmenu:1.16.8"
|
||||
modCompileOnly "com.terraformersmc:modmenu:1.16.8"
|
||||
modRuntime "com.terraformersmc:modmenu:2.0.0-beta.4"
|
||||
modCompileOnly "com.terraformersmc:modmenu:2.0.0-beta.4"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
jar {
|
||||
from(rootProject.file("LICENSE.md")) {
|
||||
rename { "LICENSE_${project.archivesBaseName.replace('-', '_')}" }
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
processResources {
|
||||
// this will ensure that this task is redone when there"s a change
|
||||
inputs.property "version", mod_version
|
||||
@@ -176,12 +185,6 @@ allprojects {
|
||||
exclude "fabric.mod.json"
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
from(rootProject.file("LICENSE.md")) {
|
||||
rename { "LICENSE_${project.archivesBaseName.replace('-', '_')}"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
|
||||
Reference in New Issue
Block a user