Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Jan 13, 2025

Reduce the amount of dependency declarations in all projects by adding adding the dependencies logback-classic (runtimeOnly) and assertj+mockito (implementation) to all test sources. test-fixtures get junit-jupiter+assertj+mockito as implementation dependencies.

Also ensures that useJUnitJupiter is called with the correct version (it implicitly adds the jupiter runtime).

logback-classic is needed at test runtime to actually get logs during test executions, logback-core is a dependency of logback-classic that provides the logback implementation.

@snazy snazy force-pushed the build-test-fixtures branch from 46d120b to 9b29ff9 Compare January 13, 2025 18:01
@snazy snazy changed the title Build/testing: add java-test-fixtures to every Java project & reduc… Build/testing: add java-test-fixtures to every Java project & reduce repeated dependency declarations Jan 13, 2025
@snazy snazy force-pushed the build-test-fixtures branch from 9b29ff9 to 922ad05 Compare January 13, 2025 20:28
…e repeated dependency declarations

Reduce the amount of dependency declarations in all projects by adding adding the dependencies logback-classic (runtimeOnly) and assertj+mockito (implementation) to all test sources. test-fixtures get junit-jupiter+assertj+mockito as implementation dependencies.

Also ensures that `useJUnitJupiter` is called with the correct version (it implicitly adds the jupiter runtime).

logback-classic is needed at test runtime to actually get logs during test executions, logback-core is a dependency of logback-classic that provides the logback implementation.
@snazy snazy force-pushed the build-test-fixtures branch from 922ad05 to 0568658 Compare January 13, 2025 21:37
Copy link
Contributor

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@snazy snazy merged commit 72600e4 into apache:main Jan 14, 2025
5 checks passed
@snazy snazy deleted the build-test-fixtures branch January 14, 2025 09:21
snazy added a commit to snazy/polaris that referenced this pull request Jan 14, 2025
snazy added a commit that referenced this pull request Jan 14, 2025
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