Commit 627fa7ef authored by Nico Eckes's avatar Nico Eckes

Fixed building

parent f428d365
Pipeline #713 passed with stage
in 2 minutes and 45 seconds
......@@ -19,11 +19,20 @@ minecraft {
mappings = "snapshot_20161111"
}
configurations {
embed
compile.extendsFrom(embed)
}
dependencies {
compile group: 'org.yaml', name: 'snakeyaml', version: '1.17'
embed group: 'org.yaml', name: 'snakeyaml', version: '1.17'
compile 'org.jetbrains:annotations:13.0'
}
jar {
from configurations.embed.collect { it.isDirectory() ? it : zipTree(it) }
from sourceSets.api.output
}
/////////////////////////////////////////////////
......@@ -44,10 +53,6 @@ task apiJar(type: Jar) {
classifier = 'api'
}
jar {
from sourceSets.api.output
}
tasks.build.dependsOn('sourceJar', 'deobfJar', 'apiJar')
artifacts {
......
#!/bin/bash
chmod +x gradlew
if [[ $1 = "dep" ]]; then
task="apiJar"
else
task="build"
fi
echo "Setup CIWorkspace"
./gradlew setupCIWorkspace -S -q
echo "CIWorkspace Done"
#== cleanup of old build
echo "Remove ./build/libs/*"
echo "Removing old artifacts"
rm -rf ./build/libs/*
rm -rf ./*.jar
#== build new jar
echo "Building..."
./gradlew $task -S -q
./gradlew build -S -q
echo "Done building."
......
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