Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ dependencies {
testRuntimeOnly("org.apache.groovy:groovy:4.+")
testRuntimeOnly("org.jboss.logging:jboss-logging:3.6.0.Final")
testRuntimeOnly("jakarta.annotation:jakarta.annotation-api:2.1.1")
testRuntimeOnly("io.micrometer:micrometer-core:1.15.1")
testRuntimeOnly("org.springframework:spring-core:6.1.13")
testRuntimeOnly("io.micronaut:micronaut-core:4.10.8")
testRuntimeOnly("com.google.code.findbugs:jsr305:3.0.2")
Expand Down
13 changes: 12 additions & 1 deletion src/main/resources/META-INF/rewrite/jspecify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ preconditions:
- org.openrewrite.Singleton
recipeList:
- org.openrewrite.java.jspecify.MigrateToJSpecify
# The static analysis recipes below introduce `org.jspecify.annotations.*`, and the Spring
# migration leaf is deliberately disabled in MigrateToJSpecify, so Spring projects still need
# the JSpecify dependency.
- org.openrewrite.java.dependencies.AddDependency:
groupId: org.jspecify
artifactId: jspecify
version: 1.0.0
# *ull* matches Nullable, NonNull, NonNullApi and NonNullFields
onlyIfUsing: org.springframework.lang.*ull*
acceptTransitive: true
- org.openrewrite.staticanalysis.AnnotateNullableMethods
- org.openrewrite.staticanalysis.AnnotateNullableParameters
- org.openrewrite.staticanalysis.AnnotateRequiredParameters
Expand Down Expand Up @@ -149,7 +159,8 @@ recipeList:
groupId: org.jspecify
artifactId: jspecify
version: 1.0.0
onlyIfUsing: org.springframework.lang.*ull*
# *ull* matches Nullable, NonNull, NonNullApi and NonNullFields
onlyIfUsing: io.micrometer.core.lang.*ull*
acceptTransitive: true
- org.openrewrite.java.migrate.jspecify.MoveAnnotationToArrayType:
annotationType: io.micrometer.core.lang.*ull*
Expand Down
Loading