build.gradle 711 B

12345678910111213141516171819202122232425262728293031323334353637
  1. apply plugin: 'java'
  2. apply plugin: 'eclipse'
  3. defaultTasks('zip')
  4. sourceCompatibility = JavaVersion.VERSION_1_8
  5. sourceSets {
  6. mainSource {
  7. java {
  8. srcDir('dist/game/data/scripts')
  9. }
  10. }
  11. }
  12. repositories {
  13. mavenCentral()
  14. }
  15. dependencies {
  16. compile 'org.slf4j:slf4j-api:1.7.12'
  17. compile files('../L2J_Server/dist/libs/mmocore.jar')
  18. compile project(':L2J_Server')
  19. testCompile 'org.mockito:mockito-all:2.0.2-beta'
  20. testCompile 'org.testng:testng:6.9.6'
  21. }
  22. task zip(type: Zip) {
  23. def fileName = 'L2J_DataPack_' + new Date().format("yyyy-MM-dd")
  24. baseName = fileName
  25. from('dist')
  26. println 'Build in build/distributions/' + fileName + '.zip'
  27. }
  28. task wrapper(type: Wrapper) {
  29. gradleVersion = '2.6-rc-1'
  30. }