Refactor api property

This commit is contained in:
Johann Bernhardt committed 2021-11-03 18:43:44 +01:00
1 parent af9ad7f6cb
commit 3153201421
3 files changed
+11 -16

No files matched your search

+2 -2
View File
@@ -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) {
+5 -10
View File
@@ -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
+4 -4
View File
@@ -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": []