diff options
author | Anthony Hilyard <anthony.hilyard@gmail.com> | 2021-10-13 22:51:23 -0700 |
---|---|---|
committer | Anthony Hilyard <anthony.hilyard@gmail.com> | 2021-10-13 22:51:23 -0700 |
commit | 407a3cfabed3869b38527153e8b3322a824f1263 (patch) | |
tree | 06909dc024d048e999354a0c7102a57bccf32ef8 /build.gradle | |
parent | 0eb0e8504684ad9e7bdae99a54de618809cee8d4 (diff) | |
download | Iceberg-407a3cfabed3869b38527153e8b3322a824f1263.tar.gz Iceberg-407a3cfabed3869b38527153e8b3322a824f1263.tar.bz2 Iceberg-407a3cfabed3869b38527153e8b3322a824f1263.zip |
Initial commit for 1.17.1 version.
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 28 |
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 { |