Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates DependencyTests to ArchUnit. #4315

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Mar 3, 2023

Migrates DependencyTests to ArchUnit.

The tests are currently failing due to various undesired dependencies.

The tests start with something like:

	JavaClasses importedClasses = new ClassFileImporter()
	        ...
			.that(onlySpringData())

By adding

			.that(ignorePackage("org.springframework.data.aot.hint"))

or

			.that(ignore(SomeClass.class));

the given classes or packages can be ignored for the analysis.
Of course the goal should be to fix the cycles.

The tests are currently failing due to various undesired dependencies.

The tests start with something like:

		JavaClasses importedClasses = new ClassFileImporter()
		        ...
				.that(onlySpringData())

By adding

				.that(ignorePackage(org.springframework.data.aot.hint))

or

				.that(ignore(SomeClass.class));

the given classes or packages can be ignored for the analysis.
Of course the goal should be to fix the cycles.
@christophstrobl
Copy link
Member

I'm curious what's your take on the cycles created by the config, support and util packages?
The AOT ones I'd rather skip for now.

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