This repository has been archived by the owner on Oct 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (79 loc) · 2.48 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
apply plugin: "maven"
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version= project.hasProperty('in_version') ? project.getProperty('in_version') : '-SNAPSHOT'
group = "wf.frk.f3b"
def v_jme3="3.3.2-stable"
def g_jme3="org.jmonkeyengine"
def v_slf4j="1.7.7"
// def v_lombok="1.16.8"
def v_protocol="0.6"
if(project.hasProperty('in_v_physicsloader') ){
v_physicsloader=project.getProperty('in_v_physicsloader')
println("Use physics loader v"+v_physicsloader)
}
if(project.hasProperty('in_v_protocol') ){
v_protocol=project.getProperty('in_v_protocol')
println("Use protocol v"+v_protocol)
}
if(project.hasProperty('in_g_physicsloader') ){
g_physicsloader=project.getProperty('in_g_physicsloader')
println("Use physics loader from group "+g_physicsloader)
}
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories{
mavenLocal()
jcenter()
mavenCentral()
maven{ url "http://dl.bintray.com/riccardo/v-hacd" }
maven{ url "http://dl.bintray.com/riccardo/f3b" }
maven { url "https://jitpack.io" }
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compileClasspath
}
task dumper(type: JavaExec) {
standardInput = System.in
main ='wf.frk.f3b.tools.F3bDumper'
classpath file("${rootDir}/build/classes/java/main")
classpath sourceSets.main.compileClasspath
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
task packageJavadoc(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava (MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact packageJavadoc
}
}
}
dependencies {
compile 'com.google.protobuf:protobuf-java:2.6.1'
compile "wf.frk.f3b:f3b:${v_protocol}"
compile "org.apache.logging.log4j:log4j-api:2.2"
compile "org.apache.logging.log4j:log4j-core:2.2"
compile 'com.github.riccardobl:jme3-bullet-vhacd:-SNAPSHOT'
compileOnly "${g_jme3}:jme3-core:${v_jme3}"
compileOnly "${g_jme3}:jme3-bullet:${v_jme3}"
testCompile "${g_jme3}:jme3-lwjgl:${v_jme3}"
testCompile "${g_jme3}:jme3-desktop:${v_jme3}"
testCompile "${g_jme3}:jme3-bullet:${v_jme3}"
testCompile "${g_jme3}:jme3-bullet-native:${v_jme3}"
testCompile 'com.github.riccardobl:jme3-bullet-vhacd:-SNAPSHOT'
testCompile 'junit:junit:4.12'
}