Skip to content

Exclude AspectJ builddef.lst from published JARs. - #4351

Closed
kalayciburak wants to merge 1 commit into
spring-projects:mainfrom
kalayciburak:gh-4350-exclude-builddef-lst
Closed

kalayciburak wants to merge 1 commit into
spring-projects:mainfrom
kalayciburak:gh-4350-exclude-builddef-lst

Conversation

@kalayciburak

Copy link
Copy Markdown
Contributor

Summary

  • aspectj-maven-plugin writes builddef.lst into target/classes by default, so the published spring-data-jpa JAR shipped a local-path AJC argument file.
  • Relocate that file to target/builddef.lst and exclude builddef.lst from the JAR.

Closes #4350

Test plan

Executed:

  • ./mvnw -pl spring-data-jpa -am package -DskipTests (before): jar tf listed builddef.lst.
  • ./mvnw -pl spring-data-jpa -am package -DskipTests (after): jar tf no longer lists builddef.lst; Automatic-Module-Name / Implementation-* manifest entries remain.
  • ./mvnw -pl spring-data-jpa -Dtest=AuditingNamespaceUnitTests,JpaRuntimeHintsUnitTests test: 7 tests, 0 failures (Surefire default/unit/integration/eclipselink executions).

aspectj-maven-plugin writes its compiler argument file into target/classes by default, so the published artifact ships a local-path build definition. Relocate that file out of the classes directory and exclude it from the JAR.

Closes spring-projects#4350

Signed-off-by: Burak KALAYCI <kalayciburak1996@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 10, 2026
Comment thread spring-data-jpa/pom.xml
<verbose>true</verbose>
<showWeaveInfo>true</showWeaveInfo>
<!-- Keep AJC's argument file out of target/classes so it is not packaged. -->
<argumentFileName>../builddef.lst</argumentFileName>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems sufficient.

mp911de pushed a commit that referenced this pull request Sep 16, 2026
Closes #4350
Original pull request: #4351

Signed-off-by: Burak KALAYCI <kalayciburak1996@gmail.com>
mp911de pushed a commit that referenced this pull request Sep 16, 2026
Closes #4350
Original pull request: #4351

Signed-off-by: Burak KALAYCI <kalayciburak1996@gmail.com>
mp911de pushed a commit that referenced this pull request Sep 16, 2026
Closes #4350
Original pull request: #4351

Signed-off-by: Burak KALAYCI <kalayciburak1996@gmail.com>
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 16, 2026
@mp911de mp911de self-assigned this Sep 16, 2026
@mp911de mp911de added this to the 4.0.8 (2025.1.8) milestone Sep 16, 2026
@mp911de

mp911de commented Sep 16, 2026

Copy link
Copy Markdown
Member

Thank you for your contribution. That's merged, polished, and backported now.

@mp911de mp911de closed this Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude builddef.lst from jar files

3 participants