mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -06:00
7f275bf6af
Some platforms has some problems with file locking, so I was forced to use an alternative. SQLite seems be the best option currently available * Migrated to an sqlite database * Removed unnecessary IOExceptions * Removed an util class not needed anymore * Updated README.md and docker-compose.yml to reflect new storage mechanism
33 lines
646 B
Groovy
33 lines
646 B
Groovy
|
|
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()
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes "Main-Class": "tk.draganczuk.url.App"
|
|
}
|
|
|
|
from {
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile "com.sparkjava:spark-core:2.8.0"
|
|
compile 'com.qmetric:spark-authentication:1.4'
|
|
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.30.1'
|
|
|
|
}
|
|
|
|
application {
|
|
mainClassName = 'tk.draganczuk.url.App'
|
|
}
|