diff options
Diffstat (limited to 'language-web/build.gradle')
-rw-r--r-- | language-web/build.gradle | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/language-web/build.gradle b/language-web/build.gradle index 12f2f3a0..1bacd35c 100644 --- a/language-web/build.gradle +++ b/language-web/build.gradle | |||
@@ -1,6 +1,13 @@ | |||
1 | apply plugin: 'java' | 1 | plugins { |
2 | apply from: "${rootDir}/gradle/xtext-common.gradle" | 2 | id 'java' |
3 | apply from: "${rootDir}/gradle/junit.gradle" | 3 | id 'application' |
4 | alias libs.plugins.frontend | ||
5 | alias libs.plugins.shadow | ||
6 | id 'tools.refinery.xtext-conventions' | ||
7 | id 'tools.refinery.junit-conventions' | ||
8 | } | ||
9 | |||
10 | import org.siouan.frontendgradleplugin.infrastructure.gradle.RunNpmYarn | ||
4 | 11 | ||
5 | dependencies { | 12 | dependencies { |
6 | implementation project(':refinery-language') | 13 | implementation project(':refinery-language') |
@@ -27,10 +34,6 @@ for (taskName in ['compileJava', 'processResources']) { | |||
27 | def webpackOutputDir = "${buildDir}/webpack" | 34 | def webpackOutputDir = "${buildDir}/webpack" |
28 | def productionResources = "${webpackOutputDir}/production" | 35 | def productionResources = "${webpackOutputDir}/production" |
29 | def serverMainClass = 'tools.refinery.language.web.ServerLauncher' | 36 | def serverMainClass = 'tools.refinery.language.web.ServerLauncher' |
30 | |||
31 | apply plugin: libs.plugins.frontend.get().pluginId | ||
32 | import org.siouan.frontendgradleplugin.infrastructure.gradle.RunNpmYarn | ||
33 | |||
34 | def nodeDirectory = "${rootDir}/.gradle/node" | 37 | def nodeDirectory = "${rootDir}/.gradle/node" |
35 | 38 | ||
36 | frontend { | 39 | frontend { |
@@ -104,12 +107,10 @@ tasks.named('jar') { | |||
104 | } | 107 | } |
105 | } | 108 | } |
106 | 109 | ||
107 | apply plugin: 'application' | ||
108 | mainClassName = serverMainClass | 110 | mainClassName = serverMainClass |
109 | distTar.enabled = false | 111 | distTar.enabled = false |
110 | distZip.enabled = false | 112 | distZip.enabled = false |
111 | 113 | ||
112 | apply plugin: libs.plugins.shadow.get().pluginId | ||
113 | shadowDistTar.enabled = false | 114 | shadowDistTar.enabled = false |
114 | shadowDistZip.enabled = false | 115 | shadowDistZip.enabled = false |
115 | 116 | ||