-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (67 loc) · 2.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
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
import org.gradle.plugins.ide.eclipse.model.AccessRule
plugins {
id "io.github.0ffz.github-packages" version "1.2.1"
}
apply plugin : 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = "com.jme3.phonon"
version= project.hasProperty('in_version') ? project.getProperty('in_version') : '-SNAPSHOT'
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
def jmerepo="org.jmonkeyengine"
def jmeversion="3.3.2-stable"
def v_phonon="0.3.7"
eclipse {
classpath {
file {
whenMerged {
def jre = entries.find { it.path.contains 'org.eclipse.jdt.launching.JRE_CONTAINER' }
jre.accessRules.add(new AccessRule('accessible', 'com/**'))
jre.accessRules.add(new AccessRule('accessible', '**'))
jre.accessRules.add(new AccessRule('accessible', 'sun/**'))
}
}
}
}
repositories {
mavenLocal()
mavenCentral()
maven githubPackage.invoke("jmePhonon")
maven githubPackage.invoke("riccardobl")
}
def jmephonondep;
if(gradle.ext.useDevDependency){
printf("Use dev dependency");
jmephonondep= project(':jme_phonon');
}else{
jmephonondep="com.jme3.phonon:jme_phonon:"+v_phonon;
}
dependencies {
compile jmephonondep
compile jmerepo + ':jme3-core:' + jmeversion
compile jmerepo + ':jme3-bullet:' + jmeversion
compile jmerepo + ':jme3-bullet-native:' + jmeversion
compile jmerepo + ':jme3-desktop:' + jmeversion
compile jmerepo + ':jme3-lwjgl:' + jmeversion
compile 'wf.frk:jme3-bullet-vhacd:1.0.5'
compile "wf.frk:jme_f3b:0.92"
testCompile 'junit:junit:4.11'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
compile(
[group: 'org.nanohttpd', name: 'nanohttpd', version: '2.3.1'],
)
}
task buildFatJar(type: Jar) {
from sourceSets.test.output
manifest {
attributes 'Main-Class': 'JaimesHut'
}
from {
configurations.testCompile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.testRuntime.collect { it.isDirectory() ? it : zipTree(it) }
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
baseName = project.name + '-fat'
with jar
}