Update dependency com.tngtech.archunit:archunit-junit5 to v1 - autoclosed #406
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.23.1
->1.0.0
Release Notes
TNG/ArchUnit
v1.0.0
Compare Source
0.x
version, please also refer to the release notes of release candidate1.0.0-rc1
as these release notes refer to upgrading from the release candidateBreaking Changes
JavaPackage
subpackages and dependencies has been improved to remove ambiguities. In general, whenever all classes from a package and subpackages recursively are involved, this is now called "package tree". Otherwise, it only targets the classes directly within this package (see #919/#968; thanks a lot to @grimsa)The following mapping shows how to translate the old methods to the current methods:
getAllClasses()
->getClassesInPackageTree()
getAllSubpackages()
->getSubpackagesInTree()
getClassDependenciesFromSelf()
->getClassDependenciesFromThisPackageTree()
getClassDependenciesToSelf()
->getClassDependenciesToThisPackageTree()
getPackageDependenciesFromSelf()
->getPackageDependenciesFromThisPackageTree()
getPackageDependenciesToSelf()
->getPackageDependenciesToThisPackageTree()
accept(..)
->traversePackageTree(..)
ClassFileImporter.importPackages("")
will now yields the same result as usingimportClasspath()
without anyImportOption
(see #954)ClassFileImporter.importClasspath()
now behaves consistently to other import APIs. I.e. no defaultImportOptions
likeDoNotIncludeArchives
are added anymore, instead allImportOptions
need to be added the same way as for all other import methods (see #958)ImportOptions
has been removed from the public API and been replaced by a standardCollection<ImportOption>
where appropriate (see #958)com.tngtech.archunit.library.plantuml
has been moved tocom.tngtech.archunit.library.plantuml.rules
to make room for adding other PlantUML related features (see #959)1.7.30
to2.0.3
, so any log adapter dependency to be used with ArchUnit (e.g. to hook in Log4J) has to be compatible with SLF4J-API2.x
from now on (see #966)Bug Fixes
access$123(..)
would lead to only one access being imported. Note, that these synthetic methods are added for calls to private fields / methods from inner classes to outer classes, etc. (see #957)Enhancements
Lang
archunit_ignore_patterns.txt
is now also respected byFreezingArchRule
. Thus, ignored violations are not added to theViolationStore
anymore (see #915)Library
testClassesShouldResideInTheSamePackageAsImplementation(..)
now supports multiple test classes with same simple name (see #918; thanks a lot to @mslowiak)PlantUmlArchCondition
now does not throw exceptions anymore, if a class is in none or multiple components, but instead reports those as standard violations. This way these violations can also be frozen viaFreezingArchRule
instead of crashing the test (see #960)Further Acknowledgement
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.