-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
50 lines (44 loc) · 1.2 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
plugins {
id("java")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceSets {
main {
java {
srcDir 'src'
}
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compile fileTree(dir: 'lib', include: ['*.jar'], exclude: ['*-javadoc.jar'])
implementation('com.google.code.gson:gson:2.8.6')
implementation('com.github.luben:zstd-jni:1.4.4-4:win_x86')
implementation('javazoom:jlayer:1.0.1')
implementation('com.github.Bytekeeper:ass:1.1')
}
tasks {
task copyConfig(type: Copy) {
from file("config.json")
into file("build/libs/")
}
task fatJar(type: Jar) {
archiveBaseName = 'Ecgberht'
from('src/') {
include '*.mp3'
}
manifest {
attributes 'Main-Class': 'ecgberht.Ecgberht'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
fatJar.dependsOn copyConfig
}