mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +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()
|
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 {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user