forked from L2jOrg/L2jOrg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·84 lines (70 loc) · 2.06 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
76
77
78
79
80
81
82
83
84
plugins {
id "idea"
id "eclipse"
id "distribution"
id "net.nemerosa.versioning" version "2.8.2"
id "org.sonarqube" version "3.1.1"
}
version '1.7.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_16
targetCompatibility = JavaVersion.VERSION_16
afterEvaluate {
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
'-parameters', '--enable-preview'
]
options.compilerArgs << "-Xlint:unchecked"
classpath = files()
}
}
}
}
distZip {
subprojects.each {
dependsOn("${it.name}:build")
}
dependsOn("${project(':AuthServer').name}:dist", "${project(':Gameserver').name}:dist")
}
distributions {
subprojects.each { distTar.enabled = false}
main {
contents {
from(["${project(':AuthServer').buildDir}/authserver"]) {
into("authserver")
}
from(["Datapack", "${project(':Gameserver').buildDir}/gameserver"]) {
into("gameserver")
}
from("database/installer") {
into("gameserver/sql")
}
from("database/installer") {
into("authserver/sql")
}
}
}
}
sonarqube {
properties {
property "sonar.projectKey", "L2jOrg_L2jOrg"
property "sonar.organization", "l2jorg"
property "sonar.host.url", "https://sonarcloud.io"
}
}