-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (41 loc) · 1020 Bytes
/
build.gradle
File metadata and controls
50 lines (41 loc) · 1020 Bytes
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
plugins {
id 'idea'
id 'java'
}
group 'org.tyoda.wurm.statuseffecttest'
version '1.0'
repositories {
mavenCentral()
jcenter()
maven { url "https://gotti.no-ip.org/maven/repository" }
maven { url "https://www.jitpack.io" }
}
var serverJar = files("../../libraries/server.jar")
var commonJar = files("../../libraries/common.jar")
dependencies {
if(serverJar) {
implementation(serverJar)
}
if(commonJar){
implementation(commonJar)
}
implementation 'org.gotti.wurmunlimited:server-modlauncher:0.45'
}
jar {
archiveFileName = "${project.name}.jar"
}
task pack(type: Zip) {
from fileTree(dir: 'pack', include: '**')
destinationDirectory = file("build/pack")
archiveName "statuseffect-pack.jar"
}
task dist(type: Zip) {
into("mods", {
into(project.name, {
from jar
from pack
})
from fileTree(dir: 'mods', include: '*')
})
archiveFileName = "${project.name}-${project.version}.zip"
}