Skip to content

Commit

Permalink
Fixed gradle error
Browse files Browse the repository at this point in the history
  • Loading branch information
HexagonNico committed Jan 21, 2024
1 parent ffd979d commit c2afc54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ minecraftVersion=1.20.1
phantomVersion=20.1.5
forgeVersion=47.2.0
fabricVersion=0.15.3
fabricApiVersion=0.91.0

# Publishing options
supportedMinecraftVersions=1.20.1,1.20.2
fabricApiVersion=0.91.0
5 changes: 3 additions & 2 deletions library-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ tasks.register('publishCurseForge', TaskPublishCurseForge) {
displayName = 'Phantom Library - ' + phantomVersion + ' Fabric'
addRequirement 'fabric-api'
addModLoader 'Fabric'
addGameVersion supportedMinecraftVersions.split(',')
addGameVersion minecraftVersion
addGameVersion '1.20.2'
}
}

Expand All @@ -87,7 +88,7 @@ modrinth {
versionName = 'Phantom Library - ' + phantomVersion + ' Fabric'
versionType = 'release'
uploadFile = remapJar
gameVersions = supportedMinecraftVersions.split(',')
gameVersions = [minecraftVersion, '1.20.2']
loaders = ['fabric']
changelog = changelogText
dependencies {
Expand Down
5 changes: 3 additions & 2 deletions library-forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ tasks.register('publishCurseForge', TaskPublishCurseForge) {
changelog = changelogText
releaseType = 'release'
displayName = 'Phantom Library - ' + phantomVersion + ' Forge'
addGameVersion supportedMinecraftVersions.split(',')
addModLoader 'Forge'
addGameVersion minecraftVersion
addGameVersion '1.20.2'
}
}

Expand All @@ -91,7 +92,7 @@ modrinth {
versionName = 'Phantom Library - ' + phantomVersion + ' Forge'
versionType = 'release'
uploadFile = jar
gameVersions = supportedMinecraftVersions.split(',')
gameVersions = [minecraftVersion, '1.20.2']
loaders = ['forge']
changelog = changelogText
}

0 comments on commit c2afc54

Please sign in to comment.