-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.32 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
group = 'io.github.tzfun.jvmm'
version = '2.4.3'
ext {
nettyVersion = "4.1.92.Final"
nettyNativeSslVersion = "2.0.41.Final"
junitJupiterVersion = "5.7.0"
gsonVersoion = "2.10.1"
cfrVersion = "0.152"
oshiVersion = "6.4.5"
snakeyamlVersion = "1.33"
asmVersion = "9.5"
protobufVersion = "3.25.2"
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
compileJava {
options.compilerArgs << "-parameters" << "-Xlint:unchecked" << "-Xlint:deprecation"
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenCentral()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
}
test {
useJUnitPlatform()
}
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}