1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-25 23:28:37 -06:00

Small fixes

This commit is contained in:
Przemek Dragańczuk 2020-02-14 20:11:02 +01:00
parent a132a99fbe
commit 20881d85d4
3 changed files with 11 additions and 2 deletions

View file

@ -11,9 +11,18 @@ 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 'org.slf4j:slf4j-simple:1.7.21'
}
application {

View file

@ -7,7 +7,7 @@ public class App {
public static void main(String[] args) {
// Useful for developing the frontend
// http://sparkjava.com/documentation#examples-and-faq -> How do I enable automatic refresh of static files?
if (System.getenv("dev").equals("true")) {
if (System.getenv("dev") != null) {
String projectDir = System.getProperty("user.dir");
String staticDir = "/src/main/resources/public";
staticFiles.externalLocation(projectDir + staticDir);