-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
136 lines (115 loc) · 4.08 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
plugins {
id "io.github.0ffz.github-packages" version "1.2.1"
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'idea'
ext {
jmonkeyengine_version = '3.4.0-stable' //latest version: 3.4.0-stable
license = file("$rootDir/license.txt")
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven githubPackage.invoke("riccardobl")
}
// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = 'etherealtempest.Main'
}
mainClassName = ext.mainClass
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task(debug, dependsOn: classes, type: JavaExec) {
main = getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
if (project.hasProperty('args')) {
args(project.getAt('args').split(','))
}
standardInput = System.in
ignoreExitValue = true
debug true
}
artifacts {
archives sourcesJar
// archives javadocJar
}
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
implementation "org.jmonkeyengine:jme3-core:$jmonkeyengine_version"
implementation "org.jmonkeyengine:jme3-desktop:$jmonkeyengine_version"
implementation "org.jmonkeyengine:jme3-lwjgl3:$jmonkeyengine_version"
implementation "org.jmonkeyengine:jme3-plugins:$jmonkeyengine_version"
implementation "org.jmonkeyengine:jme3-effects:$jmonkeyengine_version"
implementation "org.jmonkeyengine:jme3-terrain:$jmonkeyengine_version"
//implementation "com.simsilica:zay-es:1.3.2"
//implementation "com.simsilica:zay-es-net:1.4.3"
implementation "com.simsilica:sio2:1.5.0"
implementation "com.simsilica:sim-ethereal:1.5.0"
implementation files('C:\\Users\\night\\Desktop\\portfolio\\nonmobile\\libraries (java)\\SimArboreal.jar')
implementation files('C:\\Users\\night\\Desktop\\portfolio\\nonmobile\\libraries (java)\\arboreal-assets.jar')
implementation files('C:\\Users\\night\\Desktop\\portfolio\\nonmobile\\libraries (java)\\MathParser.org-mXparser-4.4.2.jar')
implementation files('C:\\Users\\night\\Desktop\\portfolio\\nonmobile\\libraries (java)\\JME_TTF-2.2.2.jar')
implementation files('C:\\Users\\night\\Desktop\\portfolio\\nonmobile\\libraries (java)\\LemurProto-javadoc.jar')
//implementation "com.atr:jme-ttf:2.2.2"
implementation 'wf.frk:jme-effekseer-native:0.3'
implementation 'com.github.destroflyer.jme3-effekseer:jme3-effekseer:44aff53'
//compile "com.simsilica:sim-fx:1.0.+"
//runtime "com.simsilica:sim-fx:1.0.+:assets"
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
testCompileOnly 'org.projectlombok:lombok:1.18.16'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.16'
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDirs 'assets'
exclude 'Converted/**'
}
}
}
eclipse {
classpath {
downloadSources=true
}
jdt {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
project {
natures 'org.springsource.ide.eclipse.gradle.core.nature'
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
compileJava {
sourceCompatibility = '1.8'
options.incremental = true
// We have annotation processors in log4j, only needed for writing plugins, disable the warnings
options.compilerArgs += ["-proc:none"]
//options.compilerArgs += ["-Xlint:deprecation"]
//options.compilerArgs += ["-Xlint:unchecked"]
}
wrapper {
gradleVersion = '6.5.1'
}