The Java packaging used a custom thingsboard.package Gradle plugin, built by the
packaging Maven module, for its deb packages. It now applies the public
com.netflix.nebula.ospackage plugin 12.1.1, as the JS packaging already does,
so the packaging module and its Groovy plugin sources are removed.
Activating any other root profile (skip-pkg, skip-pkg-without-*) switches off the
activeByDefault packaging profile, which held the only build-info execution, so such builds
had no build-info.properties and ProjectInfo failed at runtime. The jar plugin config
(logback.xml exclusion, manifest) moves out of the profile for the same reason.
Packages built without the UI are incomplete, so -Dskip.yarn=true and
-Dskip.ui.build=true now imply -Dpkg.skip=true through dedicated profiles
in the root pom and msa/pom.xml.
This replaces the module-level pkg.skip.zip properties in msa/js-executor
and msa/web-ui, which shadowed the root skip-pkg profile and made
-Dpkg.skip=true build their Windows ZIPs again.
frontend-maven-plugin reads skip.yarn on its own, so -Dskip.yarn=true switches
off every yarn invocation in the project at once. That is the right shortcut for
a local backend build, but it is too blunt for CI: it also silences the
msa/js-executor sandbox tests, which are the only yarn-driven tests worth
keeping.
skip.ui.build is declared once in the root pom and defaults to ${skip.yarn}. It
is wired into the frontend-maven-plugin configuration of ui-ngx and msa/web-ui,
and into the pkg.skip.zip of msa/web-ui, whose Windows ZIP bundles the launcher
that `yarn run pkg` produces. It is deliberately NOT wired into
msa/js-executor: with -Dskip.ui.build=true that module still runs its yarn
install, its `yarn run pkg` and its sandbox tests.
Behaviour:
no flags everything builds and is tested as before
-Dskip.ui.build=true ui-ngx and msa/web-ui skip;
msa/js-executor still builds and runs its tests
-Dskip.yarn=true everything skips, exactly as before
The <skip> element is declared at plugin level rather than per execution so that
it also covers the executions contributed by the yarn-build and yarn-start
profiles, and so that node/yarn itself is no longer downloaded when there is
nothing to run.