mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 11:10:29 +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.
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "squiddev"
|
||||
url = "https://dl.bintray.com/squiddev/maven"
|
||||
}
|
||||
}
|
||||
|
||||
configurations {
|
||||
shade
|
||||
compile.extendsFrom shade
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// you may put jars on which you depend on in ./libs
|
||||
// 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/dependency_management.html
|
||||
|
||||
shade 'org.squiddev:Cobalt:0.3.0'
|
||||
}
|
||||
|
||||
jar {
|
||||
from configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
|
||||
jar {
|
||||
|
@ -35,12 +35,4 @@ zip -r $OUTPUTJAR api/src/dan200/computercraft > /dev/null
|
||||
cd ..
|
||||
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."
|
||||
|
Loading…
Reference in New Issue
Block a user