Skip to content

Upgrade to OpenRewrite to 7.34.3 #715

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

Closed
wants to merge 215 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
09b106f
wip
fabapp2 Oct 28, 2022
d83c2ae
Replaced tags with pinned sha for build-asciidoctor GH action
fabapp2 Nov 14, 2022
d3f38e1
Replaced tags with pinned sha for build-asciidoctor GH action
fabapp2 Nov 14, 2022
8fb9281
Adds Banner Support report section
sanagaraj-pivotal Oct 27, 2022
90753e7
Set JVM file.encoding to UTF-8 in Dockerfile
fabapp2 Oct 26, 2022
c306592
ci: Remove GitHub Action as the build is done in Concourse
fabapp2 Oct 28, 2022
fbf4487
Demo application for Boot 3 upgrade
sanagaraj-pivotal Oct 28, 2022
47be4f7
Report with web resources generated and written to project dir
fabapp2 Oct 28, 2022
7495036
Replace single with multiline string
fabapp2 Oct 30, 2022
677378b
Remove commented code
fabapp2 Oct 30, 2022
3754039
Add toString
fabapp2 Oct 30, 2022
b488dd8
Add method to serialize ProjectContext
fabapp2 Oct 30, 2022
b0d9d6f
Avoid NullPointerException in VisitorUtils.AdjustTypesFromExpressionM…
bottemav Oct 27, 2022
b736d12
Fix typo
bottemav Oct 27, 2022
627735e
Fix possible NullPointerException.
tan9 Oct 20, 2022
29e25a2
Fix possible ClassCastException.
tan9 Oct 20, 2022
22e82dd
Fix possible IndexOutOfBoundsException.
tan9 Oct 20, 2022
b7b3405
Constructor binding report generation for spring 2.7 to 3.0 project
sanagaraj-pivotal Nov 1, 2022
102b38b
Addressing review comments
sanagaraj-pivotal Nov 1, 2022
8aecf9c
Adding repository information back as its needed for ascii docs depen…
sanagaraj-pivotal Nov 2, 2022
b46939c
Deleting Spring one Demo Song app
sanagaraj-pivotal Nov 2, 2022
8998801
Test and fixes for get[declared|requested|effective]Dependencies methods
fabapp2 Nov 2, 2022
4048149
Remove dead code
fabapp2 Nov 2, 2022
75d903f
Test for getRequestedDependencies in JEE ear project
fabapp2 Nov 3, 2022
eb83db5
Bump asciidoctorj from 2.5.6 to 2.5.7
dependabot[bot] Oct 24, 2022
7d6fc3a
Bump spring-boot.version from 2.7.4 to 2.7.5
dependabot[bot] Oct 21, 2022
3b4e4f7
Bump rewrite-migrate-java from 1.12.0 to 1.13.0
dependabot[bot] Nov 3, 2022
72982ad
Fix Upgrade Report generation by unpacking spring-asciidoctor-backends
fabapp2 Nov 3, 2022
ca80b0c
Migrate Cassandra configuration to Spring Boot 3.0 in yaml and proper…
kuldeep-singh-tw Oct 17, 2022
64f542b
Updated recipe for properties format
kuldeep-singh-tw Oct 19, 2022
c1777bb
Remove duplicated line from expected test result
fabapp2 Nov 3, 2022
e99d4ce
adding the jmx endpoint exposure related files . (#473)
ishu-thakur Nov 3, 2022
c81b35a
Add GH issue template for Spring Boot 3 Upgrade Report
fabapp2 Nov 3, 2022
0afa263
Update issue templates
fabapp2 Nov 3, 2022
6cf575f
Delete template again now created through GH ui
fabapp2 Nov 3, 2022
15f34a0
Update issue templates
fabapp2 Nov 3, 2022
ec99e45
Update issue templates
fabapp2 Nov 3, 2022
7d6c7ac
Update issue templates
fabapp2 Nov 3, 2022
5169e2a
Update issue templates
fabapp2 Nov 3, 2022
b4b4b7f
Update issue templates
fabapp2 Nov 3, 2022
907958f
Use a more inclusive emoji for the manual recipes (#524)
RubenGamarrarodriguez-tomtom Nov 4, 2022
74fabe5
Replace emoji
fabapp2 Nov 7, 2022
010d01e
Bump maven-release-plugin from 3.0.0-M6 to 3.0.0-M7 (#530)
dependabot[bot] Nov 8, 2022
98849de
Add report for Spring MVC and WebFlux URL matching changes (#529)
fabapp2 Nov 8, 2022
56321db
#455 Merge scopes when adding a dependency that exists but with diffe…
ravig-kant Nov 9, 2022
6afaa2c
518 paging and sorting report (#537)
sanagaraj-pivotal Nov 9, 2022
29b5e75
Highlight files in PagingAndSorting Report section (#539)
sanagaraj-pivotal Nov 9, 2022
ab09644
Hacked a web application for Boot Upgrade report
fabapp2 Nov 9, 2022
abe4a53
Add Maven plugin for copyright header management
fabapp2 Nov 10, 2022
e5e7f3a
Add html extension to html test file
fabapp2 Nov 10, 2022
56a42bc
Add copyright header
fabapp2 Nov 10, 2022
e93e758
Merged with main
fabapp2 Nov 10, 2022
0fe1570
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
4b46ec0
Migrate JAX-RS QueryParam annotation to an optional RequestParam anno…
bottemav Nov 14, 2022
96daea4
Prevent empty commits
fabapp2 Nov 14, 2022
f461531
SBM now reports the deprecation of CommonsMultipartResolver bean (#549)
sanagaraj-pivotal Nov 15, 2022
eee2f38
Spring Boot 3 Upgrade Report (#553)
fabapp2 Nov 22, 2022
0e88252
Bump testcontainers from 1.17.5 to 1.17.6 (#562)
dependabot[bot] Nov 22, 2022
472a970
Bump jcl-over-slf4j from 2.0.3 to 2.0.4 (#565)
dependabot[bot] Nov 22, 2022
420ad3f
Test to proof that resources with syntax error will be ignored and al…
fabapp2 Nov 22, 2022
951f1a8
Bump htmlunit from 2.66.0 to 2.67.0 (#566)
dependabot[bot] Nov 22, 2022
aa3343d
560 use correct boot version in new report (#569)
fabapp2 Nov 22, 2022
0533270
Add shields
fabapp2 Nov 23, 2022
aeabacc
Add chat badges
fabapp2 Nov 25, 2022
f8f4af3
Update chat badges
fabapp2 Nov 25, 2022
3ead08e
Handle exceptions indicating broken jars
fabapp2 Nov 25, 2022
bfbb11a
RewriteMavenParser honors Maven settings.xml
fabapp2 Nov 25, 2022
a53f2b1
Adjust integration tests to use Boot 3
fabapp2 Nov 30, 2022
43834f7
Enhance PomBuilder
fabapp2 Nov 22, 2022
e8bd76c
Report section for Actuator Endpoints Sanitization
fabapp2 Nov 22, 2022
dd5d67d
Replace Spring Boot Milestone with 3.0.0
fabapp2 Nov 28, 2022
928ecd1
Add FIXME
fabapp2 Nov 28, 2022
648d379
Render link to GitHub issues as external link
fabapp2 Nov 30, 2022
8985db9
Add test for local maven repo set in settings.xml
fabapp2 Dec 1, 2022
84e6523
Bump org.eclipse.jgit from 6.3.0.202209071007-r to 6.4.0.202211300538-r
dependabot[bot] Dec 1, 2022
f2342aa
Bump jcl-over-slf4j from 2.0.4 to 2.0.5
dependabot[bot] Nov 28, 2022
12cb8a4
Current report sections are conditional to Boot 2.7 or 3.0
fabapp2 Dec 1, 2022
c1513f6
[maven-release-plugin] prepare release 0.13.0
fabapp2 Dec 2, 2022
0fd292a
[maven-release-plugin] prepare for next development iteration
fabapp2 Dec 2, 2022
8674d6b
Remove standard maven-compiler plugin for applications with boot pare…
ahmedmq Dec 15, 2022
14966c3
Support reusing Conditions for Helper in Spring Boot 3 Upgrade Repor…
fabapp2 Jan 3, 2023
386d75d
Fix: rename method parameter
fabapp2 Jan 3, 2023
b179902
test: test resolving implemented interfaces
fabapp2 Jan 3, 2023
a52eec8
docs: Change documentation after refactoring
fabapp2 Jan 3, 2023
6d89b2a
docs: Update version in README
fabapp2 Jan 3, 2023
9afdfdd
fix: Fix link to Gitter in README
fabapp2 Jan 3, 2023
a04fdbe
refactor: Rename AnyDependencyExistMatchingRegex to AnyDeclaredDepend…
fabapp2 Jan 3, 2023
1a69bb2
feat: Add method hasEffectiveDependencyMatchingRegex to BuildFile
fabapp2 Jan 3, 2023
9044f57
feat: Add AnyEffectiveDependencyMatchingRegex condition
fabapp2 Jan 3, 2023
57bd8eb
feat: Add Report section 'Multiple Batch Jobs'
fabapp2 Jan 3, 2023
17afc2c
feat: Add report section "Auto-configuration of Micrometer's JvmInfoM…
fabapp2 Jan 3, 2023
2a3c6df
feat: Add report section "Cassandra Properties"
fabapp2 Jan 3, 2023
74a0ac1
feat: Add report section "Hibernate 6.1"
fabapp2 Jan 3, 2023
2fccf2c
feat: Add report section "Actuator Metrics Export Properties"
fabapp2 Jan 3, 2023
e6cd9c2
feat: Add report section "Micrometer binders"
fabapp2 Jan 3, 2023
76bbeac
feat: Add report section "Updated Phases for Graceful Shutdown"
fabapp2 Jan 3, 2023
aaaffd4
feat: Add report section "'httptrace' Endpoint Renamed to 'httpexchan…
fabapp2 Jan 3, 2023
43b6ee8
feat: Add report section "Redis Properties"
fabapp2 Jan 3, 2023
6a3df02
feat: Add report section "Jetty"
fabapp2 Jan 3, 2023
87701ef
feat: Add report section "ReactiveUserDetailsService"
fabapp2 Jan 3, 2023
91d9bf0
feat: Add report section "Actuator JSON"
fabapp2 Jan 3, 2023
1451192
feat: Add report section "YamlJsonParser Has Been Removed"
fabapp2 Jan 3, 2023
40fd70b
feat: Add report section "Flyway"
fabapp2 Jan 3, 2023
cbb1386
feat: Add report section "JMX Endpoint Exposure"
fabapp2 Jan 3, 2023
a27de22
feat: Add report section "'server.max-http-header-size'"
fabapp2 Jan 3, 2023
9ae80d7
feat: Add report section "Auto-configuration Files"
fabapp2 Jan 3, 2023
96a796e
feat: Add report section "Embedded MongoDB"
fabapp2 Jan 3, 2023
136ac63
feat: Add report section "Mongo Health Check"
fabapp2 Jan 3, 2023
539b8d6
feat: Add report section "Git Commit ID Maven Plugin"
fabapp2 Jan 3, 2023
a973f76
feat: Add report section "@EnableBatchProcessing No Longer Required"
fabapp2 Jan 3, 2023
ccd43eb
feat: Add report section "Tag providers and contributors migration"
fabapp2 Jan 3, 2023
99274ca
feat: Add report section "Running Your Application in the Maven Process"
fabapp2 Jan 3, 2023
d0d63e7
feat: Add report section "R2DBC 1.0"
fabapp2 Jan 3, 2023
b44860f
feat: Add report section "Hazelcast Hibernate Removed"
fabapp2 Jan 3, 2023
95b9b4f
feat: Add report section "Hazelcast Hibernate Removed"
fabapp2 Jan 3, 2023
7d75cbe
feat: Add report section "SAML2 Relying Party Configuration"
fabapp2 Jan 3, 2023
ee6c1ca
feat: Add report section "ANTLR 2"
fabapp2 Jan 3, 2023
6f26ed0
feat: Add report section "Deprecation of the Spring Boot 2.x instrume…
fabapp2 Jan 3, 2023
06f6773
feat: Add report section "JSON-B"
fabapp2 Jan 3, 2023
7cbd1eb
feat: Add report section "Spring Session Store Type"
fabapp2 Jan 3, 2023
54ff7c2
feat: Add report section "Other Removals"
fabapp2 Jan 3, 2023
f43f0ce
feat: Add report section "Elasticsearch Clients and Templates"
fabapp2 Jan 3, 2023
038f539
Update README.adoc
fabapp2 Jan 4, 2023
fd2bd73
Fix links in README
fabapp2 Jan 4, 2023
fb6b55b
fix: fix typo in README
fabapp2 Jan 4, 2023
bb2e300
doc: Add youtube badge to README
fabapp2 Jan 4, 2023
980763c
fix: Fix failing test SpringMVCAndWebFluxUrlMatchingChangesReportSect…
fabapp2 Jan 4, 2023
fbf85d5
Bump jackson-dataformat-xml from 2.14.0 to 2.14.1
dependabot[bot] Dec 16, 2022
139f988
Bump jcl-over-slf4j from 2.0.5 to 2.0.6
dependabot[bot] Dec 13, 2022
53cb15b
Bump spring-shell-dependencies from 2.1.2 to 2.1.4
dependabot[bot] Dec 2, 2022
62419d4
Update issue templates
fabapp2 Jan 4, 2023
181fbc1
test: Enabled ProjectContextInitializerTest again (#697)
fabapp2 Jan 5, 2023
3cf5bca
doc: README
fabapp2 Jan 5, 2023
2713377
Migrate JAX-RS default value annotation (#604)
bottemav Jan 25, 2023
f47e540
Remove spring managed dependency with version consideration (#602)
ravig-kant Jan 25, 2023
7973917
fix: Remove outdated recipe with broken link (#711)
fabapp2 Jan 27, 2023
2af4412
wip
fabapp2 Oct 28, 2022
c37b59a
Bump openrewrite versions
fabapp2 Nov 23, 2022
ebd3df4
Catch and log MavenDownloadingException
fabapp2 Nov 23, 2022
cda456b
Delete old and disabled test
fabapp2 Nov 23, 2022
a2de23c
Provide flag to FindAnnotations in test
fabapp2 Nov 23, 2022
fce9f9e
Adjust import
fabapp2 Nov 23, 2022
b5b745c
Fix exception handling
fabapp2 Nov 23, 2022
973460a
Add flag to also find meta annotations
fabapp2 Nov 23, 2022
1ad14b3
Remove dead code
fabapp2 Nov 23, 2022
9607cfb
Adjust new method signature
fabapp2 Nov 23, 2022
c2ae70e
WIP
fabapp2 Nov 23, 2022
365fc57
Fix formatting of expected output
fabapp2 Nov 24, 2022
ccef636
Fix formatting of expected output and replace multiline with block
fabapp2 Nov 24, 2022
d7bcc7d
Fix formatting of expected output and replace multiline with block
fabapp2 Nov 24, 2022
2d896ad
WIP: Problems with type resolution
fabapp2 Nov 24, 2022
7de9453
Fix source code in test
fabapp2 Nov 25, 2022
245aae5
Use newer dependency in test
fabapp2 Nov 25, 2022
626cbe2
Add verifying test for JavaParser after problems with broken jars
fabapp2 Nov 25, 2022
f89fd1d
Merge MavenParserTest(s)
fabapp2 Nov 25, 2022
2e9a216
Add missing test in test code
fabapp2 Nov 25, 2022
cf19904
Remove TODO
fabapp2 Nov 25, 2022
3897cc9
refactor: Bump OpenRewrite versions
fabapp2 Jan 4, 2023
a5e275f
refactor: Provide default delimiter to AddProperty
fabapp2 Jan 4, 2023
7c823d8
test: Replace with new Exception type
fabapp2 Jan 4, 2023
4c28be8
refactor: Add new parameter
fabapp2 Jan 5, 2023
228d05b
fix: Changes from main
fabapp2 Jan 5, 2023
8479794
fix: Changes from main
fabapp2 Jan 5, 2023
932eab0
wip: Failing test for BuildFile.setProperty() as refactoring needs ac…
fabapp2 Jan 5, 2023
4e22088
fix: Provide RewriteExecutionContext to prevent exceptions from being…
fabapp2 Jan 5, 2023
eadf80e
fix: Disable test until MavenBuildFileRefactoring has access to all b…
fabapp2 Jan 5, 2023
d7d73ed
refactor: Delete unused test
fabapp2 Jan 5, 2023
050c3bd
refactor: Replace generic type in MavenBuildFileRefactoring
fabapp2 Jan 5, 2023
09fb9a9
refactor: Use AddProperty to add property instead of flag for ChangeP…
fabapp2 Jan 5, 2023
31e6b75
refactor: Create new MavenBuildFileRefactoring in constructor (for now)
fabapp2 Jan 5, 2023
92df3c7
refactor: Remove duplicate method call
fabapp2 Jan 6, 2023
4a5ba36
refactor: MavenBuildFileRefactoring for multiple buildfiles
fabapp2 Jan 13, 2023
3dbaed1
refactor: Replace with star-imports
fabapp2 Jan 13, 2023
c7883fa
Replaced RefreshPomModel with UpdatePomModel
fabapp2 Jan 13, 2023
0eec143
style: fix formatting
fabapp2 Jan 13, 2023
3309b4b
refactor: Replace imports with star-import
fabapp2 Jan 13, 2023
8c74edf
refactor: replace deprecated method
fabapp2 Jan 13, 2023
4ddf9e5
refactor: replace adddependency in loop with addDependencies
fabapp2 Jan 13, 2023
87a1f1f
refactor: Removed ExectutionContext from ProjectContextInitializer
fabapp2 Jan 13, 2023
14dbab6
refactor: Remove obsolete throws
fabapp2 Jan 14, 2023
54193b2
refactor: Remove obsolete statement
fabapp2 Jan 14, 2023
b5e4fad
refactor: Remove obsolete imports
fabapp2 Jan 14, 2023
9f319be
refactor: processResults throw exceptions
fabapp2 Jan 14, 2023
7b3f5b9
refactor: narrow logger name
fabapp2 Jan 14, 2023
b9d6f61
refactor: getEffective and getRequestedDependencyManagement
fabapp2 Jan 14, 2023
a45cb0f
test: Add test for deleteProperty()
fabapp2 Jan 14, 2023
0b3e793
refactor: Add logging
fabapp2 Jan 14, 2023
500738a
refactor: Move test to correct class
fabapp2 Jan 14, 2023
73d99b3
refactor: Moved refreshPomModel into MavenBuildFileRefactpring
fabapp2 Jan 14, 2023
cb253af
fix: Fix condition lets many tests succeed
fabapp2 Jan 14, 2023
90eb8a5
fix: changeConfiguration only applied to current pom
fabapp2 Jan 14, 2023
0ed6028
fix: BuildFile.addPlugin scoped to current build file
fabapp2 Jan 14, 2023
11aa983
test: Add assertion to test
fabapp2 Jan 14, 2023
59db364
test: Add missing beans to ApplicationContext
fabapp2 Jan 14, 2023
94de2e0
test: Add test for UpdateMavenModel (see https://github.com/openrewri…
fabapp2 Jan 14, 2023
c722c53
test: Enabled test again
fabapp2 Jan 14, 2023
c4b82f9
test: remove obsolete dependency version
fabapp2 Jan 14, 2023
9ab7882
test: Change packaging to pom
fabapp2 Jan 14, 2023
af1f0ec
test: Add more tests
fabapp2 Jan 14, 2023
0e52456
fix: test
fabapp2 Jan 14, 2023
cb0424b
fix: Nullcheck for git marker fixes tests harness
fabapp2 Jan 29, 2023
0f6c610
fix: Bump rewrite-migrate-java to 1.16.0
fabapp2 Jan 31, 2023
a1d0a5f
test: Remove obsolete assertion
fabapp2 Jan 31, 2023
d8c9925
test: Fix test by adding import to fixture
fabapp2 Jan 31, 2023
8b60da9
rework Spring Boot 3 Upgrade
fabapp2 Jan 31, 2023
77978bc
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
dd3b75d
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
ee16dce
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
6565d4f
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
2a6d948
WIP: Problems with type resolution
fabapp2 Nov 24, 2022
2aec8cb
wip: Failing test for BuildFile.setProperty() as refactoring needs ac…
fabapp2 Jan 5, 2023
ef4e338
fix: Nullcheck for git marker fixes tests harness
fabapp2 Jan 29, 2023
99fe613
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
282fa3b
Adding copyright info (#538)
sanagaraj-pivotal Nov 11, 2022
89aea28
fix: Handle checked exception
fabapp2 Feb 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/3-0-upgrade-recipe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: 3.0 Upgrade Recipe
about: Template for Spring Boot 3 Upgrade Receipe
title: '3.0 Upgrade Recipe: '
labels: '3.0.0, good first issue, type: enhancement, upgrade:boot-recipe'
assignees: ''

---

## What needs to be done

An automated migration recipe for [`{{Release Note title}}`]({{http://link-to-section.foo}}) should be created.


### Condition
{{Describe when the section should be rendered}}


### Report Section Issue

{{GH id for report issue}}


### DoD
- [ ] Action implemented
- [ ] Description provided
- [ ] Tests (single and multi-module)
- [ ] Condition implemented / reused
- [ ] Description provided
- [ ] Tests (single and multi-module)
- [ ] Recipe yaml added
- [ ] Test
- [ ] Integration test (single and multi-module)



## Recipe YAML Example

This provides an example with information about how a automated migration recipe should be defined in `YAML`.

<details>
<summary>Report Section YAML (example)</summary>

````yaml

````

</details>

## Additional Resources & Information
- Example
- Testing Actions
- Testing Conditions
- Testing Recipes
- Integration Tests
103 changes: 103 additions & 0 deletions .github/ISSUE_TEMPLATE/3-0-upgrade-report-section.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
---
name: 3.0 Upgrade Report Section
about: Template for Spring Boot 3 Upgrade Report Section
title: '3.0 Upgrade Report: '
labels: '3.0.0, good first issue, type: enhancement, upgrade:boot-report'
assignees: ''

---

## What needs to be done

A report section for [`{{Release Note title}}`]({{http://link-to-section.foo}}) should be added to the Spring Boot 3 Upgrade Report.

The section in the report for this change must be provided in `YAML` which will be used to render the asciidoctor markup which will finally be used to render the report.

A class implementing the interface `SpringBootUpgradeReportSection.Helper` must be provided.
````java
public interface Helper<T> extends Condition {
/**
* @return {@code Map<String, T>} the model data for the template.
*/
Map<String, T> getData(ProjectContext context);
}
````

The fully qualified name of this class must be referenced in the `YAML` describing the report section (see below).
It will be used as `Condition` to define if the section should rendered and
as `DataProvider` providing data to the freemarker template markup.


### Condition
{{Describe when the section should be rendered}}


### DoD
- [ ] Created `Helper` and referenced the fully qualified name in the yaml [[example](https://github.com/spring-projects-experimental/spring-boot-migrator/blob/8cc692233e949fc152126633ad0f69d9cd6c08e4/components/sbm-recipes-boot-upgrade/src/main/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ConstructorBindingHelper.java#L36)]
- [ ] Created test for the `Helper` against single and multi-module code (where applicable) [[example](https://github.com/spring-projects-experimental/spring-boot-migrator/blob/59ab7720d0961ec22cda9ed0bc48c78dd91fd1cf/components/sbm-recipes-boot-upgrade/src/test/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/ConstructorBindingHelperTest.java#L25)]
- [ ] Created a test for the rendered section in asciidoctor markup
- [ ] Create a negative test using `shouldNotRender`


## YAML Example

This provides an example with information about how a report section can be defined in `YAML`.
[Freemarker syntax](https://freemarker.apache.org/docs/ref.html) can be used to render the asciidoctor code.

<details>
<summary>Report Section YAML (example)</summary>

````yaml
- title: Add the title from Release Notes section
helper: fully qualified name of the Helper class
change: |-
Add the description from the Relase Notes section
This can be multiline, ident (two spaces) is important
sources:
- http://some-link-to-the-relase-note.html
- http://some-link-to-some-other-relase-note.html
affected: |-
Why is the scanned application affected?
Describes the matches of the `Finder` that made the condition for this section apply
<#list matches as match>
* file://${match.absolutePath}[`${match.relativePath}`]<#lt>
<#list match.propertiesFound as property>
** `${property}`<#lt>
</#list>
</#list>
remediation:
description: |-
Describe what the user needs to do to remediate this change in the scanned application.
This should be as descriptive as possible and can potentially serve as the requirement
for a later migration recipe that migrates the steps.
It is possible that different ways exist, in this case use this format
possibilities:
- title: The title of this remediation
description: |-
Detailed description of this approach and what the implications are
Use checkboxes if there's a sequence of steps
- [ ] Step 1
- [ ] Step 2
recipe: Name of the migration recipe for this remediation, if any
resources:
- Optional List of further resources like
- blog.spring.io/some-blog-article
- title: Title of the next remediation
description:
Detailed description of this approach and what the implications are
````java
codeblocks can be used here, even containing codeblocks with freemarker template code
like ${className}
````
gitHubIssue: add the id of this issue, like 123
projects:
- spring-boot
- [Some other project]http://link-to-some-other.project
contributors:
- Fabian Krüger[@fabapp2]
- Displayed Name[@GitHubName]
````

</details>

## Additional Resources & Information
8 changes: 7 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
labels: 'type: bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**SBM Version**
Provide the version or commit hash that was used.

**SBM Application**
Provide the application that was used. (shell, boot-upgrade, ...)

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/build-asciidoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@ jobs:
name: Asciidoctoring the docs to pretty HTML!
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3
- name: Get build container
id: adocbuild
uses: avattathil/asciidoctor-action@master
uses: tonynv/asciidoctor-action@28d076475809567f00d35696db08f8454d70eabb # pin@28d076475809567f00d35696db08f8454d70eabb
with:
program: "asciidoctor --backend=html5 -D docs -r asciidoctor-diagram docs/reference/*.adoc"
# asciidoctor --backend=html5 -D output docs/reference/developer-documentation.adoc
#program: "asciidoctor -D ./docs --backend=html5 -R ./docs"
# -a stylesheet=style.css
# && echo 'docs..io' > docs/CNAME"
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # pin@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./docs

4 changes: 2 additions & 2 deletions .github/workflows/check-license-headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
check-license-lines:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3
- name: Check License Lines
uses: kt3k/[email protected]
uses: kt3k/license_checker@d12a6d90c58e30fefed09f2c4d03ba57f4c673a8 # pin@v1.0.6
21 changes: 0 additions & 21 deletions .github/workflows/mvn-build.yml

This file was deleted.

58 changes: 46 additions & 12 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
= Spring Boot Migrator (SBM)

image:https://badges.gitter.im/spring-boot-migrator/community.svg[link="https://gitter.im/spring-boot-migrator/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"]

image:https://img.shields.io/github/license/spring-projects-experimental/spring-boot-migrator[GitHub]
image:https://img.shields.io/github/v/release/spring-projects-experimental/spring-boot-migrator[GitHub release (latest by date)]
image:https://img.shields.io/github/downloads/spring-projects-experimental/spring-boot-migrator/0.13.0/total[GitHub release (latest by date)]
image:https://img.shields.io/youtube/channel/views/UC6NuSiwpvI32YTcdIflObPQ?logo=youtube&style=flat-square[YouTube Channel Views]

image:https://img.shields.io/badge/Join-Slack-green?logo=slack&color=007EC6&style=for-the-badge[link="https://join.slack.com/t/springbootmigrator/shared_invite/zt-1k6yxfi3b-MEQ_MM67qXufWtc~Tw6y9w"]
image:https://img.shields.io/github/discussions/spring-projects-experimental/spring-boot-migrator?label=GitHub%20discussions&logo=GitHUb&style=for-the-badge[GitHub Discussions]
image:https://img.shields.io/gitter/room/spring-boot-migrator/community?color=007EC6&logo=gitter&style=for-the-badge[link="https://gitter.im/spring-boot-migrator/community"]

[quote]
____
Expand All @@ -15,33 +23,59 @@ ____
❌ Gradle


== Spring Boot 3.0 Upgrades

== Spring Boot 3.0 Upgrades
We are working on automated upgrade from Spring Boot 2.7 to Spring Boot 3.0.

Click the image to watch a demo video [2:26]

ifdef::env-github[]
image:https://img.youtube.com/vi/RKXblzn8lFg/maxresdefault.jpg[link=https://www.youtube.com/embed/RKXblzn8lFg]
endif::[]

=== Try the Spring Boot Upgrade Tool
NOTE: **Use JDK 17**

. Download the https://github.com/spring-projects-experimental/spring-boot-migrator/releases/download/latest/spring-boot-upgrade.jar[spring-boot-upgrade.jar]
. Run `java -jar --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED spring-boot-upgrade.jar <path-to-application>`

If any of your applications is on 2.7 and uses Maven (Gradle is currently not supported), we'd be happy if you
could give SBM a try and provide feedback of how it worked out.
It is very hard to come up with all the possible setups found in the wild and therefor we need you - the community - to provide feedback to stabilize the recipe.

Thank you!

Download the https://github.com/spring-projects-experimental/spring-boot-migrator/releases[latest release]

- Start SBM: `java -jar spring-boot-migrator.jar`
- Scan your application: `scan <path to application>`
- generate a report first: `apply boot-2.7-3.0-upgrade-report`
- Run the migration: `apply boot-2.7-3.0-dependency-version-update`

=== Contributing

Any contribution is appreciated!
If you want to get involved, please have a look at https://github.com/spring-projects-experimental/spring-boot-migrator/discussions/446[this discussion] where we provide additional information related to the Spring Boot 3 Upgrade.
If you want to get involved, please have a look at https://github.com/spring-projects-experimental/spring-boot-migrator/wiki/Spring-Boot-3-Upgrade-Report-Contribution-Guideline[Spring Boot 3 Upgrade Report Contribution Guideline] where we provide information related to contributing to the Spring Boot 3 Upgrade.
Please don't hesitate to ask questions and provide feedback.

Find the list of Spring Boot 3 Upgrade related issues labeled as `good first issue` https://github.com/spring-projects-experimental/spring-boot-migrator/issues?q=is%3Aissue+is%3Aopen+label%3A3.0.0+label%3A%22good+first+issue%22+[here]

If you decided you want to work on an issue, leave a comment letting us know that you want to work on it and we go from there.

Thank you!

== JEE to Spring Boot Migration
Spring Boot Migrator offers recipes to migrate JEE applications to Spring Boot.

These specifications are covered (to some extent and varying completeness)

* Servlet
* JAX-RS
* SOAP
* JMS
* EJB
* JPA
* ejb-jar.xml
* weblogic-ejb-jar.xml

Click the image to watch a demo video [16:57]

ifdef::env-github[]
image:https://img.youtube.com/vi/PnvsLafekWE/maxresdefault.jpg[link=https://www.youtube.com/embed/PnvsLafekWE]
endif::[]

== How SBM works

Spring Boot Migrator uses and is compatible with https://github.com/openrewrite/rewrite[OpenRewrite,window=_blank],
Expand All @@ -66,7 +100,7 @@ image::images/apply.png[]

== Getting started

* Download the latest release from here: https://github.com/spring-projects-experimental/spring-boot-migrator/releases[Spring Boot Migrator Releases]
* Download the latest release from here: https://github.com/spring-projects-experimental/spring-boot-migrator/releases/latest[Spring Boot Migrator Releases]
* Start the application: `java -jar spring-boot-migrator.jar`
* In the CLI start by scanning the application `scan <path-to-application>`
* From the list of applicable recipes select the one you want to apply, +
Expand Down
Loading