-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (58 loc) · 1.96 KB
/
build.gradle.kts
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/6.7.1/samples
*/
plugins {
kotlin("jvm") version "1.4.20"
id("com.github.johnrengelman.shadow") version "6.1.0"
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.jflac:jflac-codec:1.5.2")
implementation("com.googlecode.soundlibs:mp3spi:1.9.5-1")
implementation("com.googlecode.soundlibs:vorbisspi:1.0.3.3")
implementation("org.arquillian.ape:arquillian-ape-spi:2.0.0-alpha.7")
}
repositories {
maven("http://maven.aliyun.com/nexus/content/groups/public/")
maven("https://dl.bintray.com/kotlin/kotlin-eap")
mavenCentral()
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "cn.apisium.livehime.exos.MainKt"
}
}
tasks {
build {
dependsOn(shadowJar)
}
}
tasks.withType<ShadowJar> {
// Excludes testing
exclude("junit/**")
exclude("junit")
exclude("arquillian_1_0.xsd")
relocate("com.jcraft", "cn.apisium.libraries.com.jcraft")
relocate("javazoom", "cn.apisium.libraries.javazoom")
relocate("kotlin", "cn.apisium.libraries.kotlin")
relocate("org.arquillian", "cn.apisium.libraries.org.arquillian")
relocate("org.intellij", "cn.apisium.libraries.org.intellij")
relocate("org.jboss", "cn.apisium.libraries.org.jboss")
relocate("org.jetbrains", "cn.apisium.libraries.org.jetbrains")
relocate("org.jflac", "cn.apisium.libraries.org.jflac")
relocate("org.tritonus", "cn.apisium.libraries.org.tritonus")
mergeServiceFiles()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "1.8"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "1.8"
}