Files
NewPipeExtractorTest/build.gradle
2020-11-08 00:33:12 +01:00

39 lines
1.0 KiB
Groovy

plugins {
id 'java'
}
group 'de.epsilon02'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
jar {
manifest {
attributes(
'Main-Class': 'de.epsilon02.SimpleCLIMusicPlayer'
)
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Simple CLI Music Player',
'Implementation-Version': getArchiveVersion(),
'Main-Class': 'de.epsilon02.SimpleCLIMusicPlayer'
}
setArchivesBaseName(project.name + '-all')
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile group: 'javax.annotation', name: 'javax.annotation-api', version: '1.3.2'
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '4.9.0'
compile group: 'com.beust', name: 'jcommander', version: '1.78'
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.20.2'
testCompile group: 'junit', name: 'junit', version: '4.12'
}