diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-11-17 03:56:45 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-11-17 03:56:45 +0100 |
commit | 2457f042578634478965212067df82bef2cb8eb4 (patch) | |
tree | cd5e45280f0792333f782109325d04739c86bcb3 /language-web | |
parent | build: merge java and junit conventions (diff) | |
download | refinery-2457f042578634478965212067df82bef2cb8eb4.tar.gz refinery-2457f042578634478965212067df82bef2cb8eb4.tar.zst refinery-2457f042578634478965212067df82bef2cb8eb4.zip |
build: library and application convetion plugins
Diffstat (limited to 'language-web')
-rw-r--r-- | language-web/build.gradle | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/language-web/build.gradle b/language-web/build.gradle index 9f092e5e..7306869b 100644 --- a/language-web/build.gradle +++ b/language-web/build.gradle | |||
@@ -1,9 +1,7 @@ | |||
1 | plugins { | 1 | plugins { |
2 | id 'java' | ||
3 | id 'application' | ||
4 | alias libs.plugins.frontend | 2 | alias libs.plugins.frontend |
5 | alias libs.plugins.shadow | 3 | id 'refinery-java-application' |
6 | id 'tools.refinery.xtext-conventions' | 4 | id 'refinery-xtext-conventions' |
7 | } | 5 | } |
8 | 6 | ||
9 | import org.siouan.frontendgradleplugin.infrastructure.gradle.RunNpmYarn | 7 | import org.siouan.frontendgradleplugin.infrastructure.gradle.RunNpmYarn |
@@ -99,6 +97,8 @@ tasks.named('check') { | |||
99 | dependsOn(eslint, stylelint) | 97 | dependsOn(eslint, stylelint) |
100 | } | 98 | } |
101 | 99 | ||
100 | mainClassName = serverMainClass | ||
101 | |||
102 | tasks.named('jar') { | 102 | tasks.named('jar') { |
103 | dependsOn assembleFrontend | 103 | dependsOn assembleFrontend |
104 | from(productionResources) { | 104 | from(productionResources) { |
@@ -106,13 +106,6 @@ tasks.named('jar') { | |||
106 | } | 106 | } |
107 | } | 107 | } |
108 | 108 | ||
109 | mainClassName = serverMainClass | ||
110 | distTar.enabled = false | ||
111 | distZip.enabled = false | ||
112 | |||
113 | shadowDistTar.enabled = false | ||
114 | shadowDistZip.enabled = false | ||
115 | |||
116 | tasks.named('shadowJar') { | 109 | tasks.named('shadowJar') { |
117 | dependsOn assembleFrontend | 110 | dependsOn assembleFrontend |
118 | from(project.convention.getPlugin(JavaPluginConvention).sourceSets.main.output) | 111 | from(project.convention.getPlugin(JavaPluginConvention).sourceSets.main.output) |