diff --git a/build.gradle b/build.gradle index 8aa9876ee..9157d84d1 100644 --- a/build.gradle +++ b/build.gradle @@ -114,8 +114,8 @@ processResources include 'mcmod.info' // replace version and mcversion - // ${version} are the exact strings being replaced - expand '@MODVERSION@':project.version + // ${version} and ${mcversion} are the exact strings being replaced + expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else, that's not the mcmod.info @@ -123,15 +123,14 @@ processResources exclude 'mcmod.info' } } + task sourceJar(type: Jar) { from sourceSets.main.allSource - appendix = 'src' classifier = 'src' } task deobfJar(type: Jar) { from sourceSets.main.output - appendix = 'dev' exclude "**/*.psd" classifier = 'dev' } @@ -151,9 +150,7 @@ task apiJar(type: Jar) { from sourceSets.main.output include 'techreborn/api/**/*' - appendix = 'api' classifier = "api" - } apiJar.mustRunAfter deobfJar diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 997bef067..7d490f7e0 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -3,7 +3,8 @@ "modid": "techreborn", "name": "TechReborn", "description": "TechReborn, The Gregtech revival you dream about on a cool mid summer's eve.", - "version": "@MODVERSION@", + "version": "$version", + "mcversion": "$mcversion", "url": "https://github.com/TechReborn/TechReborn", "updateUrl": "", "authorList": [