forked from JoeAlisson/L2jOrg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·75 lines (61 loc) · 1.83 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
plugins {
id "idea"
id "eclipse"
id "distribution"
id "net.nemerosa.versioning" version "2.8.2"
}
version '1.6.0'
ext.revision = versioning.info.build
ext.buildJDK = "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})".toString()
defaultTasks('clean', 'build')
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
compileJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
sourceCompatibility = JavaVersion.VERSION_14
targetCompatibility = JavaVersion.VERSION_14
afterEvaluate {
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
'-parameters', '--enable-preview'
]
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
classpath = files()
}
}
}
}
distZip {
subprojects.each { dependsOn("${it.name}:build") }
}
distTar {
subprojects.each { dependsOn("${it.name}:build") }
}
distributions {
main {
contents {
from(["Datapack/authserver", "${project(':AuthServer').buildDir}/authserver"]) {
into("authserver")
}
from(["Datapack/gameserver", "${project(':Gameserver').buildDir}/gameserver"]) {
into("gameserver")
}
from("Datapack/database_installer") {
into("gameserver/sql")
}
from("Datapack/database_installer") {
into("authserver/sql")
}
}
}
}