-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
49 lines (40 loc) · 1009 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
allprojects {
group = 'org.j3gl'
version = '3.0.0'
project.ext {
// global dependencies
jmonkeyengineVersion = '3.7.0-stable'
dyn4jVersion = '5.0.2'
}
repositories {
mavenCentral()
mavenLocal()
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += ['-Xlint:unchecked', '-Xlint:deprecation']
}
tasks.named('test') {
useJUnitPlatform() // Use JUnit Platform for unit tests.
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.github.JNightRide'
artifactId = project.name
version = project.version
from components.java
}
}
}
}