Commit c12ef1d6 by Jonathan Thomas

Merge branch 'improve-1.20-support' into 'develop'

Fix Minecraft Dependency issues in older GitLab CI builds

See merge request !2
parents a76d9835 0bd439b8
Pipeline #12143 passed with stage
in 2 minutes 9 seconds
......@@ -35,6 +35,15 @@ build_mod:
sed -i "s/yarn_mappings=.*/yarn_mappings=$yarn_mappings/" gradle.properties
sed -i "s/loader_version=.*/loader_version=0.15.11/" gradle.properties
sed -i "s/fabric_version=.*/fabric_version=$fabric_version/" gradle.properties
echo "Contents of gradle.properties:"
cat gradle.properties
echo ""
# Update minecraft version dependency in fabric.mod.json
sed -i "s/\"minecraft\": \".*\"/\"minecraft\": \"~$minecraft_version\"/" src/main/resources/fabric.mod.json
echo "Contents of fabric.mod.json:"
cat src/main/resources/fabric.mod.json
echo ""
./gradlew build
find build/libs -type f -name '*sources*.jar' -exec rm {} \;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment