-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
56 lines (42 loc) · 1.21 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
apply plugin: 'java'
apply plugin: 'maven'
version='1.0.1-SNAPSHOT'
group='com.simsilica'
repositories {
mavenLocal()
jcenter()
// Temporary until JME jars are in jcenter()
maven { url "http://dl.bintray.com/jmonkeyengine/org.jmonkeyengine" }
}
// 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:3.1.+"
//compile "com.jme3:jme3-core:unknown"
compile 'org.slf4j:slf4j-api:1.7.13'
runtime files("assets")
}
// 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
}
task assetsJar(type: Jar) {
classifier = 'assets'
from file('assets')
exclude '**/*.psd'
exclude '**/.backups'
}
artifacts {
archives sourcesJar
archives javadocJar
archives assetsJar
}