12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- apply plugin: 'java'
- apply plugin: 'eclipse'
- defaultTasks('zip')
- sourceCompatibility = JavaVersion.VERSION_1_8
- sourceSets {
- mainSource {
- java {
- srcDir('dist/game/data/scripts')
- }
- }
- }
- repositories {
- mavenCentral()
- }
- configurations.all {
- transitive = false
- }
- dependencies {
- compile 'org.slf4j:slf4j-api:1.7.12'
- compile files('../L2J_Server/dist/libs/mmocore.jar')
- compile project(':L2J_Server')
- testCompile 'org.mockito:mockito-all:2.0.2-beta'
- testCompile 'org.testng:testng:6.9.6'
- }
- task zip(type: Zip) {
- def fileName = 'L2J_DataPack_' + new Date().format("yyyy-MM-dd")
- baseName = fileName
- from('dist')
- println 'Build in build/distributions/' + fileName + '.zip'
- }
- build.finalizedBy(zip)
- task wrapper(type: Wrapper) {
- gradleVersion = '2.8-rc-1'
- }
|