Skip to content

re-implement some ArchUnit code to support scanning package-info#58

Merged
wakingrufus merged 1 commit intomainfrom
package-info-fix
Feb 19, 2026
Merged

re-implement some ArchUnit code to support scanning package-info#58
wakingrufus merged 1 commit intomainfrom
package-info-fix

Conversation

@wakingrufus
Copy link
Member

re-implement some ArchUnit code to support treating package-info as a class dependency when scanning

since TNG/ArchUnit#1565 has not been merged in a timely manner, we need a custom implementation on our end to fix this issue until it is finally merged.

@wakingrufus wakingrufus marked this pull request as ready for review February 19, 2026 17:42
… class dependency when scanning

since TNG/ArchUnit#1565 has not been merged in a timely manner, we need a custom implementation on our end to fix this issue until it is finally merged.
lateinit var projectDir: File

@Test
fun `package rules work for external packages`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Exported instead of External?

Copy link
Member Author

Choose a reason for hiding this comment

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

external means from another jar in this case. the issue is that package level annotations on code from dependencies (code that is not being evaluated) are not currently visible

@wakingrufus wakingrufus merged commit f1ff834 into main Feb 19, 2026
3 checks passed
@wakingrufus wakingrufus deleted the package-info-fix branch February 19, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants