build.gradle 781 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. configurations.all {
  16. transitive = false
  17. }
  18. dependencies {
  19. compile 'org.slf4j:slf4j-api:1.7.12'
  20. compile files('../L2J_Server/dist/libs/mmocore.jar')
  21. compile project(':L2J_Server')
  22. testCompile 'org.mockito:mockito-all:2.0.2-beta'
  23. testCompile 'org.testng:testng:6.9.6'
  24. }
  25. task zip(type: Zip) {
  26. def fileName = 'L2J_DataPack_' + new Date().format("yyyy-MM-dd")
  27. baseName = fileName
  28. from('dist')
  29. println 'Build in build/distributions/' + fileName + '.zip'
  30. }
  31. build.finalizedBy(zip)
  32. task wrapper(type: Wrapper) {
  33. gradleVersion = '2.8-rc-1'
  34. }