-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
49 lines (37 loc) · 1.04 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
apply plugin: 'java'
apply plugin: 'maven'
version='1.0.1-SNAPSHOT'
group='com.simsilica'
ext.jmeVersion = "3.1.0-stable"
repositories {
mavenLocal()
if( JavaVersion.current() == JavaVersion.VERSION_1_7 ) {
// Fallback for JDK 7 that can no longer connect to jcenter with https
maven { url "http://jcenter.bintray.com" }
} else {
jcenter()
}
}
// Make sure the build file declares what it actually imports
configurations.compile {
transitive = false
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile "org.jmonkeyengine:jme3-core:$jmeVersion"
compile 'org.slf4j:slf4j-api:1.7.13'
}
// Configuration to produce maven-repo style -sources and -javadoc jars
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
exclude '**/.backups'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}