From fed80a6669528a8c0f4359cbff83f2fef297b474 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 28 May 2026 15:03:03 +0200 Subject: [PATCH] Fix snapshot deployment dependencies This fixes the issue that UI JARs are included in the custom project deployment when openremoteVersion is set to a SNAPSHOT version published locally. It is also no longer necessary to exclude `:openremote:ui:app` from the tasks because submodules are no longer used. --- deployment/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/build.gradle b/deployment/build.gradle index 3e91f55dc..d25687ef1 100644 --- a/deployment/build.gradle +++ b/deployment/build.gradle @@ -30,8 +30,8 @@ tasks.register('license') { tasks.register('installDist', Copy) { duplicatesStrategy = DuplicatesStrategy.EXCLUDE dependsOn(parent.getTasksByName('installDist', true).findAll { - // Don't create circular dependency or depend on built in openremote submodule apps - it.project != project && !it.project.path.startsWith(":openremote:ui:app") + // Don't create circular dependency + it.project != project }) into("$buildDir") @@ -48,6 +48,6 @@ tasks.register('installDist', Copy) { // Don't include deps baked into the manager docker image exclude configurations.managerRuntime.resolvedConfiguration.resolvedArtifacts.collect {it.file.name } // Don't include any ui packaged JARs (used for dev purposes only) - exclude { (it.file.path.contains(".gradle") || it.file.path.contains(".m2")) && it.file.path.contains("io.openremote.ui") } + exclude { (it.file.path.contains(".gradle") || it.file.path.contains(".m2")) && it.file.path.contains("io/openremote/ui") } } }