Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .mvn/develocity-custom-user-data.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
buildCache.registerMojoMetadataProvider(context -> {
context.withPlugin("maven-checkstyle-plugin", () -> {
context.inputs(inputs -> {
inputs.fileSet("testSourceDirectories", fileSet ->
fileSet.excludes("**/target/**")
)
})
})
})
Comment on lines +1 to +9
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have https://github.com/hibernate/hibernate-develocity-maven-extension for these. would you want to move it there ?

1 change: 1 addition & 0 deletions build/parents/build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@
<excludes>
**/Generated.java,**/TypeHelper*.java,**/MatchSuppressor.java,**/CommentSuppressor.java,**/NeverSuppress.java,
**/*_$logger.java,**/*_$bundle.java,
**/*__.java,
**/module-info.java,
**/avro/generated/**/*.java
</excludes>
Expand Down
39 changes: 31 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -511,14 +511,6 @@
<!-- The default resource dir: -->
<directory>${project.basedir}/src/main/resources</directory>
</resource>
<resource>
<!-- Extra dir to include the license file: -->
<directory>${rootProject.directory}</directory>
<includes>
<include>LICENSE.txt</include>
</includes>
<targetPath>META-INF</targetPath>
</resource>
</resources>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -1154,6 +1146,37 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<!--
Copy LICENSE.txt to META-INF in the build output directory.
Previously done via a project-level <resource> pointing at ${rootProject.directory},
but that caused the entire workspace root to be fingerprinted as a build cache input
for all goals consuming project resources (e.g. checkstyle:check), breaking
build cache relocatability.
-->
<id>copy-license</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF</outputDirectory>
<resources>
<resource>
<directory>${rootProject.directory}</directory>
<includes>
<include>LICENSE.txt</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down