aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/language-web
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-26 17:58:36 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-04-26 17:58:36 +0200
commitd34b8e0f4db84f1571785592b523e675a1b2f960 (patch)
tree1e2e123ba2071a11070e8310b7e9e3033f8ffae1 /subprojects/language-web
parentbuild: enable parallel Gradle build (diff)
downloadrefinery-d34b8e0f4db84f1571785592b523e675a1b2f960.tar.gz
refinery-d34b8e0f4db84f1571785592b523e675a1b2f960.tar.zst
refinery-d34b8e0f4db84f1571785592b523e675a1b2f960.zip
build: improve Xtext project isolation
* Avoid writing generated source files directly into sibling projects. * Full project isolation cannot be enabled yet, because the frontend plugin still requires cross-projects task dependencies for Node.js installation.
Diffstat (limited to 'subprojects/language-web')
-rw-r--r--subprojects/language-web/build.gradle.kts11
1 files changed, 2 insertions, 9 deletions
diff --git a/subprojects/language-web/build.gradle.kts b/subprojects/language-web/build.gradle.kts
index d398e002..7a7adac0 100644
--- a/subprojects/language-web/build.gradle.kts
+++ b/subprojects/language-web/build.gradle.kts
@@ -22,7 +22,8 @@ dependencies {
22 implementation(libs.jetty.websocket.server) 22 implementation(libs.jetty.websocket.server)
23 implementation(libs.slf4j.api) 23 implementation(libs.slf4j.api)
24 implementation(libs.xtext.web) 24 implementation(libs.xtext.web)
25 webapp(project(path = ":refinery-frontend", configuration = "productionAssets")) 25 xtextGenerated(project(":refinery-language", "generatedWebSources"))
26 webapp(project(":refinery-frontend", "productionAssets"))
26 testImplementation(testFixtures(project(":refinery-language"))) 27 testImplementation(testFixtures(project(":refinery-language")))
27 testImplementation(libs.jetty.websocket.client) 28 testImplementation(libs.jetty.websocket.client)
28} 29}
@@ -32,14 +33,6 @@ application {
32} 33}
33 34
34tasks { 35tasks {
35 val generateXtextLanguage by project(":refinery-language").tasks.existing
36
37 for (taskName in listOf("compileJava", "processResources")) {
38 named(taskName) {
39 dependsOn(generateXtextLanguage)
40 }
41 }
42
43 jar { 36 jar {
44 dependsOn(webapp) 37 dependsOn(webapp)
45 from(webapp) { 38 from(webapp) {