-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
45 lines (38 loc) · 1016 Bytes
/
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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
}
group 'com.supalosa.testbot'
version '0.1-SNAPSHOT'
repositories {
mavenCentral()
mavenLocal()
}
jar {
manifest {
attributes 'Main-Class': 'com.supalosa.LadderMain'
}
from {
configurations.compileClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
duplicatesStrategy DuplicatesStrategy.INHERIT
}
}
task buildZip(type: Zip, group: "deploy") {
from shadowJar.getOutputs()
from file("LadderBots.json")
archiveFileName = rootProject.name + ".zip"
}
shadowJar {
archiveBaseName.set(rootProject.name)
archiveClassifier.set('')
archiveVersion.set('')
transform(com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer) {
resource = 'reference.conf'
}
}
dependencies {
implementation 'com.github.ocraft:ocraft-s2client-bot:0.4.20'
compileOnly 'com.github.ocraft:ocraft-s2client-api:0.4.20'
}