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