1234567891011121314151617181920212223242526272829303132333435 |
- apply plugin: 'java'
- apply plugin: 'eclipse'
- // note from smelC: I did not add a plugin for 'idea' as I don't use it.
- // Please add it if you do.
- // In this section you declare where to find the dependencies of your project
- repositories {
- // Use 'jcenter' for resolving your dependencies.
- // You can declare any Maven/Ivy/file repository here.
- jcenter()
- }
- project.ext.assetsDir = new File("assets");
- sourceSets {
- main {
- java {
- srcDirs 'squidlib/src/main/java'
- srcDirs 'squidlib-util/src/main/java'
- srcDirs 'squidlib-util/src/main/resources'
- // srcDirs 'squidlib-util/etc' <- No. Solely contains TilesetsGenerator
- // which isn't useful anymore.
- }
- }
- }
- // define 'gdxVersion' if not defined yet. This allows
- // a project depending on SquidLib (like: your game) to define
- // 'gdxVersion' itself, and yet be able to build SquidLib standalone too.
- def gdxVersion = System.getenv("gdxVersion") ?: "1.9.6" // As in pom.xml
- dependencies {
- compile "com.badlogicgames.gdx:gdx:$gdxVersion"
- }
|