-
Notifications
You must be signed in to change notification settings - Fork 23
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
Recipe to Migrate Acegi Security to Spring Security #808
base: main
Are you sure you want to change the base?
Recipe to Migrate Acegi Security to Spring Security #808
Conversation
Would like a review on this. |
UpdateBomTest.shouldUpdateToLatestIncrementalsWithoutMavenConfig is failing :( |
This is due to incremental cleanup project: https://repo.jenkins-ci.org/artifactory/incrementals/io/jenkins/tools/bom/ I will see how to fix the test (or disable it) |
This looks ok for me. But my concern is when I see <dependency>
<groupId>org.acegisecurity</groupId>
<artifactId>acegi-security</artifactId>
<version>1.0.7</version>
</dependency> No plugin should declarare such dependency (like spring security) since it's provided by core. So normally we just need to change package name and not touch dependency @gounthar By any chance did you follow this rather old migration? |
…gradeNextMajorParentVersion
…on of Acegi Security to Spring Securityy
…tbucket-oauth was not performing the migration
7dfe347
to
89f102b
Compare
Basil made a few of them recently if that can help. |
Issue #792
Added a scanning recipe to
Migrate Acegi Security to Spring Security
. It checks if acegi security is used as a dependency, if yes then it migrates it to Spring Security by using 2 visitors.spring security core
andspring security config
dependencies.We need to make it a scanning recipe as the maven visitor was adding the spring security even when no acegi security is used (i.e no migration required).
Therefore we check first if acegi security is used then perform the migration or it will unnecessary add certain dependencies.
Testing done
Added test cases for the recipe, visitor and UpgradeNextMajorParentVersion.
Submitter checklist