diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-04-09 01:46:48 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-04-09 01:46:48 +0200 |
commit | c6fbf876fb8e858a7207f8ecfd2bcf8533ea583f (patch) | |
tree | fc7a1fcea2b9b7be5020f8ec2deb46db8c279fe0 /subprojects/language-web/build.gradle.kts | |
parent | chore(web): fix lint errors (diff) | |
download | refinery-c6fbf876fb8e858a7207f8ecfd2bcf8533ea583f.tar.gz refinery-c6fbf876fb8e858a7207f8ecfd2bcf8533ea583f.tar.zst refinery-c6fbf876fb8e858a7207f8ecfd2bcf8533ea583f.zip |
build: avoid repeating task names in build scripts
Diffstat (limited to 'subprojects/language-web/build.gradle.kts')
-rw-r--r-- | subprojects/language-web/build.gradle.kts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/language-web/build.gradle.kts b/subprojects/language-web/build.gradle.kts index b78a0d66..b59763a8 100644 --- a/subprojects/language-web/build.gradle.kts +++ b/subprojects/language-web/build.gradle.kts | |||
@@ -21,7 +21,7 @@ dependencies { | |||
21 | testImplementation(libs.jetty.websocket.client) | 21 | testImplementation(libs.jetty.websocket.client) |
22 | } | 22 | } |
23 | 23 | ||
24 | val generateXtextLanguage = project(":refinery-language").tasks.named("generateXtextLanguage") | 24 | val generateXtextLanguage by project(":refinery-language").tasks.existing |
25 | 25 | ||
26 | for (taskName in listOf("compileJava", "processResources")) { | 26 | for (taskName in listOf("compileJava", "processResources")) { |
27 | tasks.named(taskName) { | 27 | tasks.named(taskName) { |
@@ -69,7 +69,7 @@ tasks.shadowJar { | |||
69 | } | 69 | } |
70 | } | 70 | } |
71 | 71 | ||
72 | tasks.register("serveBackend", JavaExec::class) { | 72 | tasks.register<JavaExec>("serveBackend") { |
73 | dependsOn(webapp) | 73 | dependsOn(webapp) |
74 | val mainRuntimeClasspath = sourceSets.main.map { it.runtimeClasspath } | 74 | val mainRuntimeClasspath = sourceSets.main.map { it.runtimeClasspath } |
75 | dependsOn(mainRuntimeClasspath) | 75 | dependsOn(mainRuntimeClasspath) |