aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle28
1 files changed, 4 insertions, 24 deletions
diff --git a/build.gradle b/build.gradle
index 0d0e82f..a3ff7bb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
+ classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'org.spongepowered', name: 'mixingradle', version: '0.7-SNAPSHOT'
}
}
@@ -16,7 +16,7 @@ apply plugin: 'eclipse'
archivesBaseName = name + '-' + mcVersion
-sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
+java.toolchain.languageVersion = JavaLanguageVersion.of(16)
mixin {
add sourceSets.main, "${project.name.toLowerCase()}.refmap.json"
@@ -40,26 +40,6 @@ minecraft {
}
}
-// Process resources on build
-processResources {
- // This will ensure that this task is redone when the versions change.
- inputs.property 'version', project.version
-
- // Replace stuff in mods.toml, nothing else
- from(sourceSets.main.resources.srcDirs) {
- include 'META-INF/mods.toml'
-
- // Replace version
- expand 'version':project.version
- }
-
- // Copy everything else except the mods.toml
- from(sourceSets.main.resources.srcDirs) {
- exclude 'META-INF/mods.toml'
- }
-}
-
-
sourceSets {
main {
resources {
@@ -69,8 +49,8 @@ sourceSets {
}
dependencies {
- minecraft 'net.minecraftforge:forge:' + project.properties.mcVersion + '-' + forgeVersion
- annotationProcessor 'org.spongepowered:mixin:0.8:processor'
+ minecraft "net.minecraftforge:forge:${project.mcVersion}-${project.forgeVersion}"
+ annotationProcessor 'org.spongepowered:mixin:0.8.4:processor'
}
jar {