This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
forked from martistuwe/pmdungeon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (37 loc) · 1.44 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
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "eclipse"
apply plugin: "application"
sourceCompatibility = 1.11
sourceSets.main.java.srcDirs = ["src"]
mainClassName = "de.pmdungeon.desktop.Main"
ext {
appName = "pmdungeon"
}
def props = new Properties()
file("build.properties").withInputStream { props.load(it) }
repositories {
mavenLocal()
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
api "com.google.code.gson:gson:"+props.getProperty("gsonVersion")
api "com.badlogicgames.gdx:gdx-ai:"+props.getProperty("gdxAiVersion")
api "com.badlogicgames.gdx:gdx:"+props.getProperty("gdxVersion")
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:"+props.getProperty("gdxVersion")
api "com.badlogicgames.gdx:gdx-platform:"+props.getProperty("gdxVersion")+":natives-desktop"
api "com.badlogicgames.gdx:gdx-box2d:"+props.getProperty("gdxVersion")
api "com.badlogicgames.gdx:gdx-box2d-platform:"+props.getProperty("gdxVersion")+":natives-desktop"
api "com.badlogicgames.gdx:gdx-freetype:"+props.getProperty("gdxVersion")
api "com.badlogicgames.gdx:gdx-freetype-platform:"+props.getProperty("gdxVersion")+":natives-desktop"
api "org.lwjgl:lwjgl:"+props.getProperty("lwjglVersion")
}
jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
destinationDirectory.set(file("target"))
}