2020-02-13 22:52:33 +00:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
// Apply the java plugin to add support for Java
|
|
|
|
id 'java'
|
|
|
|
|
|
|
|
// Apply the application plugin to add support for building a CLI application.
|
|
|
|
id 'application'
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
2020-02-14 19:11:02 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes "Main-Class": "tk.draganczuk.url.App"
|
|
|
|
}
|
|
|
|
|
|
|
|
from {
|
|
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-13 22:52:33 +00:00
|
|
|
dependencies {
|
|
|
|
compile "com.sparkjava:spark-core:2.8.0"
|
2020-02-16 14:46:29 +00:00
|
|
|
implementation 'com.qmetric:spark-authentication:1.4'
|
2020-02-13 22:52:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClassName = 'tk.draganczuk.url.App'
|
|
|
|
}
|