@@ -13,6 +13,9 @@ val forgematica_version: String by project
13
13
val archives_base_name: String by project
14
14
val mod_version: String by project
15
15
16
+ val curseforge_id: String by project
17
+ val modrinth_id: String by project
18
+
16
19
base.archivesName = archives_base_name
17
20
version = " ${mod_version} +mc${minecraft_version} "
18
21
@@ -69,14 +72,14 @@ publisher {
69
72
apiKeys.modrinth(System .getenv(" MODRINTH_TOKEN" ))
70
73
apiKeys.curseforge(System .getenv(" CURSEFORGE_TOKEN" ))
71
74
72
- curseID.set(" $project . curseforge_id" )
73
- modrinthID.set(" $project . modrinth_id" )
74
- versionType.set(" release " )
75
+ curseID.set(" $curseforge_id " )
76
+ modrinthID.set(" $modrinth_id " )
77
+ versionType.set(" alpha " )
75
78
changelog.set(file(" CHANGELOG.md" ))
76
- displayName.set(" $project .version " )
79
+ displayName.set(" ${mod_version} +mc ${minecraft_version} " )
77
80
gameVersions.set(listOf (" 1.20" , " 1.20.1" ))
78
81
loaders.set(listOf (loom.platform.get().id()))
79
- projectVersion.set(" $project .version " )
82
+ projectVersion.set(" ${mod_version} +mc ${minecraft_version} " )
80
83
artifact.set(tasks.remapJar)
81
84
addAdditionalFile(tasks.remapSourcesJar)
82
85
}
0 commit comments