Commit 233cbb2
DATA 3287 spring boot 4 (#1)
* Fixed build
* Upgraded Gradle
* Upgraded to Java 21
* Upgraded to Spring boot 4
* Removed tests without assertions
* Modernize dependencies and fix Hibernate 7 alignment
- Align crnk-data-jpa with Spring Boot 4 BOM: Hibernate 6.6.4→7.1.8,
Jakarta Persistence 3.1→3.2, Spring 6.2→7.0, Jakarta EE 10→11
- Fix JpaCriteriaQueryBackend plural path handling for Hibernate 7:
use isMember() for collection attributes, preserve MapJoin precedence
- Replace deprecated Class.newInstance() with getConstructor().newInstance()
- Use StandardCharsets.UTF_8 instead of Charset.forName("utf8")
- Upgrade Reflections 0.9.11→0.10.2, AssertJ 2.2.0/3.9.1→3.27.3
- Replace Guava test usages (Sets, ImmutableMap/Set/List) with Java stdlib
- Remove unused version properties from versions.properties
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Removed spring boot 1 setup. renamed spring boot 2 setup to spring boot 4
* Upgrade to Gradle 9
- Replace project.buildDir with layout.buildDirectory across all scripts
and Java plugin code (removed in Gradle 9)
- Replace TaskContainer.create() with register() in GeneratorPlugin
- Replace setMain() with getMainClass().set() in ForkedGenerateTask
- Replace mainClassName with application { mainClass.set() } in examples
- Replace project.getProperties().get("sourceSets") with getExtensions()
- Make ForkedGenerateTask abstract (Gradle 9 JavaExec requirement)
- Upgrade dependency-management-plugin 1.0.0→1.1.7
- Upgrade vanniktech maven-publish-plugin 0.15.1→0.28.0
- Upgrade asciidoctor-gradle-jvm 3.3.2→4.0.3
- Remove JUnit 5.11 version pins; use JUnit 6.0.1 from Spring Boot 4 BOM
- Add junit-platform-launcher to test runtime (Gradle 9 requirement)
- Update Gradle wrapper from 8.13 to 9.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Migrate JUnit 4 to JUnit 5 (Jupiter)
- Replace org.junit.Test with org.junit.jupiter.api.Test across 250+ files
- Replace @Before/@after with @BeforeEach/@AfterEach
- Replace @BeforeClass/@afterclass with @BeforeAll/@afterall
- Replace @ignore with @disabled
- Replace Assert.* with Assertions.* (JUnit 5 API)
- Convert @test(expected=X.class) to assertThrows(X.class, ...) (~220 occurrences)
- Convert ExpectedException rules to assertThrows pattern
- Replace @RunWith(SpringJUnit4ClassRunner.class) with @ExtendWith(SpringExtension.class)
- Replace @RunWith(MockitoJUnitRunner.class) with @ExtendWith(MockitoExtension.class)
- Fix JUnit 5 assertion parameter order (message last, not first)
- Add JerseyTestBase @BeforeEach/@AfterEach lifecycle bridge for JerseyTest
- Keep CDI tests (CdiTestRunner) and JUnitParams tests on JUnit 4 vintage engine
- Add mockito-junit-jupiter dependency for MockitoExtension support
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Remove JUnit 4 dependency and vintage engine
- Remove junit:junit and junit-vintage-engine from all build.gradle files
- Convert CDI tests from @RunWith(CdiTestRunner.class) to Weld SE container
- Convert CrnkWebMvcTagsProviderTest from JUnitParams to @ParameterizedTest
- Convert AbstractJpaTest from SpringJUnit4ClassRunner to SpringExtension
- Remove DeltaSpike test-control dependency (replaced by direct Weld usage)
- Clean remaining JUnit 4 imports, annotations, and Assert references
- Convert remaining @test(expected=...) to assertThrows()
- Add Hamcrest MatcherAssert import where assertThat is used directly
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Upgrade OkHttp 3.4→4.12 and Apache HttpClient 4.5→5.4
- Upgrade OkHttp from 3.4.1/3.9.0 to 4.12.0 across all modules
- Fix RequestBody.create() parameter order (OkHttp 4 deprecation)
- Rewrite Apache HttpClient adapter for HC5 API:
org.apache.http → org.apache.hc.client5/core5
- Update HttpClientRequest to use HttpUriRequestBase, ClassicHttpResponse
- Update HttpClientResponse to use HC5 EntityUtils and response API
- Fix getUrl() to use getUri() instead of getRequestUri() (full URL)
- Upgrade Brave from 4.9.1 to 6.0.3 for HC5 compatibility
- Replace brave-instrumentation-httpclient with httpclient5
- Migrate Brave tests from zipkin2 Reporter to SpanHandler/MutableSpan
- Add HttpClientAdapter.setClientBuilder() for custom build functions
- Remove deprecated HttpClientBuilderFactory (replaced by setClientBuilder)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fixed vulnerabilities
* Simplified publishing
Upgraded jackson
* Fixed javadoc error
* Add claude folder
* Upgraded to Jackson 3
* Removed todo
* Disabled doc publishing to git
* Fix test in CI?
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4e4dd89 commit 233cbb2
978 files changed
Lines changed: 23197 additions & 24325 deletions
File tree
- .github/workflows
- crnk-client
- src
- main/java/io/crnk/client
- action
- http
- apache
- okhttp
- internal
- proxy
- test/java/io/crnk/client
- action
- http
- inheritance
- internal
- module
- response
- suite
- crnk-core
- src
- main/java/io/crnk
- core
- boot
- engine
- dispatcher
- document
- http
- information/resource
- internal
- dispatcher/controller
- document/mapper
- http
- information/resource
- jackson
- utils
- parser
- module
- queryspec
- internal
- mapper
- resource
- links
- list
- meta
- legacy/registry
- test
- java/io/crnk/core
- boot
- engine
- document
- error
- filter
- http
- information/contributor
- internal
- dispatcher
- controller
- filter
- path
- registry
- document/mapper
- lookup
- relationid
- exception
- information
- resource
- jackson
- repository
- resource
- utils
- parser
- registry
- repository
- result
- exception
- module
- discovery
- internal
- queryspec
- mapper
- pagingspec
- repository
- forward
- resource
- field
- meta
- paging
- next
- total
- registry
- utils
- resources
- crnk-data
- crnk-data-activiti
- src/test/java/io/crnk/data/activiti
- example
- repository
- crnk-data-facet
- src/test/java/io/crnk/data/facet
- crnk-data-jpa
- src
- main/java/io/crnk/data/jpa
- internal
- facet
- query
- backend
- criteria
- querydsl
- meta
- internal
- query
- criteria
- querydsl
- test
- java/io/crnk/data/jpa
- information
- integration
- internal
- facet
- query/backend/querydsl
- mapping
- meta
- model
- query
- criteria
- querydsl
- repository
- criteria
- querydsl
- util
- resources/META-INF
- crnk-documentation
- src/docs
- asciidoc
- releases/v2.6
- crnk-format/crnk-format-plain-json
- src
- main/java/io/crnk/format/plainjson
- internal
- test/java/io/crnk/data
- crnk-gen
- crnk-gen-asciidoc
- src/test/java/io/crnk/gen/asciidoc
- crnk-gen-base
- crnk-gen-gradle
- src
- main/java/io/crnk/gen/gradle
- internal
- task
- test/java/io/crnk/gen/gradle
- crnk-gen-java
- src
- main/java/io/crnk/gen/java
- test
- java/io/crnk/gen/java
- resources
- crnk-gen-openapi
- src
- main/java/io/crnk/gen/openapi
- internal
- test
- java/io/crnk/gen/openapi
- internal
- operations
- parameters
- responses
- schemas
- resources/gold
- crnk-gen-runtime
- src
- main/java/io/crnk/gen/runtime
- cdi
- spring
- test/java/io/crnk/gen/runtime
- crnk-gen-typescript
- src
- main
- java/io/crnk/gen/typescript
- internal
- transform
- resources
- test
- java/io/crnk/gen/typescript
- internal
- model
- processor
- resources
- META-INF
- crnk-home
- src
- main/java/io/crnk/home
- test/java/io/crnk/home
- crnk-integration-examples
- dagger-vertx-example
- src/main/java
- io/crnk/example/vertx
- dropwizard-simple-example
- jersey-example
- src
- main
- java/io/crnk/example/jersey
- resources
- test/java/io/crnk/example/jersey
- openliberty-microprofile-example
- src/main
- java/io/crnk/example/openliberty/microprofile
- dao
- endpoints
- model
- resources/META-INF
- spring-boot-example
- src
- main
- java/io/crnk/example/springboot
- domain/model
- resources
- test/java/io/crnk/example/springboot/simple
- spring-boot-microservice-example
- src
- main
- java/io/crnk/example/springboot/microservice
- project
- task
- resources
- test/java/io/crnk/example/springboot/simple
- spring-boot-minimal-example
- src
- main
- java/io/crnk/example/springboot/microservice
- resources
- test/java/io/crnk/example/springboot/simple
- wildfly-example
- src/main
- java/io/crnk/example/wildfly
- model
- resources/META-INF
- webapp/WEB-INF
- crnk-meta
- src
- main/java/io/crnk/meta
- internal
- model
- test/java/io/crnk/meta
- integration
- model
- crnk-monitor
- crnk-monitor-brave4
- src
- main/java/io/crnk/monitor/brave
- internal
- test
- java/io/crnk/monitor/brave
- mock/models
- resources
- crnk-monitor-opentracing
- src/test/java/io/crnk/monitor/opentracing
- crnk-operations
- src
- main/java/io/crnk/operations
- client
- internal
- server
- test
- java/io/crnk/operations
- model
- resources/META-INF
- crnk-reactive
- src
- main/java/io/crnk/reactive
- internal
- adapter
- test
- java/io/crnk/reactive
- model
- resources
- crnk-security
- src/test/java/io/crnk/security
- model
- crnk-setup
- crnk-setup-cdi
- src
- main
- java/io/crnk/cdi/internal
- resources/META-INF
- test
- java/io/crnk/internal/boot/cdi
- model
- resources/META-INF
- crnk-setup-guice
- src/test/java/io/crn/guice
- crnk-setup-rs
- src
- main/java/io/crnk/rs
- internal
- type
- test/java/io/crnk/rs
- controller
- crnk-setup-servlet
- src
- main/java/io/crnk/servlet
- internal
- test
- java/io/crnk/servlet
- reactive
- model
- suite
- resource
- resources
- webapp/WEB-INF
- crnk-setup-spring-boot1
- src
- main
- java/io/crnk/spring
- boot
- autoconfigure
- v3
- mvc
- internal
- resources/META-INF
- test/java/io/crnk/spring
- app
- model
- boot
- cloud/sleuth
- security
- crnk-setup-spring-boot2
- src
- main
- java/io/crnk/spring/setup/boot
- monitor
- mvc
- resources/META-INF
- test
- java/io/crnk/spring
- metrics
- security
- resources
- META-INF
- crnk-setup-spring-boot4
- src
- main
- java/io/crnk/spring/setup/boot
- core
- data/facet
- format
- home
- jpa
- meta
- monitor
- mvc
- internal
- operations
- security
- ui
- validation
- resources/META-INF/spring
- test
- java/io/crnk/spring
- app
- model
- boot
- metrics
- security
- setup/core
- resources
- META-INF
- crnk-setup-spring
- src
- main/java/io/crnk/spring/client
- test
- java/io/crnk/spring
- app/model
- client
- security
- resources
- META-INF
- crnk-setup-vertx
- src/test/java/io/crnk/setup/vertx/suite
- crnk-testkit
- src
- main/java/io/crnk/testkit
- test/java/io/crnk/testkit
- crnk-test
- src/main
- java/io/crnk/test
- mock
- dynamic
- models
- nested
- reactive
- repository
- suite
- resources
- crnk-ui
- src
- main
- java/io/crnk/ui/presentation/element
- webapp/WEB-INF
- test/java/io/crnk/ui
- crnk-validation
- src
- main/java/io/crnk/validation
- filter
- internal
- meta
- test/java/io/crnk/validation
- internal
- meta
- mock
- models
- repository
- gradle/wrapper
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
0 commit comments