diff --git a/build.gradle b/build.gradle index 49407b0..5720c27 100644 --- a/build.gradle +++ b/build.gradle @@ -232,11 +232,11 @@ task devJar(type: Jar) { task apiJar(type: Jar) { from (sourceSets.main.allJava) { - include apiPackage + '/**' + include modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString() + '/**' } from (sourceSets.main.output) { - include apiPackage + '/**' + include modGroup.toString().replaceAll("\\.", "/") + "/" + apiPackage.toString() + '/**' } from (sourceSets.main.resources.srcDirs) { diff --git a/gradle.properties b/gradle.properties index 9278f88..c25e9ea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,13 +1,8 @@ +modName = MyMod + # This is a case-sensitive string to identify your mod. Convention is to use lower case. modId = mymod -# The Information about your mod -modName = MyMod -modDescription = An example mod for Minecraft 1.7.10 with Forge focussed on a stable setup. -modUrl = https://github.com/SinTh0r4s/MyMod -modCredits = - -# Is it used somewhere else but shadow packet name generation? modGroup = com.myname.mymodid minecraftVersion = 1.7.10 @@ -25,9 +20,9 @@ gradleTokenVersion = GRADLETOKEN_VERSION gradleTokenGroupName = GRADLETOKEN_GROUPNAME # In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can -# leave this property empty. Please use file notations! -# Example value: com/myname/mymod/api -apiPackage = +# leave this property empty. +# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api +apiPackage = api # Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled! usesMixins = true diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 8ceacb7..c226201 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -2,13 +2,13 @@ { "modid": "${modId}", "name": "${modName}", - "description": "${modDescription}", + "description": "An example mod for Minecraft 1.7.10 with Forge focussed on a stable setup.", "version": "${modVersion}", "mcversion": "${minecraftVersion}", - "url": "${modUrl}", + "url": "https://github.com/SinTh0r4s/MyMod", "updateUrl": "", - "authorList": ["MyName"], - "credits": "${modCredits}", + "authorList": ["SinTho0r4s"], + "credits": "", "logoFile": "", "screenshots": [], "dependencies": []