diff options
Diffstat (limited to 'subprojects/language-web/build.gradle.kts')
-rw-r--r-- | subprojects/language-web/build.gradle.kts | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/subprojects/language-web/build.gradle.kts b/subprojects/language-web/build.gradle.kts index 562a1bd9..88dccdf3 100644 --- a/subprojects/language-web/build.gradle.kts +++ b/subprojects/language-web/build.gradle.kts | |||
@@ -17,6 +17,10 @@ val webapp: Configuration by configurations.creating { | |||
17 | dependencies { | 17 | dependencies { |
18 | implementation(project(":refinery-language")) | 18 | implementation(project(":refinery-language")) |
19 | implementation(project(":refinery-language-ide")) | 19 | implementation(project(":refinery-language-ide")) |
20 | implementation(project(":refinery-language-semantics")) | ||
21 | implementation(project(":refinery-store-query-viatra")) | ||
22 | implementation(project(":refinery-store-reasoning-scope")) | ||
23 | implementation(libs.gson) | ||
20 | implementation(libs.jetty.server) | 24 | implementation(libs.jetty.server) |
21 | implementation(libs.jetty.servlet) | 25 | implementation(libs.jetty.servlet) |
22 | implementation(libs.jetty.websocket.api) | 26 | implementation(libs.jetty.websocket.api) |
@@ -60,9 +64,18 @@ tasks { | |||
60 | classpath(mainRuntimeClasspath) | 64 | classpath(mainRuntimeClasspath) |
61 | mainClass.set(application.mainClass) | 65 | mainClass.set(application.mainClass) |
62 | standardInput = System.`in` | 66 | standardInput = System.`in` |
63 | val baseResource = webapp.incoming.artifacts.artifactFiles.first() | 67 | environment("REFINERY_BASE_RESOURCE", webapp.singleFile) |
64 | environment("BASE_RESOURCE", baseResource) | ||
65 | group = "run" | 68 | group = "run" |
66 | description = "Start a Jetty web server serving the Xtex API and assets." | 69 | description = "Start a Jetty web server serving the Xtext API and assets." |
70 | } | ||
71 | |||
72 | register<JavaExec>("serveBackendOnly") { | ||
73 | val mainRuntimeClasspath = sourceSets.main.map { it.runtimeClasspath } | ||
74 | dependsOn(mainRuntimeClasspath) | ||
75 | classpath(mainRuntimeClasspath) | ||
76 | mainClass.set(application.mainClass) | ||
77 | standardInput = System.`in` | ||
78 | group = "run" | ||
79 | description = "Start a Jetty web server serving the Xtext API without assets." | ||
67 | } | 80 | } |
68 | } | 81 | } |