2020-10-25 11:11:53 +01:00
|
|
|
plugins {
|
2020-10-25 10:52:17 +01:00
|
|
|
id 'java'
|
2020-10-25 14:38:03 +01:00
|
|
|
id 'application'
|
2020-10-25 10:52:17 +01:00
|
|
|
}
|
2020-10-25 11:11:53 +01:00
|
|
|
|
|
|
|
group 'xyz.vallat.louis'
|
|
|
|
version '0.1-SNAPSHOT'
|
|
|
|
|
2020-10-25 14:38:03 +01:00
|
|
|
apply plugin : 'java'
|
|
|
|
ext {
|
|
|
|
javaMainClass = 'xyz.vallat.louis.MovieQuoteBot'
|
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClassName = javaMainClass
|
|
|
|
}
|
|
|
|
|
2020-10-25 11:11:53 +01:00
|
|
|
jar {
|
|
|
|
manifest {
|
2020-10-25 14:38:03 +01:00
|
|
|
attributes 'Main-Class': javaMainClass
|
2020-10-25 11:11:53 +01:00
|
|
|
}
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
|
|
|
|
from {
|
|
|
|
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-10-25 14:38:03 +01:00
|
|
|
implementation 'ch.qos.logback:logback-classic:1.2.3'
|
2020-10-25 11:11:53 +01:00
|
|
|
}
|