Commit Graph

55 Commits

Author SHA1 Message Date
Fabian Krüger
53fe6999bf Add Maven launcher using Maven Invoker 2024-03-05 16:55:23 +01:00
Bs Mahi
d1ccaadd0f Refactored Submodules with Naming Schema Prefix
* Refactored Submodules with Naming Schema Prefix
* Resolved C1 Issue
2024-02-08 10:29:14 +01:00
Fabian Krüger
d7b19836c5 Polish
* Add gitignore

* Bump Boot version to 3.1.8

* Fix test
2024-02-06 15:19:34 +01:00
Fabian Krüger
e2df979760 Add run method for recipe instances 2024-01-30 17:53:11 +01:00
Fabian Krüger
9457697387 Add Gradle modules to reactor build 2024-01-29 21:56:16 +01:00
Fabian Krüger
d349af16d7 Fix Maven project graph 2024-01-29 21:15:51 +01:00
Fabian Krüger
861eabc700 Refactoring
* Fix package name
* Move classes to the application root package
* Change class names
* Polish
2024-01-26 14:20:40 +01:00
Fabian Krüger
ff814b4e56 Deploy test jar to snapshots 2024-01-26 09:48:50 +01:00
Fabian Krüger
086dbb4001 Add configuration to auto configuration file 2024-01-24 19:34:10 +01:00
Fabian Krüger
77337c5545 Deprecate SpringRewriteCommonsConfiguration (#55)
* Import launcher config to global config
* Deprecate SpringRewriteCommonsConfiguration
2024-01-24 19:19:40 +01:00
Fabian Krüger
a2406bd719 Add recipe launcher
* Bum Spring Boot to 3.2.1
* Remove comment
* Add recipe launcher component
2024-01-24 18:51:27 +01:00
Fabian Krüger
d1a918a0a5 Fix comment that failed javadoc
Run PR build with javadoc profile to fail PR build instead of main build
2024-01-23 12:09:28 +01:00
Fabian Krüger
132aee3eb2 Add starter for Boot upgrades 2024-01-23 11:54:15 +01:00
Fabian Krüger
54621cf58a Add missing auto-configuration 2024-01-23 11:50:43 +01:00
Fabian Krüger
13ed15952a Fix classpath calculation
* Refactor MavanProjectAnalyzer and related classes
* Refactor MavenProjectParser parse methods to reuse code between source sets
* ParsingResults are provided to subsequent modules in a multi-module project. The result can be used to build the classpath when parsing subsequent modules.
2024-01-22 16:57:14 +01:00
Fabian Krüger
31288e0c1e Bump rewrite versions
* rewrite to 8.13.4
* rewrite-maven-plugin to 5.20.0
* Use rewrite-recipe-bom 2.6.2
2024-01-20 17:00:45 +01:00
Fabian Krüger
5ddfeb67a1 Remove comments 2024-01-13 17:28:42 +01:00
Fabian Krüger
397fb8b9de ProjectResourceSetConfiguration is part of RewriteParserConfiguration (#44) 2024-01-13 17:22:41 +01:00
Fabian Krüger
169ca2b26a Test Maven type resolution
* Make -test jar a deploy artifact
* Add util package from test
* Test type resolution and usage for simplistic scenario
2024-01-13 16:32:20 +01:00
Fabian Krüger
49554428e3 Add ClasspathDependencies marker 2024-01-13 16:24:12 +01:00
Fabian Krüger
7787ca421d Bump plugin versions (#40)
* Bump spring-javaformat-maven-plugin
* Bump rewrite-maven-plugin
2024-01-13 15:33:46 +01:00
Fabian Krüger
3a66a438e0 Fixes
* Fix textMask
* Fix RewriteResourceParser
* Rename Properties class
2024-01-13 13:15:59 +01:00
Fabian Krüger
93bcf7bd7e Deploy javadoc 2024-01-10 17:13:18 +01:00
Fabian Krüger
059fb762de Rename class 2024-01-10 17:11:47 +01:00
Fabian Krüger
615b7c498c Add modules to build
* Add ignore patterns to not deploy tests and examples
2024-01-10 15:56:15 +01:00
Fabian Krüger
474342bc9f Add Java 17 2024-01-10 14:31:25 +01:00
Fabian Krüger
b58a675c18 Fix ci build
Add missing checkout step
2024-01-10 14:22:01 +01:00
Fabian Krüger
cf7e358c66 Snapshot build
* Rename modules to follow naming schema
* Deploy snapshot
* Provide ci and pr-ci build
2024-01-10 14:05:18 +01:00
Fabian Krüger
d466412b06 Add property to configure JavaParser logging 2024-01-09 17:58:14 +01:00
Fabian Krüger
e23bad299e Fix build
* Adjust some test assertions for GH action
* Run build on pr
2024-01-05 23:49:35 +01:00
Fabian Krüger
3322ef7335 Add deploy snapshot job 2024-01-05 17:16:33 +01:00
Fabian Krüger
7574e225a8 Bump Rewrite dependencies
- Remove SbmApplicationProperties, the properties live in SpringRewriteProperties
- Fix import
- Add new property parseAdditionalResources from OR
2024-01-03 08:51:09 +01:00
aboyko
f962a400e2 Fix formatting 2024-01-02 19:10:56 -05:00
aboyko
ba8646d358 Adjust tests and imports cleanup 2024-01-02 18:56:45 -05:00
aboyko
b698630f76 Run mvn install via GHA and include Gradle parser projects 2024-01-02 17:49:51 -05:00
aboyko
f0c5f8062e Adjustments after adoption in STS 2023-12-22 16:16:12 -05:00
aboyko
f0b25f881b Gradle project parser multi-module project tests 2023-12-22 10:49:03 -05:00
aboyko
e9215183cf Single clean install to run the build with tests 2023-12-21 11:43:25 -05:00
Alex Boyko
14cf19551a Exclude gradle project parser from the build (#16) 2023-12-21 11:06:41 -05:00
Alex Boyko
866f810f77 Gradle Project Parser - initial implementation (#7) 2023-12-21 10:27:15 -05:00
Fabian Krüger
8fc77a20bc Fix Windows build
* Fix paths for all OS

* Tweak build file

* Provide correct class to logger

* Download dependencies before comparing parse reults

When local Maven repo is empty the Markers added by the RewriteMavenProjectParser (comparing) and the RewriteProjectParser (under test) differ.
This is because one downloads the dependencies and the next takes them form local Maven and the URIs for dependencies then differ.
By builing the projects with Maven first the dependencies will be available in local Maven repo and taken from there by both parsers.

* Add logging

* fix formatting

* Ignore test when using Windows
2023-12-21 10:13:31 +01:00
dependabot[bot]
d0b8c7fe68 Bump net.lingala.zip4j:zip4j (#9)
Bumps [net.lingala.zip4j:zip4j](https://github.com/srikanth-lingala/zip4j) from 2.6.1 to 2.11.3.
- [Release notes](https://github.com/srikanth-lingala/zip4j/releases)
- [Commits](https://github.com/srikanth-lingala/zip4j/compare/v2.6.1...v2.11.3)

---
updated-dependencies:
- dependency-name: net.lingala.zip4j:zip4j
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-21 02:45:13 +01:00
Fabian Krüger
3310247dc8 Fix too long path problem with Windows
The long path was problematic under Windows without explicitly setting Git config.
To prevent this the repository data is copied to tmp dir from a zip file.
2023-12-20 23:32:25 +01:00
Fabian Krüger
4ca27764d4 Merge pull request #8 from spring-projects/merge-module-parser
Merge ModuleParser into MavenModuleParser
2023-12-20 21:28:33 +00:00
Fabian Krüger
247bc087a7 Merged and removed ModuleParser 2023-12-20 17:06:29 +00:00
Janne Valkealahti
186bffe1f9 Run ci only from main with push
- This prevents accidental publish(when that's added)
  if some random branch is added.
2023-12-18 12:56:24 +00:00
Janne Valkealahti
832958102f Add timeout for build
- Build may hung up so timeout after 15min
- Relates #2
2023-12-14 18:10:44 +00:00
Janne Valkealahti
a52f64dd33 Disable maven cache with setup-java
- Should fix Error: ENOENT: no such file or directory error
  with setup-java
- Relates #2
2023-12-14 17:56:19 +00:00
Janne Valkealahti
a9bb18fded Setup git on windows for long paths
- Relates #2
- Relates #5
2023-12-14 17:14:49 +00:00
Janne Valkealahti
4adca91764 Add ci workflow
- Just compile/test for now
- Relates #2
2023-12-14 10:58:50 +00:00