mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-12-23 04:07:55 +00:00
Small fixes
This commit is contained in:
parent
a132a99fbe
commit
20881d85d4
11
build.gradle
11
build.gradle
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user