forked from stephengold/Minie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.gradle
57 lines (48 loc) · 1.52 KB
/
common.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
// Gradle settings and tasks common to all subprojects
apply plugin: 'java'
apply plugin: 'maven'
group = 'jme3utilities'
// select one source-code option
//sourceCompatibility = '1.7'
sourceCompatibility = '1.8'
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
// compile-time options:
options.compilerArgs << '-Xdiags:verbose'
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
options.encoding = 'UTF-8'
}
tasks.withType(JavaExec) {
// runtime options:
classpath sourceSets.main.runtimeClasspath
//doFirst { println commandLine }
enableAssertions true
jvmArgs '-XX:+UseConcMarkSweepGC'
//jvmArgs '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=10'
}
}
ext {
// current versions of the libraries
jmonkeyengineVersion = '3.2.2-stable'
minieVersion = '0.6.4'
}
repositories {
//mavenLocal()
maven { url 'https://dl.bintray.com/stephengold/jme3utilities' }
maven { url 'https://dl.bintray.com/stephengold/org.jmonkeyengine' } // for testdata
jcenter()
}
task sourcesJar(type: Jar, dependsOn: classes, description: 'Create a jar of source files.') {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc, description: 'Create a jar of javadoc.') {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}