This repository has been archived by the owner on Aug 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
90 lines (75 loc) · 1.86 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
85
86
87
88
89
90
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: "idea"
apply plugin: 'maven'
version = '0.0.1'
ext {
appName = 'tonegodgui'
jmonkeyengine_version = '3.0.10'
}
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url 'http://updates.jmonkeyengine.org/maven' }
maven { url "https://jitpack.io" }
}
//mainClassName = 'app.MainRTS'
//if (!hasProperty('mainClass')) {
// ext.mainClass = ''
//}
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar'])
compile "com.jme3:jme3-core:$jmonkeyengine_version"
}
sourceSets {
main {
java { srcDir 'src'}
resources { srcDir 'src' }
}
}
//sets up the Android Eclipse project, using the old Ant based build.
eclipse {
// need to specify Java source sets explicitely, SpringSource Gradle Eclipse plugin
// ignores any nodes added in classpath.file.withXml
// sourceSets {
// main {
// java.srcDirs "src"
// resources.srcDirs = ["src"]
// }
// }
classpath { downloadSources=true }
jdt {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
project {
name = appName
natures 'org.springsource.ide.eclipse.gradle.core.nature'
}
}
// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// add javadoc/source jar tasks as artifacts
artifacts {
archives sourcesJar
//, javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}
//gradle.projectsEvaluated {
// tasks.withType(JavaCompile) {
// options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
// }
//}