Skip to content

Instantly share code, notes, and snippets.

@rapodaca
Created February 24, 2012 07:02
Show Gist options
  • Save rapodaca/1898613 to your computer and use it in GitHub Desktop.
Save rapodaca/1898613 to your computer and use it in GitHub Desktop.
Partial Terasology Gradle build file
// See:
// http://gradle.1045684.n5.nabble.com/Groovy-Java-mixed-codebase-td1435484.html
// http://stackoverflow.com/questions/2572811/gradle-make-a-3rd-party-jar-available-to-local-gradle-repository
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'groovy'
sourceCompatibility = 1.6
version = '0.5.0'
sourceSets {
main {
java { srcDirs = [] }
groovy { srcDir 'src' }
}
}
repositories{
mavenCentral()
mavenRepo(urls: "http://adterrasperaspera.com/lwjgl")
mavenRepo(urls: "http://slick.cokeandcode.com/mavenrepo/")
}
dependencies{
groovy group: 'org.codehaus.groovy', name: 'groovy', version: '1.8.2'
compile "org.lwjgl:lwjgl:2.6"
compile "org.lwjgl:lwjgl-util:2.6"
compile files("libs/slick.jar", "libs/jbullet.jar")
compile "net.sf.trove4j:trove4j:3.0.2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment