-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
95 lines (81 loc) · 2.59 KB
/
Copy pathbuild.gradle
File metadata and controls
95 lines (81 loc) · 2.59 KB
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
import org.apache.tools.ant.filters.FixCrLfFilter
plugins {
id 'java'
id 'idea'
}
group = 'mod.wurmunlimited.npcs.crafter'
version = '0.5.13'
sourceCompatibility = 1.8
def $shortName = 'crafter'
repositories {
mavenLocal()
mavenCentral()
}
configurations {
provided
sourceSets.main.compileClasspath += configurations.provided
sourceSets.main.runtimeClasspath += configurations.provided
sourceSets.test.compileClasspath += configurations.provided
sourceSets.test.runtimeClasspath += configurations.provided
}
dependencies {
testImplementation project(':WurmTestingHelper')
implementation 'com.wurmonline:server:1.9'
implementation 'org.gotti.wurmunlimited:server-modlauncher:0.45'
// implementation fileTree(dir: 'F:/Steam/steamapps/common/Wurm Unlimited/WurmServerLauncher/', includes: ["server.jar", "modlauncher.jar", "javassist.jar"])
// implementation fileTree(dir: 'F:/Steam/steamapps/common/Wurm Unlimited/WurmServerLauncher/lib/', includes: ["annotations-16.0.2.jar",
// "annotations-2.0.1.jar", "ServerLauncher-0.43.jar", "WurmUnlimitedCommon-1.9.2.7.jar", "guava-18.0.jar", "javassist-3.23.1.jar",
// "sqlite-jdbc-3.8.11.2.jar"])
implementation project(':BMLBuilder')
implementation project(':CreatureCustomiser')
implementation project(':PlaceNpc')
}
jar {
doLast {
copy {
from jar
into 'F:/Steam/steamapps/common/Wurm Unlimited/WurmServerLauncher/mods/crafter/'
}
copy {
from $shortName + '.properties'
into 'F:/Steam/steamapps/common/Wurm Unlimited/WurmServerLauncher/mods/'
expand(output: 'print')
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('crlf'))
}
}
from {
project(':PlaceNpc').sourceSets.main.output
}
from {
project(':BMLBuilder').sourceSets.main.output
}
from {
project(':CreatureCustomiser').sourceSets.main.output
}
exclude '**/Trade.class'
exclude '**/TradeHandler.class'
exclude '**/TradingWindow.class'
includeEmptyDirs false
archiveName $shortName + '.jar'
manifest {
attributes('Implementation-Version': archiveVersion)
}
}
test {
useJUnitPlatform()
doLast {
delete fileTree('.') {
include 'worker*.log'
}
}
}
task zip(type: Zip) {
into($shortName) {
from jar
}
from($shortName + '.properties') {
expand(output: 'save')
filter(FixCrLfFilter, eol: FixCrLfFilter.CrLf.newInstance('crlf'))
}
archiveName = $shortName + '.zip'
}