-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (29 loc) · 868 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
plugins {
id 'groovy'
id 'java'
}
group 'dev.hanselwei.Sound'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.codehaus.groovy:groovy-all:2.3.11'
// https://mvnrepository.com/artifact/com.googlecode.soundlibs/mp3spi
implementation group: 'com.googlecode.soundlibs', name: 'mp3spi', version: '1.9.5.4'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
// Include dependent libraries in archive
mainClassName = "dev.hanselwei.JavaMP3Player.Main"
jar {
manifest {
attributes 'Main-Class': '$MainClassName'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task(runMain, dependsOn: 'classes', type: JavaExec) {
main = 'dev.hanselwei.JavaMP3Player'
classpath = sourceSets.main.runtimeClasspath
}