Allow incremental build for the themes (#25405)

Closes #25404

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Alexander Schwartz 2023-12-11 08:35:28 +01:00 committed by GitHub
parent 78ba7d4a38
commit e87f0feaed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 7 deletions

View file

@ -20,6 +20,6 @@
<extension> <extension>
<groupId>org.apache.maven.extensions</groupId> <groupId>org.apache.maven.extensions</groupId>
<artifactId>maven-build-cache-extension</artifactId> <artifactId>maven-build-cache-extension</artifactId>
<version>1.0.1</version> <version>1.1.0</version>
</extension> </extension>
</extensions> </extensions>

View file

@ -19,9 +19,9 @@
<js.adapter.projectDir>${js.projectDir}/libs/keycloak-js</js.adapter.projectDir> <js.adapter.projectDir>${js.projectDir}/libs/keycloak-js</js.adapter.projectDir>
<js.adapter.distDir>${js.adapter.projectDir}/dist</js.adapter.distDir> <js.adapter.distDir>${js.adapter.projectDir}/dist</js.adapter.distDir>
<!-- as the frontend-maven-plugin depends on workingDirectory, list all parts which should be ignored from the checksum --> <!-- as the frontend-maven-plugin depends on workingDirectory, list all parts which should be ignored from the checksum -->
<maven.build.cache.exclude.1>${maven.multiModuleProjectDirectory}/js/libs/keycloak-js/node_modules</maven.build.cache.exclude.1> <maven.build.cache.exclude.value.1>${maven.multiModuleProjectDirectory}/js/libs/keycloak-js/node_modules</maven.build.cache.exclude.value.1>
<!-- TODO: this is almost correct, as the DIST folder includes also two source files --> <!-- TODO: this is almost correct, as the DIST folder includes also two source files -->
<maven.build.cache.exclude.2>${maven.multiModuleProjectDirectory}/js/libs/keycloak-js/dist</maven.build.cache.exclude.2> <maven.build.cache.exclude.value.2>${maven.multiModuleProjectDirectory}/js/libs/keycloak-js/dist</maven.build.cache.exclude.value.2>
</properties> </properties>
<build> <build>

View file

@ -26,7 +26,7 @@
<!-- The JavaScript projects use the non-standard 'src' folder for their sources, therefore, name it here explicitly --> <!-- The JavaScript projects use the non-standard 'src' folder for their sources, therefore, name it here explicitly -->
<maven.build.cache.input.1>src</maven.build.cache.input.1> <maven.build.cache.input.1>src</maven.build.cache.input.1>
<!-- The child projects will package from the 'dist' folder, which is listed as a resource, but isn't a source folder --> <!-- The child projects will package from the 'dist' folder, which is listed as a resource, but isn't a source folder -->
<maven.build.cache.exclude.1>${project.basedir}/dist</maven.build.cache.exclude.1> <maven.build.cache.exclude.value.1>${project.basedir}/dist</maven.build.cache.exclude.value.1>
</properties> </properties>
<build> <build>

View file

@ -16,9 +16,18 @@
<dir.common>src/main/resources/theme/keycloak/common/resources</dir.common> <dir.common>src/main/resources/theme/keycloak/common/resources</dir.common>
<dir.account2>src/main/resources/theme/keycloak.v2/account/src</dir.account2> <dir.account2>src/main/resources/theme/keycloak.v2/account/src</dir.account2>
<!-- ignore folders for incremental builds by the maven build cache plugin --> <!-- ignore folders for incremental builds by the maven build cache plugin -->
<maven.build.cache.exclude.1>${project.basedir}/src/main/resources/theme/keycloak/common/resources/node_modules</maven.build.cache.exclude.1> <maven.build.cache.exclude.value.1>src/main/resources/theme/keycloak/common/resources/node_modules</maven.build.cache.exclude.value.1>
<maven.build.cache.exclude.2>${project.basedir}/src/main/resources/theme/keycloak.v2/account/src/node_modules</maven.build.cache.exclude.2> <maven.build.cache.exclude.value.2>src/main/resources/theme/keycloak/common/resources/vendor</maven.build.cache.exclude.value.2>
<maven.build.cache.exclude.3>${project.basedir}/src/main/resources/theme/keycloak.v2/account/src/web_modules</maven.build.cache.exclude.3> <maven.build.cache.exclude.value.3>src/main/resources/theme/keycloak.v2/account/src/node_modules</maven.build.cache.exclude.value.3>
<maven.build.cache.exclude.value.4>src/main/resources/theme/keycloak.v2/account/src/web_modules</maven.build.cache.exclude.value.4>
<maven.build.cache.exclude.value.6>src/main/resources/theme/keycloak.v2/account/resources</maven.build.cache.exclude.value.6>
<maven.build.cache.exclude.glob.6>*.js</maven.build.cache.exclude.glob.6>
<maven.build.cache.exclude.value.7>src/main/resources/theme/keycloak.v2/account/resources</maven.build.cache.exclude.value.7>
<maven.build.cache.exclude.glob.7>*.js.map</maven.build.cache.exclude.glob.7>
<maven.build.cache.exclude.value.8>src/main/resources/theme/keycloak.v2/account/resources/public/app.css</maven.build.cache.exclude.value.8>
<maven.build.cache.exclude.value.9>src/main/resources/theme/keycloak.v2/account/web_modules</maven.build.cache.exclude.value.9>
<maven.build.cache.exclude.value.10>src/main/resources/theme/keycloak.v2/welcome/node_modules</maven.build.cache.exclude.value.10>
<maven.build.cache.exclude.value.11>src/main/resources/theme/keycloak.v2/welcome/resources/vendor</maven.build.cache.exclude.value.11>
</properties> </properties>
<dependencies> <dependencies>
@ -89,6 +98,8 @@
<excludes> <excludes>
<exclude>**/node_modules/**/*</exclude> <exclude>**/node_modules/**/*</exclude>
<exclude>**/web_modules/**/*</exclude> <exclude>**/web_modules/**/*</exclude>
<exclude>**/*.js.map</exclude>
<exclude>**/account/resources/*.js</exclude>
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>