build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. apply plugin: 'java'
  2. apply plugin: 'eclipse'
  3. // note from smelC: I did not add a plugin for 'idea' as I don't use it.
  4. // Please add it if you do.
  5. // In this section you declare where to find the dependencies of your project
  6. repositories {
  7. // Use 'jcenter' for resolving your dependencies.
  8. // You can declare any Maven/Ivy/file repository here.
  9. jcenter()
  10. }
  11. project.ext.assetsDir = new File("assets");
  12. sourceSets {
  13. main {
  14. java {
  15. srcDirs 'squidlib/src/main/java'
  16. srcDirs 'squidlib-util/src/main/java'
  17. srcDirs 'squidlib-util/src/main/resources'
  18. // srcDirs 'squidlib-util/etc' <- No. Solely contains TilesetsGenerator
  19. // which isn't useful anymore.
  20. }
  21. }
  22. }
  23. // define 'gdxVersion' if not defined yet. This allows
  24. // a project depending on SquidLib (like: your game) to define
  25. // 'gdxVersion' itself, and yet be able to build SquidLib standalone too.
  26. def gdxVersion = System.getenv("gdxVersion") ?: "1.9.6" // As in pom.xml
  27. dependencies {
  28. compile "com.badlogicgames.gdx:gdx:$gdxVersion"
  29. }