Skip to content

Commit 0661d63

Browse files
committed
Split the configurations so we have one for the webUi and one for the webUiExternalFeedback
1 parent 0459ae9 commit 0661d63

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

server/build.gradle

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,18 @@ graalvmNative {
5353
}
5454

5555
configurations {
56-
yarnBuildElements {
56+
webUi {
5757
canBeResolved = true
5858
canBeConsumed = false
5959
attributes {
60-
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "yarnBuild-elements"))
60+
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "web-ui"))
61+
}
62+
}
63+
webUiExternalFeedback {
64+
canBeResolved = true
65+
canBeConsumed = false
66+
attributes {
67+
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "web-ui-external-feedback"))
6168
}
6269
}
6370
}
@@ -77,8 +84,8 @@ dependencies {
7784
annotationProcessor("io.micronaut.openapi:micronaut-openapi")
7885
annotationProcessor("io.micronaut.security:micronaut-security-annotations")
7986

80-
yarnBuildElements(project(":web-ui"))
81-
yarnBuildElements(project(":web-ui-external-feedback"))
87+
webUi(project(":web-ui"))
88+
webUiExternalFeedback(project(":web-ui-external-feedback"))
8289

8390
implementation("io.micronaut:micronaut-jackson-databind")
8491
implementation("io.micronaut:micronaut-http-client")
@@ -173,12 +180,12 @@ tasks.withType(JavaCompile).configureEach {
173180
if(System.getenv("SKIP_WEB_UI") == null || System.getenv("SKIP_WEB_UI") == "false") {
174181
processResources {
175182
into('public') {
176-
from configurations.named('yarnBuildElements')
183+
from configurations.named('webUi')
177184
}
178185
}
179186
processResources {
180187
into('public-external-feedback') {
181-
from configurations.named('yarnBuildElements')
188+
from configurations.named('webUiExternalFeedback')
182189
}
183190
}
184191
}

web-ui-external-feedback/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ def yarnBuildTask = tasks.register("yarnBuild", YarnTask) {
4141
}
4242

4343
configurations {
44-
yarnBuildElements {
44+
webUiExternalFeedback {
4545
canBeResolved = false
4646
canBeConsumed = true
4747
attributes {
48-
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "yarnBuild-elements"))
48+
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "web-ui-external-feedback"))
4949
}
5050
}
5151
}
5252

5353
artifacts {
54-
yarnBuildElements(distDir) {
54+
webUiExternalFeedback(distDir) {
5555
builtBy(yarnBuildTask)
5656
}
5757
}

web-ui/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ def yarnBuildTask = tasks.register("yarnBuild", YarnTask) {
4141
}
4242

4343
configurations {
44-
yarnBuildElements {
44+
webUi {
4545
canBeResolved = false
4646
canBeConsumed = true
4747
attributes {
48-
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "yarnBuild-elements"))
48+
attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage, "web-ui"))
4949
}
5050
}
5151
}
5252

5353
artifacts {
54-
yarnBuildElements(distDir) {
54+
webUi(distDir) {
5555
builtBy(yarnBuildTask)
5656
}
5757
}

0 commit comments

Comments
 (0)