mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-05 23:10:30 +00:00
Add dependency on Cobalt
This commit is contained in:
parent
61ff91f237
commit
8bffec6964
17
build.gradle
17
build.gradle
@ -41,6 +41,18 @@ minecraft {
|
|||||||
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "squiddev"
|
||||||
|
url = "https://dl.bintray.com/squiddev/maven"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
shade
|
||||||
|
compile.extendsFrom shade
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// you may put jars on which you depend on in ./libs
|
// you may put jars on which you depend on in ./libs
|
||||||
// or you may define them like so..
|
// or you may define them like so..
|
||||||
@ -63,6 +75,11 @@ dependencies {
|
|||||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
||||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||||
|
|
||||||
|
shade 'org.squiddev:Cobalt:0.3.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
from configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
@ -35,12 +35,4 @@ zip -r $OUTPUTJAR api/src/dan200/computercraft > /dev/null
|
|||||||
cd ..
|
cd ..
|
||||||
rm -rf deploy/api
|
rm -rf deploy/api
|
||||||
|
|
||||||
echo "Adding LuaJ to deployment..."
|
|
||||||
mkdir deploy/luaj
|
|
||||||
cd deploy/luaj
|
|
||||||
jar xf ../../libs/luaj-jse-2.0.3.jar
|
|
||||||
zip -r ../$OUTPUTJAR org > /dev/null
|
|
||||||
cd ../..
|
|
||||||
rm -rf deploy/luaj
|
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
Loading…
Reference in New Issue
Block a user