mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 07:38:36 -06:00
Small fixes
This commit is contained in:
parent
a132a99fbe
commit
20881d85d4
3 changed files with 11 additions and 2 deletions
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 a new issue