-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
53 lines (40 loc) · 1011 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
plugins {
id "java"
id "distribution"
id "idea"
id "eclipse"
}
version '1.3.0'
defaultTasks('clean', 'build')
ext.moduleName = 'com.l2jbr'
allprojects {
repositories {
mavenCentral()
}
sourceCompatibility = JavaVersion.VERSION_1_9
}
subprojects {
afterEvaluate {
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
classpath = files()
}
}
}
}
task zip(type: Zip, group: "Archive", description: "Archives sources in a zip file") {
subprojects.each { dependsOn("${it.name}:build") }
from (project(':Gameserver').buildDir)
from (project(':Loginserver').buildDir)
from (project(':Datapack').buildDir)
from (project(':Tools').buildDir)
include('*.zip')
}
build.finalizedBy(zip)
task wrapper(type: Wrapper) {
gradleVersion = '4.6'
}