forked from brainless-studios/OpenRTS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
60 lines (51 loc) · 1.14 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
subprojects {
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: 'pmd'
apply plugin: 'findbugs'
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava {
sourceCompatibility = '1.8'
}
pmd {
ignoreFailures = true
}
findbugs {
ignoreFailures = true
}
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 'http://jcenter.bintray.com' }
maven { url "https://jitpack.io" }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
// we are not ready for javadoc
// task javadocJar(type: Jar, dependsOn: javadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
// }
artifacts {
archives sourcesJar
// archives javadocJar
}
}
allprojects {
version = '0.0.1'
ext {
appName = 'OpenRTS'
jmonkeyengine_version = '3.0.10'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}