-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
70 lines (61 loc) · 1.31 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
/**
* Gradle plugins
*/
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java'
}
group = 'com.brov3r.protegon'
version = '1.3'
/**
* Path to the compiled Jar file
*/
def buildPath = System.getenv('BUILD_PATH') ?: 'build';
/**
* Repositories for project dependencies
*/
repositories {
mavenCentral()
}
/**
* Replacing data with current ones
*/
processResources {
filesMatching('**/metadata.yml') {
filter {
it.replace('%PROJECT_VERSION%', version)
}
}
}
/**
* Project Dependencies
*/
dependencies {
/**
* Project Zomboid
* Dependencies are created via the Gradle task 'createZombieJar'
*/
compileOnly files('./libs/ProjectZomboid-core-41.78.16.jar')
compileOnly files('./libs/ProjectZomboid-libs-41.78.16.jar')
/**
* Utils
*/
compileOnly('org.javassist:javassist:3.30.2-GA')
/**
* Avrix Loader
*/
compileOnly files('./libs/Avrix-Core-1.5.1.jar')
}
/**
* Creating a Jar file wrapper (core) to run a game server
*/
shadowJar {
archiveFileName.set("${rootProject.name}-${version}.jar")
destinationDirectory.set(file(buildPath))
manifest {
attributes(
'Implementation-Title': rootProject.name,
'Implementation-Version': version,
)
}
}