Skip to content

Commit e096563

Browse files
ashakirinfabapp2sanagaraj-pivotal
authored
Webapp demo sn as (#554)
* Verify commits are only done with actual changes, Closes #527 * Fix wring recipe name in report * Fix condition for action in paging and sorting recipe Co-authored-by: Fabian Krüger <[email protected]> Co-authored-by: Sandeep Nagaraj <[email protected]>
1 parent a177487 commit e096563

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

components/sbm-core/src/main/java/org/springframework/sbm/engine/git/GitSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public void commitWhenGitAvailable(ProjectContext context, String appliedRecipeN
252252
.map(r -> context.getProjectRootDirectory().relativize(Path.of(r)).toString())
253253
.collect(Collectors.toList());
254254

255-
if (sbmApplicationProperties.isGitSupportEnabled() && !(modifiedResources.isEmpty() || deletedResources.isEmpty())) {
255+
if (sbmApplicationProperties.isGitSupportEnabled() && (!modifiedResources.isEmpty() || !deletedResources.isEmpty())) {
256256
File repoDir = context.getProjectRootDirectory().toFile();
257257
if (repoExists(repoDir)) {
258258
String commitMessage = "SBM: applied recipe '" + appliedRecipeName + "'";

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/27_30/report/sbu30-migrate-to-jakarta-packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: sbu30-remove-construtor-binding
1+
- name: sbu30-migrate-javax-to-jakarta
22
description: Spring boot 3.0 Upgrade - Migrate javax packages to new jakarta packages
33
condition:
44
type: org.springframework.sbm.common.migration.conditions.TrueCondition

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/27_30/report/sbu30-paging-and-sorting-repository.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- type: org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
88
condition:
99
type: org.springframework.sbm.boot.common.conditions.IsSpringBootProject
10-
versionPattern: "3\\.0\\..*"
10+
versionPattern: "2\\.7\\..*|3\\.0\\..*"
1111
description: Add CrudRepository interface extension additionally to PagingAndSortingRepository
1212
openRewriteRecipe: |-
1313
type: specs.openrewrite.org/v1beta/recipe

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/27_30/report/sbu30-remove-construtor-binding.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
- type: org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
88
condition:
99
type: org.springframework.sbm.boot.common.conditions.IsSpringBootProject
10-
versionPattern: "3\\.0\\..*"
10+
versionPattern: "2\\.7\\..*|3\\.0\\..*"
1111
description: Remove redundant @ConstructorBinding annotations when applicable
1212
openRewriteRecipe: |-
1313
type: specs.openrewrite.org/v1beta/recipe
1414
name: org.openrewrite.java.spring.boot3.ImprovedConstructorBinding
15-
displayName: Migrate additional Spring Boot properties to 2.7
15+
displayName: Remove redundant @ConstructorBinding annotations
1616
description: Remove redundant @ConstructorBinding annotations when applicable
1717
recipeList:
1818
- org.openrewrite.java.spring.boot3.RemoveConstructorBindingAnnotation

components/sbm-recipes-boot-upgrade/src/main/resources/recipes/boot-2.7-3.0-dependency-version-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
# - type: org.springframework.sbm.engine.recipe.OpenRewriteDeclarativeRecipeAdapter
179179
# condition:
180180
# type: org.springframework.sbm.boot.common.conditions.IsSpringBootProject
181-
# versionPattern: "3\\.0\\..*"
181+
# versionPattern: "2\\.7\\..*|3\\.0\\..*"
182182
# description: Remove redundant @ConstructorBinding annotations when applicable
183183
# openRewriteRecipe: |-
184184
# type: specs.openrewrite.org/v1beta/recipe

0 commit comments

Comments
 (0)