1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 07:38:36 -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() jcenter()
} }
jar {
manifest {
attributes "Main-Class": "tk.draganczuk.url.App"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
dependencies { dependencies {
compile "com.sparkjava:spark-core:2.8.0" compile "com.sparkjava:spark-core:2.8.0"
compile 'org.slf4j:slf4j-simple:1.7.21'
} }
application { application {

View file

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