@@ -3,20 +3,25 @@ plugins {
33 id ' com.modrinth.minotaur' version ' 2.+'
44}
55
6- version = project. mod_version
7- group = project. maven_group
6+ // Fabric Properties. Check these on https://modmuss50.me/fabric.html
7+ def minecraft_version= ' 1.19.2'
8+ def yarn_mappings= ' 1.19.2+build.28'
9+ def loader_version= ' 0.14.11'
10+ def fabric_version= ' 0.68.0+1.19.2'
811
912repositories {
13+ // NOTE This should currently be not needed, but to fiddle around with this dependency issue
14+ // we keep this for now
1015 maven {
1116 url = ' https://api.modrinth.com/maven'
1217 }
1318}
1419
1520dependencies {
1621 // To change the versions see the gradle.properties file
17- minecraft " com.mojang:minecraft:${ project. minecraft_version} "
18- mappings " net.fabricmc:yarn:${ project. yarn_mappings} :v2"
19- modImplementation " net.fabricmc:fabric-loader:${ project. loader_version} "
22+ minecraft " com.mojang:minecraft:${ minecraft_version} "
23+ mappings " net.fabricmc:yarn:${ yarn_mappings} :v2"
24+ modImplementation " net.fabricmc:fabric-loader:${ loader_version} "
2025
2126 // Fabric API
2227 // It took 2 days to find out, that the dependency mods use or require the deprecated api of fabric,
@@ -33,8 +38,8 @@ dependencies {
3338 // modImplementation "maven.modrinth:fabric-api:${project.fabric_version}"
3439 // But if we do this, then the code for this project does not know fabric-api, so we just declare them
3540 // as compile time
36- modCompileOnly " net.fabricmc.fabric-api:fabric-api:${ project. fabric_version} "
37- modCompileOnly " net.fabricmc.fabric-api:fabric-api-deprecated:${ project. fabric_version} "
41+ modCompileOnly " net.fabricmc.fabric-api:fabric-api:${ fabric_version} "
42+ modCompileOnly " net.fabricmc.fabric-api:fabric-api-deprecated:${ fabric_version} "
3843
3944 // NOTE To work with the problems above, place these mods inside the mods folder
4045 // List of mods:
@@ -55,12 +60,13 @@ dependencies {
5560 // Error got because Identifier is null
5661
5762 implementation project(' :common' )
63+ include project(' :common' )
5864}
5965
6066modrinth {
61- projectId = ' proxycommand '
67+ projectId = ' proxy-command '
6268 versionNumber = project. version
63- versionType = ' alpha'
69+ versionType = project . version . contains( ' SNAPSHOT ' ) ? ' alpha' : ' release '
6470 gameVersions = [' 1.19.2' ]
6571 loaders = [' fabric' ]
6672 dependencies {
@@ -74,7 +80,7 @@ modrinth {
7480 // Use the environment variable `$MODRINTH_TOKEN` for the token
7581 // token = 'mySecretToken'
7682}
77-
83+ tasks . modrinth . dependsOn(tasks . modrinthSyncBody)
7884
7985processResources {
8086 inputs. property ' version' , project. version
@@ -102,17 +108,11 @@ java {
102108 if (JavaVersion . current() < javaVersion) {
103109 toolchain. languageVersion = JavaLanguageVersion . of(targetJavaVersion)
104110 }
105- archivesBaseName = project . archives_base_name
111+ archivesBaseName = " $r ootProject . name -fabric "
106112 // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
107113 // if it is present.
108114 // If you remove this line, sources will not be generated.
109115 withSourcesJar()
110116}
111117
112- jar {
113- from(" LICENSE" ) {
114- rename { " ${ it} _${ project.archives_base_name} " }
115- }
116- }
117-
118118tasks. runServer. workingDir = ' run'
0 commit comments