diff options
author | Matthias Benkard <code@mulk.eu> | 2023-08-06 20:40:04 +0000 |
---|---|---|
committer | Matthias Benkard <code@mulk.eu> | 2023-08-06 20:40:04 +0000 |
commit | 0dfc9fe3f3b4cf15b563dbc68fe204e0bf960d5c (patch) | |
tree | 0313f7cf83727f8574d0911e615c58bb20f51cef | |
parent | 89010ef6c600f91a287aff53a5c06e71cad52db1 (diff) | |
parent | e3475a5c214c8150e1c14b87a18d8a94839c4639 (diff) |
Update quarkus.version to v3 (major) (mulk/mulkcms2!27)
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [io.quarkus:quarkus-maven-plugin](https://github.com/quarkusio/quarkus) | build | major | `2.16.7.Final` -> `3.2.3.Final` |
| [io.quarkus:quarkus-universe-bom](https://github.com/quarkusio/quarkus-platform) | import | major | `2.16.7.Final` -> `3.2.3.Final` |
---
### Release Notes
<details>
<summary>quarkusio/quarkus</summary>
### [`v3.2.3.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.2.3.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.2.2.Final...3.2.3.Final)
##### Complete changelog
- [#​35131](https://github.com/quarkusio/quarkus/pull/35131) - Unlist Security JPA Common
- [#​35130](https://github.com/quarkusio/quarkus/pull/35130) - Also support Universe BOM
- [#​35129](https://github.com/quarkusio/quarkus/pull/35129) - Support user methods with `@Transactional` in REST Data with Panache ORM
- [#​35120](https://github.com/quarkusio/quarkus/pull/35120) - Upgrade to Hibernate Search 6.2.0.Final in Quarkus 3.2
- [#​35119](https://github.com/quarkusio/quarkus/pull/35119) - Properly resolve `@TestProfile` when using nested tests in base classes
- [#​35114](https://github.com/quarkusio/quarkus/pull/35114) - Keep META-INF/MANIFEST.MF in the bootstrap Gradle resolver artifact
- [#​35112](https://github.com/quarkusio/quarkus/pull/35112) - Testing - fix MockitoConfig(convertScopes = true)
- [#​35107](https://github.com/quarkusio/quarkus/issues/35107) - User methods requiring a transaction in Hibernate ORM does not work for interfaces of Panache REST Data extension
- [#​35104](https://github.com/quarkusio/quarkus/issues/35104) - `@Nested` tests in a superclass do not work with test profiles
- [#​35101](https://github.com/quarkusio/quarkus/pull/35101) - Docs: fix typo in duplicated context guide
- [#​35087](https://github.com/quarkusio/quarkus/pull/35087) - Take into account container element constraints in config mapping validation
- [#​35081](https://github.com/quarkusio/quarkus/issues/35081) - Email validator on collection element not found after upgrade to Quarkus 3
- [#​35080](https://github.com/quarkusio/quarkus/issues/35080) - Mocking Singleton does not work even when using `@MockitoConfig`(convertScopes = true)
- [#​35067](https://github.com/quarkusio/quarkus/pull/35067) - Set analytics filter logs to debug
- [#​35061](https://github.com/quarkusio/quarkus/pull/35061) - Fix join message in websocket quickstart
- [#​35060](https://github.com/quarkusio/quarkus/pull/35060) - Add clear error message when Reactive REST Client used outside of Quarkus
- [#​35059](https://github.com/quarkusio/quarkus/pull/35059) - Stylistic Loggin guide tweaks
- [#​35057](https://github.com/quarkusio/quarkus/pull/35057) - Update graal-sdk to 23.0.1 to enable Java 11 compatibility
- [#​35054](https://github.com/quarkusio/quarkus/issues/35054) - Upgrade graal-sdk version to 23.0.1
- [#​35040](https://github.com/quarkusio/quarkus/pull/35040) - Fix Keycloak token address in OIDC DevUI script
- [#​35029](https://github.com/quarkusio/quarkus/issues/35029) - Keycloak dev services uses wrong token url for client_credentials grant type
- [#​35022](https://github.com/quarkusio/quarkus/pull/35022) - Fixing and adding missing abstracts in the Logging guide
- [#​35015](https://github.com/quarkusio/quarkus/pull/35015) - Limit `List` transformation in Spring DI module
- [#​35013](https://github.com/quarkusio/quarkus/pull/35013) - Fix sidecars resource requirements properties in Kubernetes
- [#​35011](https://github.com/quarkusio/quarkus/issues/35011) - `@ConfigProperty` injection semantics change when `quarkus-spring-di` is present and `@Inject` is used (regression in Quarkus 3)
- [#​35009](https://github.com/quarkusio/quarkus/pull/35009) - Upgrade to SmallRye Fault Tolerance 6.2.6
- [#​35006](https://github.com/quarkusio/quarkus/issues/35006) - quarkus-kubernetes Extension ignores multiple sidecars properties
- [#​35005](https://github.com/quarkusio/quarkus/pull/35005) - Fix OIDC token verification failure message
- [#​34999](https://github.com/quarkusio/quarkus/pull/34999) - Allow to exclude classes in REST Data with Panache with annotations
- [#​34997](https://github.com/quarkusio/quarkus/pull/34997) - Document HttpServerOptionsCustomizer
- [#​34994](https://github.com/quarkusio/quarkus/pull/34994) - OIDC UserInfo request must not be made if the token verification fails
- [#​34993](https://github.com/quarkusio/quarkus/issues/34993) - OIDC UserInfo endpoint is called even if the token verification fails
- [#​34992](https://github.com/quarkusio/quarkus/issues/34992) - Document usage of `HttpServerOptionsCustomizer`
- [#​34991](https://github.com/quarkusio/quarkus/pull/34991) - Upgrade to Hibernate ORM 6.2.7.Final and Hibernate Reactive 2.0.4.Final
- [#​34987](https://github.com/quarkusio/quarkus/pull/34987) - Ensure Kubernetes manifests are generated in the project location
- [#​34986](https://github.com/quarkusio/quarkus/issues/34986) - Quarkus is affected by criteria query issue in Hibernate
- [#​34952](https://github.com/quarkusio/quarkus/pull/34952) - Logging configuration stylistic review
- [#​34951](https://github.com/quarkusio/quarkus/pull/34951) - Improve Javadoc of `@CustomSerialization`
- [#​34948](https://github.com/quarkusio/quarkus/pull/34948) - Apply JavaPlugin on the deployment project
- [#​34945](https://github.com/quarkusio/quarkus/pull/34945) - Fix Openshift deployments when using a custom output directory
- [#​34944](https://github.com/quarkusio/quarkus/pull/34944) - Backport: Add option to produce PIE native binaries
- [#​34938](https://github.com/quarkusio/quarkus/issues/34938) - `@UnlessBuildProperty` is ignored on PanacheEntityResource
- [#​34936](https://github.com/quarkusio/quarkus/pull/34936) - Update RabbitMQ DevServices container to 3.12
- [#​34917](https://github.com/quarkusio/quarkus/pull/34917) - Fix issue of e.getCause() returns null
- [#​34906](https://github.com/quarkusio/quarkus/pull/34906) - Allow the use of HTTP2 in programmatically created REST Client
- [#​34904](https://github.com/quarkusio/quarkus/pull/34904) - Dev UI Scheduler: Fix screen height
- [#​34896](https://github.com/quarkusio/quarkus/issues/34896) - Quarkus resteasy-reactive (RestClientBuilder) HTTP2
- [#​34894](https://github.com/quarkusio/quarkus/pull/34894) - Upgrade logstash-gelf to 1.15.1 and add it to dependabot
- [#​34886](https://github.com/quarkusio/quarkus/pull/34886) - Fix http.route tracing attribute reporting
- [#​34860](https://github.com/quarkusio/quarkus/pull/34860) - Proper ordering of the handlers chapters and addition of some examples in the Logging guide
- [#​34857](https://github.com/quarkusio/quarkus/pull/34857) - Make sure links starting with attributes are identifiable
- [#​34827](https://github.com/quarkusio/quarkus/issues/34827) - `quarkus.kubernetes.output-directory` is not (always) relative to project location
- [#​34826](https://github.com/quarkusio/quarkus/pull/34826) - Fix build analytics documentation - payload example
- [#​34778](https://github.com/quarkusio/quarkus/issues/34778) - Observability for HTTP Server - when http route is / then attribute 'http.route' is not sent
- [#​34737](https://github.com/quarkusio/quarkus/pull/34737) - Avoid ambiguous use of 'Panache' in 'Logging with Panache'
- [#​34703](https://github.com/quarkusio/quarkus/issues/34703) - Ignored projects also ask about build analytics
- [#​34673](https://github.com/quarkusio/quarkus/issues/34673) - Openshift extension does not see kubernetes resources in custom location
- [#​34671](https://github.com/quarkusio/quarkus/pull/34671) - Hibernate Reactive Panache: open session on demand for repositories
- [#​34615](https://github.com/quarkusio/quarkus/pull/34615) - Bump h2 from 2.1.214 to 2.2.220 in /bom/application
- [#​34542](https://github.com/quarkusio/quarkus/pull/34542) - Fix user methods requiring a session in Panache REST Data with Reactive
- [#​34511](https://github.com/quarkusio/quarkus/pull/34511) - Duplicated context concept guide
- [#​34432](https://github.com/quarkusio/quarkus/issues/34432) - User methods requiring a session in Hibernate Reactive does not work for interfaces of Panache REST Data extension
- [#​34359](https://github.com/quarkusio/quarkus/pull/34359) - Add a section about MDC to the logging documentation
### [`v3.2.2.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.2.2.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.2.1.Final...3.2.2.Final)
##### Complete changelog
- [#​34882](https://github.com/quarkusio/quarkus/pull/34882) - Revert to openjdk-17-runtime:1.16 images
- [#​34881](https://github.com/quarkusio/quarkus/issues/34881) - Quarkus 3.2.1 openjdk base image tag
- [#​34874](https://github.com/quarkusio/quarkus/pull/34874) - Properly return HTTP 406 on invalid Accept header
- [#​34859](https://github.com/quarkusio/quarkus/pull/34859) - Remove false positive warning about quarkus.launch.rebuild
- [#​34858](https://github.com/quarkusio/quarkus/issues/34858) - Treat incorrect Accept header as a user error
- [#​34856](https://github.com/quarkusio/quarkus/pull/34856) - Fix unrecognised property
- [#​34832](https://github.com/quarkusio/quarkus/pull/34832) - Bump io.smallrye.config:smallrye-config-source-yaml from 3.3.0 to 3.3.2 in /devtools/gradle
- [#​34825](https://github.com/quarkusio/quarkus/issues/34825) - quarkus.analytics.uri.base unrecognized by build time analytics
- [#​34815](https://github.com/quarkusio/quarkus/issues/34815) - Unrecognized configuration key "quarkus.launch.rebuild" reported when re-augmenting the application
- [#​34814](https://github.com/quarkusio/quarkus/pull/34814) - Update SmallRye Config to 3.3.2
- [#​34805](https://github.com/quarkusio/quarkus/pull/34805) - Fix container builds when explicitly setting `container-runtime`
- [#​34725](https://github.com/quarkusio/quarkus/issues/34725) - Native image building fails when using podman
- [#​34722](https://github.com/quarkusio/quarkus/pull/34722) - Make Snappy optional in JVM mode
- [#​34699](https://github.com/quarkusio/quarkus/pull/34699) - Documenting a possibility to store transaction logs to a database
- [#​34670](https://github.com/quarkusio/quarkus/issues/34670) - Make loading Snappy truly optional
- [#​34631](https://github.com/quarkusio/quarkus/pull/34631) - Allow reauthentication if the OIDC state cookie is not matched
- [#​34630](https://github.com/quarkusio/quarkus/issues/34630) - Make OIDC state handling more flexible
### [`v3.2.1.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.2.1.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.2.0.Final...3.2.1.Final)
##### Major changes
- [#​34662](https://github.com/quarkusio/quarkus/pull/34662) - Add OpenAPI to management interface if enabled, with option to exclude
##### Complete changelog
- [#​34809](https://github.com/quarkusio/quarkus/pull/34809) - Fix path segment handling of encoded values
- [#​34804](https://github.com/quarkusio/quarkus/pull/34804) - Encode multi char code points correctly in RestEasy Reactive
- [#​34802](https://github.com/quarkusio/quarkus/pull/34802) - Fail when GraalVM / Mandrel version detection fails
- [#​34795](https://github.com/quarkusio/quarkus/pull/34795) - Discover all the project modules from all the Maven profiles by default
- [#​34794](https://github.com/quarkusio/quarkus/pull/34794) - Improve jar resources' release robustness
- [#​34789](https://github.com/quarkusio/quarkus/pull/34789) - Avoid race condition on adding content-length header
- [#​34787](https://github.com/quarkusio/quarkus/issues/34787) - Quarkus Maven plugin is unable to resolve local deps when generating code tests
- [#​34783](https://github.com/quarkusio/quarkus/pull/34783) - Stork - Removing out of date content and link upstream documentation
- [#​34775](https://github.com/quarkusio/quarkus/pull/34775) - DevMojo warnIfBuildGoalMissing parameter to be able to supress the warning about missing build goal
- [#​34774](https://github.com/quarkusio/quarkus/pull/34774) - Fixed workspace loading in dev mode when POM manipulaing plugins store POM files outside project directories
- [#​34773](https://github.com/quarkusio/quarkus/pull/34773) - Add another hint how to decrease OIDC session cookie size
- [#​34772](https://github.com/quarkusio/quarkus/pull/34772) - Remove token customizer from OIDC Microsoft provider
- [#​34764](https://github.com/quarkusio/quarkus/issues/34764) - Quarkus Maven Plugin doubles up the /target folder when used with Flatten Plugin
- [#​34753](https://github.com/quarkusio/quarkus/pull/34753) - Fix null logger
- [#​34752](https://github.com/quarkusio/quarkus/pull/34752) - Align Vert.x version in RESTEasy Reactive with Quarkus
- [#​34746](https://github.com/quarkusio/quarkus/pull/34746) - Properly implement redirection in REST Client for 307 responses
- [#​34743](https://github.com/quarkusio/quarkus/pull/34743) - OIDC DEV UI - small alignment and width adjustments
- [#​34739](https://github.com/quarkusio/quarkus/pull/34739) - Move DevUI Config resolution to Runtime
- [#​34732](https://github.com/quarkusio/quarkus/issues/34732) - `ID token verification has failed: null` after upgrade from 3.1.0 -> 3.2.0
- [#​34729](https://github.com/quarkusio/quarkus/issues/34729) - CVE-2023-2974 is reported in quarkus-core which does not allow our pipeline to complete
- [#​34726](https://github.com/quarkusio/quarkus/pull/34726) - ArC: improve documentation on supported CDI features and limitations
- [#​34720](https://github.com/quarkusio/quarkus/pull/34720) - Support serialization of class fields with Jackson in native
- [#​34717](https://github.com/quarkusio/quarkus/issues/34717) - Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.2.0.Final:generate-code
- [#​34709](https://github.com/quarkusio/quarkus/pull/34709) - Support `@ConfigMapping` inheritance doc generation
- [#​34707](https://github.com/quarkusio/quarkus/pull/34707) - Remove a class that wasn't meant to be added
- [#​34702](https://github.com/quarkusio/quarkus/pull/34702) - Properly populate metrics uri in presence of auth failures
- [#​34694](https://github.com/quarkusio/quarkus/issues/34694) - ClassSerializer missing its default no arg constructor in native mode
- [#​34689](https://github.com/quarkusio/quarkus/pull/34689) - Ban only unavailable config services when initializing config in CodeGenerator
- [#​34685](https://github.com/quarkusio/quarkus/pull/34685) - Allow override of dev services props by integration test extensions
- [#​34683](https://github.com/quarkusio/quarkus/pull/34683) - Docfix: create multiple named reactive datasources is supported
- [#​34682](https://github.com/quarkusio/quarkus/pull/34682) - Upgrade Hibernate Reactive to 2.0.3.Final
- [#​34678](https://github.com/quarkusio/quarkus/pull/34678) - Don't mask deployment target from the CLI
- [#​34675](https://github.com/quarkusio/quarkus/issues/34675) - quarkus deploy --openshift ignores quarkus.openshift.deployment-kind=Deployment
- [#​34665](https://github.com/quarkusio/quarkus/pull/34665) - Docs: fix example snippet for VertxContextSupport
- [#​34662](https://github.com/quarkusio/quarkus/pull/34662) - Add OpenAPI to management interface if enabled, with option to exclude
- [#​34661](https://github.com/quarkusio/quarkus/pull/34661) - Bump sshd-common from 2.9.2 to 2.10.0 in /bom/application
- [#​34658](https://github.com/quarkusio/quarkus/pull/34658) - Fix import issues in qute documentation examples
- [#​34655](https://github.com/quarkusio/quarkus/pull/34655) - Refactor Hibernate mapping to use groups instead of dotted names
- [#​34649](https://github.com/quarkusio/quarkus/pull/34649) - Fix OIDC DEV UI Live Reload
- [#​34644](https://github.com/quarkusio/quarkus/issues/34644) - Rest client running GET requests instead of POST after redirect
- [#​34642](https://github.com/quarkusio/quarkus/issues/34642) - Live Reload stopped working since 3.2.0.CR1
- [#​34641](https://github.com/quarkusio/quarkus/pull/34641) - Don't load remote build analytics config if user has not accepted
- [#​34632](https://github.com/quarkusio/quarkus/issues/34632) - Resteasy Reactive: Server becomes unresponsive due to race condition on ContainerResponseContext.getEntityStream()
- [#​34629](https://github.com/quarkusio/quarkus/pull/34629) - Add QuarkusApplication javadoc
- [#​34628](https://github.com/quarkusio/quarkus/issues/34628) - Quarkus 3.2: Hibernate ORM configuration problem
- [#​34626](https://github.com/quarkusio/quarkus/issues/34626) - Quarkus 3.2.0.Final fetching build analytics remote config when disabled
- [#​34625](https://github.com/quarkusio/quarkus/pull/34625) - Add hint for migration of servlets for RESTEasy Reactive
- [#​34612](https://github.com/quarkusio/quarkus/pull/34612) - DevServices for Keycloak should support refresh token grant
- [#​34610](https://github.com/quarkusio/quarkus/pull/34610) - Do not refresh OIDC session if the user is requesting logout
- [#​34606](https://github.com/quarkusio/quarkus/pull/34606) - Timeout message for build analytics
- [#​34601](https://github.com/quarkusio/quarkus/issues/34601) - zip file closed errors
- [#​34593](https://github.com/quarkusio/quarkus/pull/34593) - Dev UI: Add Extension name in header page
- [#​34592](https://github.com/quarkusio/quarkus/issues/34592) - OIDC Logout doesn't work after 5 minutes
- [#​34586](https://github.com/quarkusio/quarkus/issues/34586) - Invalid handling of path segments in URLs by "quarkus-resteasy-reactive"
- [#​34583](https://github.com/quarkusio/quarkus/pull/34583) - Ban all services from SmallRyeConfig in CodeGenerator
- [#​34581](https://github.com/quarkusio/quarkus/pull/34581) - OpenTelemetry service name should have higher priority than app name and resource attribute service name
- [#​34570](https://github.com/quarkusio/quarkus/pull/34570) - Prevent build failure when `@Blocking` on Application
- [#​34566](https://github.com/quarkusio/quarkus/pull/34566) - Bump microprofile-openapi-api from 3.1 to 3.1.1
- [#​34564](https://github.com/quarkusio/quarkus/pull/34564) - Bump smallrye-jwt.version from 4.2.1 to 4.3.0
- [#​34559](https://github.com/quarkusio/quarkus/pull/34559) - Grpc: Fix hanging when Keycloak authorizer blocks thread and response never arrives
- [#​34541](https://github.com/quarkusio/quarkus/pull/34541) - Fix error message about JDBC instrumentation
- [#​34539](https://github.com/quarkusio/quarkus/pull/34539) - Prevent invalid warnings when setting `@QuarkusIntegrationTest` related properties
- [#​34533](https://github.com/quarkusio/quarkus/pull/34533) - DevMojo: align Maven goal invocation logging with Maven 3.9 style
- [#​34528](https://github.com/quarkusio/quarkus/pull/34528) - Fix Maven auth issue due to a classpath mix up
- [#​34523](https://github.com/quarkusio/quarkus/pull/34523) - Fix notifications when reindexing the default PU through the dev UI
- [#​34521](https://github.com/quarkusio/quarkus/pull/34521) - Track exceptions thrown during JAX-RS processing in the current span
- [#​34520](https://github.com/quarkusio/quarkus/pull/34520) - Invoke secured blocking Grpc methods on worker thread
- [#​34510](https://github.com/quarkusio/quarkus/pull/34510) - Enhance OpenTelemetry's DropTargetsSampler
- [#​34509](https://github.com/quarkusio/quarkus/pull/34509) - Upgrade to Maven 3.9.3
- [#​34508](https://github.com/quarkusio/quarkus/pull/34508) - Fix typo in InjectMock javadoc
- [#​34507](https://github.com/quarkusio/quarkus/pull/34507) - Add SSL Support to integration test
- [#​34502](https://github.com/quarkusio/quarkus/issues/34502) - Add support to run QuarkusIntegrationTest against https
- [#​34499](https://github.com/quarkusio/quarkus/pull/34499) - Simplify and improve OIDC PKCE secret initialization
- [#​34494](https://github.com/quarkusio/quarkus/pull/34494) - Restore ENTRYPOINT in Dockerfile templates
- [#​34490](https://github.com/quarkusio/quarkus/pull/34490) - Make sure settings-security.xml is picked up from ~/.m2 if exists
- [#​34484](https://github.com/quarkusio/quarkus/pull/34484) - Update OIDC DevUI doc with new DevUI images
- [#​34482](https://github.com/quarkusio/quarkus/pull/34482) - Build Analytics - prompt improvements
- [#​34481](https://github.com/quarkusio/quarkus/pull/34481) - ArC: fix possible StringIndexOutOfBoundsException in ArcJsonRPCService
- [#​34478](https://github.com/quarkusio/quarkus/pull/34478) - Make plugin syncing log debug
- [#​34474](https://github.com/quarkusio/quarkus/pull/34474) - Fix span export issue when user provided SpanProcessor beans exist
- [#​34471](https://github.com/quarkusio/quarkus/pull/34471) - The Common Log Format requires the date to be wrapped into `[]`
- [#​34468](https://github.com/quarkusio/quarkus/pull/34468) - Enforce the configured TLS version
- [#​34466](https://github.com/quarkusio/quarkus/issues/34466) - DevUIArcJsonRPCTest.testInvocations unstable
- [#​34463](https://github.com/quarkusio/quarkus/issues/34463) - QuarkusApplication Simple JavaDoc
- [#​34458](https://github.com/quarkusio/quarkus/pull/34458) - Fix a typo in hibernate-reactive-panache.adoc
- [#​34454](https://github.com/quarkusio/quarkus/pull/34454) - An option to attach an Uber JAR as the main project artifact
- [#​34452](https://github.com/quarkusio/quarkus/pull/34452) - Fix Hibernate NoSuchMethod Exception when TenantIdGeneration used in Quarkus 3 native mode
- [#​34450](https://github.com/quarkusio/quarkus/pull/34450) - Support multiple backchannel logout tokens
- [#​34449](https://github.com/quarkusio/quarkus/pull/34449) - Refactor BuildTimeConfigurationReader to make it easy to initialize a config outside ExtensionLoader
- [#​34448](https://github.com/quarkusio/quarkus/issues/34448) - Failure to pull non-cached deps during test launch with proxy private repository
- [#​34444](https://github.com/quarkusio/quarkus/pull/34444) - Fix extra registry config merging
- [#​34443](https://github.com/quarkusio/quarkus/issues/34443) - Quarkus 3 native image fail to start with NoSuchMethod Exception
- [#​34442](https://github.com/quarkusio/quarkus/issues/34442) - OIDC BackChannel Logout is not production ready
- [#​34441](https://github.com/quarkusio/quarkus/pull/34441) - Upgrade to Hibernate ORM 6.2.6.Final, Hibernate Reactive 2.0.2.Final
- [#​34440](https://github.com/quarkusio/quarkus/pull/34440) - Attach renamed original JAR to the Maven project to keep install plugin working
- [#​34439](https://github.com/quarkusio/quarkus/issues/34439) - Quarkus gRPC `@Blocking` service bug (wrong kind of thread) with `@RolesAllowed`
- [#​34433](https://github.com/quarkusio/quarkus/pull/34433) - Use debug logging for catalog initialization message
- [#​34431](https://github.com/quarkusio/quarkus/pull/34431) - Prevent implicit image push when image build is explicitly disabled
- [#​34425](https://github.com/quarkusio/quarkus/pull/34425) - Documentation: Native testing, fix typo
- [#​34414](https://github.com/quarkusio/quarkus/pull/34414) - Improve generic resolution support in Spring Data JPA
- [#​34413](https://github.com/quarkusio/quarkus/issues/34413) - deploy commnad incorrectly trigger image build
- [#​34405](https://github.com/quarkusio/quarkus/pull/34405) - Fix typo in ResponseHeader annotation
- [#​34404](https://github.com/quarkusio/quarkus/pull/34404) - Fix typo in imports of sample in resteasy-reactive-client doc
- [#​34388](https://github.com/quarkusio/quarkus/issues/34388) - Provide possibility to run ./mvnw install with uber-jar creation, without renaming the uber-jar artefact
- [#​34385](https://github.com/quarkusio/quarkus/issues/34385) - Bad command in documentation
- [#​34383](https://github.com/quarkusio/quarkus/pull/34383) - Update ubi and openjdk-17-runtime images
- [#​34376](https://github.com/quarkusio/quarkus/issues/34376) - swagger-ui endpoint is traced by OTel
- [#​34374](https://github.com/quarkusio/quarkus/pull/34374) - Recover Kubernetes connection after watching builds logs timeout in OCP
- [#​34373](https://github.com/quarkusio/quarkus/pull/34373) - Remove duplicate property kotlin.coroutine.version from application BOM
- [#​34370](https://github.com/quarkusio/quarkus/issues/34370) - Quarkus is uing ubi8/ubi-minimal:8.6 and openjdk-17-runtime:1.15 while newer versions are available
- [#​34368](https://github.com/quarkusio/quarkus/pull/34368) - Docs - describe authentication challenge in security architecture concept guide
- [#​34366](https://github.com/quarkusio/quarkus/pull/34366) - Docs - configuration reference - environment variables
- [#​34358](https://github.com/quarkusio/quarkus/pull/34358) - Updates Infinispan to 14.0.11.Final
- [#​34353](https://github.com/quarkusio/quarkus/issues/34353) - OpenApi and SwaggerUi exposed on service port instead of management port
- [#​34350](https://github.com/quarkusio/quarkus/issues/34350) - Spring Data API Extension Interface Projections not working with generic interfaces
- [#​34347](https://github.com/quarkusio/quarkus/issues/34347) - Unable to pass command arguments to docker image in command line mode
- [#​34336](https://github.com/quarkusio/quarkus/pull/34336) - ArC: fix constructor injection for abstract decorators
- [#​34276](https://github.com/quarkusio/quarkus/issues/34276) - Openshift extension fails to deploy when on RHEL
- [#​34175](https://github.com/quarkusio/quarkus/issues/34175) - Dev UI Documentation update for Security
- [#​34146](https://github.com/quarkusio/quarkus/issues/34146) - BlockingOperationNotAllowedException in GRPC when using authentication
- [#​34144](https://github.com/quarkusio/quarkus/pull/34144) - Remove usages of `@AlwaysInline`
- [#​34141](https://github.com/quarkusio/quarkus/issues/34141) - Remove usage of `@AlwaysInline` as it's not GraalVM API
- [#​34128](https://github.com/quarkusio/quarkus/pull/34128) - Complete review for the Logging reference guide
- [#​34085](https://github.com/quarkusio/quarkus/issues/34085) - No gRPC response when no separate server is used & quarkus-keycloak-authorization is present
- [#​34069](https://github.com/quarkusio/quarkus/pull/34069) - Improve config documentation generation for mappings
- [#​33945](https://github.com/quarkusio/quarkus/issues/33945) - Dev-ui config editor not showing config values changed by a ConfigSourceInterceptor
- [#​33889](https://github.com/quarkusio/quarkus/issues/33889) - Panache LockModeType ignored since 3.1.1
- [#​33567](https://github.com/quarkusio/quarkus/issues/33567) - Custom ConfigSource not working with extensions that implement CodeGenProvider
- [#​33446](https://github.com/quarkusio/quarkus/pull/33446) - Pass additional parameters to podman/docker on MacOS
- [#​33407](https://github.com/quarkusio/quarkus/issues/33407) - OpenTelemetry custom SpanProcessor doesn't work in native mode
- [#​33317](https://github.com/quarkusio/quarkus/issues/33317) - OpenTelemetry SDK autoconfiguration ignores OTEL service name in favor of Quarkus app name
- [#​33188](https://github.com/quarkusio/quarkus/issues/33188) - Podman fails to build native on macOS
- [#​33115](https://github.com/quarkusio/quarkus/issues/33115) - Quarkus maven plugin 3.0.1.Final artifact upload broken, Authentication failure in Azure Devops
- [#​31010](https://github.com/quarkusio/quarkus/issues/31010) - HTTP access log %t missing enclosing brackets
- [#​30802](https://github.com/quarkusio/quarkus/issues/30802) - OIDC: Generate PKCE secret 32 chars long if it is not set and the client secret is not 32 chars long
- [#​30462](https://github.com/quarkusio/quarkus/issues/30462) - Bug/OpenTelemetry extension - unexpected exceptions are not recorded on the span
- [#​27452](https://github.com/quarkusio/quarkus/issues/27452) - Fix TODO in DropTargetsSampler.java
- [#​27384](https://github.com/quarkusio/quarkus/issues/27384) - OpenTelemetry: server spans of failed requests have no exception event
- [#​24938](https://github.com/quarkusio/quarkus/issues/24938) - Micrometer URI templating does not apply for unauthorized requests
- [#​10134](https://github.com/quarkusio/quarkus/issues/10134) - MicroProfile RestClient Encoding Failing for Emojis
### [`v3.2.0.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.2.0.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.1.3.Final...3.2.0.Final)
##### Major changes
- [#​34227](https://github.com/quarkusio/quarkus/pull/34227) - Support custom claim types in quarkus-test-security-jwt and quarkus-test-security-oidc
##### Complete changelog
- [#​34345](https://github.com/quarkusio/quarkus/pull/34345) - Add a section about march (graalvm 23+)
- [#​34344](https://github.com/quarkusio/quarkus/pull/34344) - Small doc adjustments noticed when backporting recent MRs
- [#​34340](https://github.com/quarkusio/quarkus/pull/34340) - Styling edits to security proactive auth docs
- [#​34338](https://github.com/quarkusio/quarkus/pull/34338) - Build analytics - Improvements III
- [#​34337](https://github.com/quarkusio/quarkus/pull/34337) - Fix typo & minor edits to security NVD doc
- [#​34325](https://github.com/quarkusio/quarkus/pull/34325) - Add support for java.time.Year as JAX-RS parameter
- [#​34324](https://github.com/quarkusio/quarkus/issues/34324) - resteasy-reactive java.time.Year ParamConverter
- [#​34321](https://github.com/quarkusio/quarkus/pull/34321) - Inconsistent `Bearer token authentication` in docs
- [#​34320](https://github.com/quarkusio/quarkus/pull/34320) - Minor doc enhancements to Security Basic Auth docs
- [#​34317](https://github.com/quarkusio/quarkus/pull/34317) - Minor doc enhancements to Identity providers
- [#​34313](https://github.com/quarkusio/quarkus/pull/34313) - Filter out disabled REST methods from the OpenAPI document
- [#​34290](https://github.com/quarkusio/quarkus/pull/34290) - Add more links between OIDC bearer and code flow authentication docs
- [#​34288](https://github.com/quarkusio/quarkus/pull/34288) - Remove "-concept" from doc filenames and IDs
- [#​34287](https://github.com/quarkusio/quarkus/pull/34287) - Style edits to "Authorization of web endpoints" Security ref doc
- [#​34286](https://github.com/quarkusio/quarkus/pull/34286) - Make sure snapshot artifacts available in both workspace and remote repos are resolved from workspace in dev mode
- [#​34280](https://github.com/quarkusio/quarkus/pull/34280) - Bump dekorate.version from 3.6.1 to 3.7.0
- [#​34278](https://github.com/quarkusio/quarkus/pull/34278) - Describe how you can serve static files with a Vert.x route
- [#​34275](https://github.com/quarkusio/quarkus/pull/34275) - Add extension suggestion in management interface reference
- [#​34274](https://github.com/quarkusio/quarkus/pull/34274) - Build analytics - Improvements II
- [#​34266](https://github.com/quarkusio/quarkus/pull/34266) - Make further updates to the update guide in the community and product docs so they match
- [#​34259](https://github.com/quarkusio/quarkus/pull/34259) - Properly configure KubernetesSerialization for OpenShiftClient
- [#​34258](https://github.com/quarkusio/quarkus/pull/34258) - Rephrase Non-mutable jar error message for remote-dev
- [#​34256](https://github.com/quarkusio/quarkus/pull/34256) - Use -Dnative consistently as it is what we recommend
- [#​34255](https://github.com/quarkusio/quarkus/pull/34255) - Build analytics - Fix windows prompt
- [#​34252](https://github.com/quarkusio/quarkus/pull/34252) - Various fixes regarding GraalVM/Mandrel flavor
- [#​34250](https://github.com/quarkusio/quarkus/pull/34250) - Propagate Smallrye Context when switching REST Client context
- [#​34240](https://github.com/quarkusio/quarkus/pull/34240) - Fix create app exception min java version not thrown up
- [#​34238](https://github.com/quarkusio/quarkus/issues/34238) - Should Quarkus set the `march` parameter by default?
- [#​34235](https://github.com/quarkusio/quarkus/pull/34235) - Bump smallrye-mutiny-vertx-core from 3.3.0 to 3.4.2
- [#​34233](https://github.com/quarkusio/quarkus/issues/34233) - OpenAPI $ref loop when setting Schema implementation
- [#​34232](https://github.com/quarkusio/quarkus/pull/34232) - Bump commons-codec from 1.15 to 1.16.0
- [#​34227](https://github.com/quarkusio/quarkus/pull/34227) - Support custom claim types in quarkus-test-security-jwt and quarkus-test-security-oidc
- [#​34224](https://github.com/quarkusio/quarkus/pull/34224) - Use GraalVM CE instead of Mandrel for building static binaries
- [#​34223](https://github.com/quarkusio/quarkus/pull/34223) - Provide a way to push env variables to dev services containers
- [#​34220](https://github.com/quarkusio/quarkus/issues/34220) - Build a container image from scratch breaks due to missing libraries
- [#​34215](https://github.com/quarkusio/quarkus/pull/34215) - Upgrade to SmallRye Fault Tolerance 6.2.4
- [#​34214](https://github.com/quarkusio/quarkus/pull/34214) - Add smallrye-jwt test confirming RSA-OAEP encrypted token with RSA 1\_5 set in headers is rejected
- [#​34212](https://github.com/quarkusio/quarkus/issues/34212) - Tracing Issue in Version 3.1.2 - Spans Not Consolidated under Parent Span
- [#​34207](https://github.com/quarkusio/quarkus/pull/34207) - Qute: `@EngineConfiguration` validation - consider superclasses
- [#​34195](https://github.com/quarkusio/quarkus/pull/34195) - Small fixes for the Dev UI doc
- [#​34174](https://github.com/quarkusio/quarkus/pull/34174) - Bump smallrye-open-api.version from 3.3.4 to 3.4.0
- [#​34163](https://github.com/quarkusio/quarkus/issues/34163) - Qute section helper type check is not complete
- [#​34133](https://github.com/quarkusio/quarkus/issues/34133) - Can't set non-string values on claims on JWT tokens produced in tests
- [#​34076](https://github.com/quarkusio/quarkus/pull/34076) - Kafka Dev UI: add ACL page, set Content-Type header, support msg headers
- [#​34060](https://github.com/quarkusio/quarkus/pull/34060) - Style n grammar edits to security overview doc
- [#​34038](https://github.com/quarkusio/quarkus/issues/34038) - Adding headers to Kafka message does not work via Kafka UI
- [#​34030](https://github.com/quarkusio/quarkus/issues/34030) - REST endpoints disabled via the `@EndpointDisabled` annotation still appear in swagger
- [#​33864](https://github.com/quarkusio/quarkus/issues/33864) - Support passing environment variables to devservices containers
- [#​33725](https://github.com/quarkusio/quarkus/issues/33725) - Live reload with multi-module workspace containing SNAPSHOT dependencies
- [#​33589](https://github.com/quarkusio/quarkus/pull/33589) - Make the update guide in the community and product docs match
- [#​30442](https://github.com/quarkusio/quarkus/issues/30442) - quarkus-test-security-(jwt and oidc): support non-string claims (integers, arrays, maps)
### [`v3.1.3.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.1.3.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.1.2.Final...3.1.3.Final)
##### Complete changelog
- [#​34314](https://github.com/quarkusio/quarkus/pull/34314) - Properly disambiguate projections from different repositories
- [#​34312](https://github.com/quarkusio/quarkus/issues/34312) - Spring Data API Extension Interface-based Projections occasionally throws NoSuchMethodError
- [#​34307](https://github.com/quarkusio/quarkus/pull/34307) - Fix NPE on OpenTelemetryVertxTracingFactory
- [#​34305](https://github.com/quarkusio/quarkus/issues/34305) - NPE at io.quarkus.opentelemetry.runtime.tracing.intrumentation.vertx.OpenTelemetryVertxTracingFactory$VertxDelegator.receiveResponse(OpenTelemetryVertxTracingFactory.java:102)
- [#​34281](https://github.com/quarkusio/quarkus/pull/34281) - Also create the default mailer if `@Location` is used
- [#​34272](https://github.com/quarkusio/quarkus/issues/34272) - Null Pointer when sending mail through MailTemplate
- [#​34253](https://github.com/quarkusio/quarkus/pull/34253) - Upgrade Hibernate Validator to 8.0.1.Final
- [#​34249](https://github.com/quarkusio/quarkus/pull/34249) - Vert.x 4.4.4, Netty 4.1.94, and Mutiny Bindings 3.5.0
- [#​34246](https://github.com/quarkusio/quarkus/pull/34246) - Make sure all base codestarts work for 2.x and 3.x
- [#​34244](https://github.com/quarkusio/quarkus/pull/34244) - URL-encode OIDC post_logout_uri query parameter
- [#​34228](https://github.com/quarkusio/quarkus/issues/34228) - Update netty-handler to address public known CVEs in versions before 4.1.94
- [#​34211](https://github.com/quarkusio/quarkus/pull/34211) - Select the right default version for a dialect when using Hibernate Reactive
- [#​34210](https://github.com/quarkusio/quarkus/issues/34210) - OIDC `post_logout_redirect_uri` query param appended to string buffer without % escape
- [#​34126](https://github.com/quarkusio/quarkus/pull/34126) - Take image-pull-policy config into account for init-containers
- [#​34125](https://github.com/quarkusio/quarkus/issues/34125) - Kubernetes init-containers ignore pull-policy
- [#​34124](https://github.com/quarkusio/quarkus/pull/34124) - Upgrade Hibernate ORM to 6.2.5.Final and Hibernate Reactive to 2.0.1.Final
- [#​34119](https://github.com/quarkusio/quarkus/pull/34119) - Fix for missing registry parameters in quarkus push image
- [#​34098](https://github.com/quarkusio/quarkus/pull/34098) - ArC: implement equals/hashCode for TypeVariableImpl and WildcardTypeImpl
- [#​34091](https://github.com/quarkusio/quarkus/pull/34091) - Bump BouncyCastle version to 1.74
- [#​34089](https://github.com/quarkusio/quarkus/issues/34089) - Quarkus extension created with 2.13 stream and Quarkus CLI 3 contains Jakarta imports
- [#​34073](https://github.com/quarkusio/quarkus/pull/34073) - Add configured SameSite attribute to all OIDC session cookies
- [#​34072](https://github.com/quarkusio/quarkus/pull/34072) - Fix metadata for keycloak-admin-client-reactive
- [#​34067](https://github.com/quarkusio/quarkus/pull/34067) - Bump snappy-java from 1.1.8.4 to 1.1.10.1 in /bom/application
- [#​34064](https://github.com/quarkusio/quarkus/issues/34064) - SameSite cookie attribute not set when tokens are splitted with Quarkus OIDC
- [#​34062](https://github.com/quarkusio/quarkus/pull/34062) - Fixes NullPointerException when using Infinispan Counter Manager
- [#​34056](https://github.com/quarkusio/quarkus/pull/34056) - Adjust update command quoting for Windows
- [#​34055](https://github.com/quarkusio/quarkus/pull/34055) - Fix service name in the OpenShift guide
- [#​34050](https://github.com/quarkusio/quarkus/issues/34050) - Infinispan NPE when upgrading to Quarkus 3
- [#​34032](https://github.com/quarkusio/quarkus/issues/34032) - Wrong hibernate dialect version detected for MS Sql Server
- [#​33923](https://github.com/quarkusio/quarkus/pull/33923) - Return Access-Control-Expose-Headers in normal CORS requests
- [#​33922](https://github.com/quarkusio/quarkus/issues/33922) - Access-Control-Expose-Headers not returned to request
- [#​33880](https://github.com/quarkusio/quarkus/pull/33880) - Update Maven server auth config properties initialization
- [#​33779](https://github.com/quarkusio/quarkus/issues/33779) - Quarkus 3/Hibernate 6 - Exception when access ElementCollection from an Entity with an embedded composite Key with associated Object
- [#​33527](https://github.com/quarkusio/quarkus/pull/33527) - A few requested enhancements to the Ansible guide
- [#​32843](https://github.com/quarkusio/quarkus/pull/32843) - Improve JavaDoc -> AsciiDoc transformation for lists, paragraphs and code blocks
### [`v3.1.2.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.1.2.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.1.1.Final...3.1.2.Final)
##### Complete changelog
- [#​34041](https://github.com/quarkusio/quarkus/pull/34041) - Fix endpoint address in the OpenShift guide
- [#​34039](https://github.com/quarkusio/quarkus/pull/34039) - Cleanup after REST Client multipart request
- [#​34028](https://github.com/quarkusio/quarkus/pull/34028) - Revert Liquibase to 4.20
- [#​34024](https://github.com/quarkusio/quarkus/pull/34024) - Avoid indefinite Uni wait in OIDC recorders
- [#​34020](https://github.com/quarkusio/quarkus/pull/34020) - Ensure Panache class transformers run before Arc's static method transformers
- [#​34014](https://github.com/quarkusio/quarkus/pull/34014) - Fix resolving custom ObjectMapper at deserialization in Resteasy Reactive
- [#​34012](https://github.com/quarkusio/quarkus/issues/34012) - Revert Liquibase to v4.20.0
- [#​34008](https://github.com/quarkusio/quarkus/issues/34008) - RESTEasy Reactive: ContextResolver<ObjectMapper> not called/used
- [#​34005](https://github.com/quarkusio/quarkus/issues/34005) - Panache tries to (and fails to) transform classes even if disabled
- [#​34003](https://github.com/quarkusio/quarkus/pull/34003) - ArC: fix InvocationContext#setParameters()
- [#​34001](https://github.com/quarkusio/quarkus/issues/34001) - AroundInvoke Interceptors can only modify parameters if first in chain
- [#​33993](https://github.com/quarkusio/quarkus/issues/33993) - Quarkus startup hangs in OidcRecorder
- [#​33988](https://github.com/quarkusio/quarkus/pull/33988) - Fix minor grammar mistake in config-reference.adoc
- [#​33986](https://github.com/quarkusio/quarkus/issues/33986) - Resource leak: Multipart HTTP-Requests leave Attr\_ temporary files not deleted
- [#​33983](https://github.com/quarkusio/quarkus/pull/33983) - Make sure our recipes are visible as a dependency when updating
- [#​33978](https://github.com/quarkusio/quarkus/pull/33978) - Generated docs should generate mvn create app command with Quarkus version and not stream version
- [#​33971](https://github.com/quarkusio/quarkus/pull/33971) - Protect include/exclude test commands against NPE
- [#​33970](https://github.com/quarkusio/quarkus/pull/33970) - Qute: skip generation of resources if a validation error occurs
- [#​33968](https://github.com/quarkusio/quarkus/pull/33968) - Update to Vert.x 4.4.3 and Netty 4.1.93.Final
- [#​33966](https://github.com/quarkusio/quarkus/issues/33966) - Quarkus crashing with dev-mode with Qute (on a specific situation)
- [#​33965](https://github.com/quarkusio/quarkus/pull/33965) - Don't include startup probe for KNative manifests
- [#​33962](https://github.com/quarkusio/quarkus/pull/33962) - Use JavaBinFinder when launching decompiler
- [#​33961](https://github.com/quarkusio/quarkus/issues/33961) - :dev terminal test commands don't work anymore (testSupport.include is null)
- [#​33958](https://github.com/quarkusio/quarkus/pull/33958) - Replace IfBuildProfile in UnlessBuildProfile javadoc
- [#​33954](https://github.com/quarkusio/quarkus/issues/33954) - UnlessBuildProfile Annotation Javadoc
- [#​33948](https://github.com/quarkusio/quarkus/pull/33948) - Manage org.glassfish.jaxb:txw2 at the same version as jaxb-core and jaxb-runtime
- [#​33944](https://github.com/quarkusio/quarkus/issues/33944) - Kubernetes + Smallrye Health Extensions: Knative deployment fails due to presence of startupProbe
- [#​33940](https://github.com/quarkusio/quarkus/pull/33940) - Manage net.java.dev.jna:jna-platform at the same version as net.java.dev.jna:jna
- [#​33939](https://github.com/quarkusio/quarkus/pull/33939) - Downgrade `maven-shade-plugin` to 3.2.1
- [#​33934](https://github.com/quarkusio/quarkus/pull/33934) - Bump SmallRye GraphQL to 2.2.1
- [#​33930](https://github.com/quarkusio/quarkus/issues/33930) - Decompiler fails when there's no java in path
- [#​33912](https://github.com/quarkusio/quarkus/pull/33912) - Bump Vert.x Mutiny Bindings to version 3.4.2
- [#​33910](https://github.com/quarkusio/quarkus/pull/33910) - Change redirection from /q/dev to /q/dev-ui to be FOUND instead of MOVED_PERMANENTLY
- [#​33904](https://github.com/quarkusio/quarkus/pull/33904) - Gradle plugin "confused" with parent-first vs removed vs optional artifacts
- [#​33903](https://github.com/quarkusio/quarkus/pull/33903) - ArC: beans injected into All List injection points should be unremovable
- [#​33901](https://github.com/quarkusio/quarkus/pull/33901) - Gradle-plugin: properly handle read-only files
- [#​33893](https://github.com/quarkusio/quarkus/pull/33893) - Bump jboss-logging from 3.5.0.Final to 3.5.1.Final
- [#​33891](https://github.com/quarkusio/quarkus/pull/33891) - Bump mariadb-java-client from 3.1.3 to 3.1.4
- [#​33884](https://github.com/quarkusio/quarkus/issues/33884) - Quarkus 3.1.1 causes Npe when using configinterceptor
- [#​33878](https://github.com/quarkusio/quarkus/pull/33878) - Upgrade to Maven 3.9.2 and Maven resolver 1.9.10
- [#​33873](https://github.com/quarkusio/quarkus/pull/33873) - Launch Liquibase and Flyway operations only when Arc is ready
- [#​33872](https://github.com/quarkusio/quarkus/pull/33872) - Add more documentation to `@RestHeader`
- [#​33870](https://github.com/quarkusio/quarkus/issues/33870) - Gradle plugin does not copy all files correctly, when having parent-first-artifacts
- [#​33867](https://github.com/quarkusio/quarkus/pull/33867) - Upgrade smallrye-health to 4.0.2
- [#​33861](https://github.com/quarkusio/quarkus/issues/33861) - Name resolution fails with `@RestHeader` annotation under certain condition
- [#​33843](https://github.com/quarkusio/quarkus/issues/33843) - AppCDS failed if mongodb-liquibase extension present
- [#​33842](https://github.com/quarkusio/quarkus/issues/33842) - AppCDS generation failed with `Permission denied`
- [#​33841](https://github.com/quarkusio/quarkus/pull/33841) - ArC: fix some scenarios with generic decorators
- [#​33825](https://github.com/quarkusio/quarkus/issues/33825) - smallrye-graphql-cdi triggers "Detected bean archive with bean discovery mode of 'all'" warning
- [#​33824](https://github.com/quarkusio/quarkus/pull/33824) - Replace references of s2i with openshift
- [#​33819](https://github.com/quarkusio/quarkus/pull/33819) - Restrict properties passed to gradle worker processes
- [#​33803](https://github.com/quarkusio/quarkus/issues/33803) - Generic CDI Decorator Throws java.lang.NoSuchMethodError
- [#​33781](https://github.com/quarkusio/quarkus/pull/33781) - Check if OIDC user-info-path is configured when UserInfo is required
- [#​33772](https://github.com/quarkusio/quarkus/issues/33772) - OIDC code authorization flow misleading error in some OAuth2 configurations
- [#​33679](https://github.com/quarkusio/quarkus/issues/33679) - Vert.X bump to 4.4.2 lead to `domain socket must not be empty` exception when used with Quarkus Micrometer extension
- [#​33658](https://github.com/quarkusio/quarkus/issues/33658) - redirect of /q/dev too permanent?
- [#​33469](https://github.com/quarkusio/quarkus/pull/33469) - Fix detection of project root in Quarkus CLI
- [#​33402](https://github.com/quarkusio/quarkus/issues/33402) - Extension provided plugins are not automatically added if plugin catalog is missing
- [#​33333](https://github.com/quarkusio/quarkus/pull/33333) - Use the container-provided settings decrypter
- [#​33321](https://github.com/quarkusio/quarkus/issues/33321) - Different behavior in native build using env var in application.properties when build with gradle vs. maven (Quarkus 3.x)
- [#​33220](https://github.com/quarkusio/quarkus/issues/33220) - Maven proxy usage is broken with Quarkus 3.0.2.Final
- [#​33024](https://github.com/quarkusio/quarkus/issues/33024) - Error trailers are not propagated when using new Vert.x gRPC support
- [#​30811](https://github.com/quarkusio/quarkus/issues/30811) - CDI Decorator ignored for beans implementing interface extending other generic interface
### [`v3.1.1.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.1.1.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.1.0.Final...3.1.1.Final)
##### Complete changelog
- [#​33846](https://github.com/quarkusio/quarkus/pull/33846) - Update Jackson to 2.15.2
- [#​33834](https://github.com/quarkusio/quarkus/pull/33834) - Kafka serde discovery: handle channel names containing dot
- [#​33821](https://github.com/quarkusio/quarkus/pull/33821) - DEV UI: Prevent NPE in JsonRpc#route after Quarkus app reloaded
- [#​33820](https://github.com/quarkusio/quarkus/issues/33820) - DEV UI on reload logs NPE xception in JsonRpcRouter#route on line 200
- [#​33815](https://github.com/quarkusio/quarkus/pull/33815) - Redis Hostname provider - do not call getHosts() twice
- [#​33811](https://github.com/quarkusio/quarkus/pull/33811) - Only expose the Dev UI Routes if Vert.x HTTP is present
- [#​33804](https://github.com/quarkusio/quarkus/issues/33804) - Dev Mode fails with Quarkus 3.1 and Kafka client (no vert.x http extension on the classpath)
- [#​33802](https://github.com/quarkusio/quarkus/pull/33802) - Fix Dev UI v1 link in the guides
- [#​33799](https://github.com/quarkusio/quarkus/pull/33799) - Fix message typo in OIDCRecorder
- [#​33769](https://github.com/quarkusio/quarkus/pull/33769) - Fix detection of OpenTelemetry
- [#​33763](https://github.com/quarkusio/quarkus/pull/33763) - When using RestMulti, don't require `@Produces`
- [#​33761](https://github.com/quarkusio/quarkus/pull/33761) - Properly implement ClientRequestContext#setEntity
- [#​33758](https://github.com/quarkusio/quarkus/pull/33758) - Update security-keycloak-admin-client.adoc
- [#​33756](https://github.com/quarkusio/quarkus/pull/33756) - Prevent NPE in Jacoco report preparation when a workspace module has no sources
- [#​33753](https://github.com/quarkusio/quarkus/pull/33753) - Bump apicurio-registry.version from 2.4.2.Final to 2.4.3.Final
- [#​33752](https://github.com/quarkusio/quarkus/pull/33752) - Bump kotlinx-serialization-json from 1.5.0 to 1.5.1
- [#​33746](https://github.com/quarkusio/quarkus/issues/33746) - Quarkus 3.1 still throws an error if `@Produces` is not defined on a stream response
- [#​33741](https://github.com/quarkusio/quarkus/issues/33741) - io.quarkus:quarkus-jacoco cannot import pom module dependecy
- [#​33738](https://github.com/quarkusio/quarkus/issues/33738) - Quarkus 3.1 rest client uses wrong Messagewriter
- [#​33735](https://github.com/quarkusio/quarkus/pull/33735) - Make Elasticsearch Java Client's withJson(...) methods work in native mode
- [#​33730](https://github.com/quarkusio/quarkus/issues/33730) - Smallrye Reactive Messaging with Kafka Connector does not support channel names containing a dot
- [#​33720](https://github.com/quarkusio/quarkus/pull/33720) - Normalize podman vs. podman.exe and Podman Desktop
- [#​33718](https://github.com/quarkusio/quarkus/pull/33718) - Fix native query support in Hibernate Reactive
- [#​33713](https://github.com/quarkusio/quarkus/issues/33713) - NamedNativeQuery not working in native image
- [#​33695](https://github.com/quarkusio/quarkus/pull/33695) - Update rewrite-maven-plugin to 4.46.0
- [#​33689](https://github.com/quarkusio/quarkus/pull/33689) - DevTool-cli Clarify --errors help message
- [#​33687](https://github.com/quarkusio/quarkus/pull/33687) - Call after construct callbacks when creating outer instances/QuarkusTest
- [#​33680](https://github.com/quarkusio/quarkus/pull/33680) - Fix dropped exception on JSON stream cancellation
- [#​33677](https://github.com/quarkusio/quarkus/pull/33677) - Fix npe when vert.x delegate is called but not set yet
- [#​33671](https://github.com/quarkusio/quarkus/pull/33671) - Mark test failure in time for callbacks to know about it
- [#​33670](https://github.com/quarkusio/quarkus/pull/33670) - Guard against potential NPE in GrpcClientConfiguration
- [#​33667](https://github.com/quarkusio/quarkus/pull/33667) - Do not include the Kafka Dev UI beans during the native build
- [#​33663](https://github.com/quarkusio/quarkus/pull/33663) - Fix SSE response with legacy publisher in native mode
- [#​33660](https://github.com/quarkusio/quarkus/pull/33660) - Dev UI small fixes
- [#​33659](https://github.com/quarkusio/quarkus/pull/33659) - Add DevConsoleCORSFilter to Dev UI JsonRPC WebSocket
- [#​33657](https://github.com/quarkusio/quarkus/pull/33657) - Security JPA Reactive - catch non-unique result exception properly
- [#​33652](https://github.com/quarkusio/quarkus/issues/33652) - Endpoint with RestSseElementType doesn't produce events in native
- [#​33651](https://github.com/quarkusio/quarkus/pull/33651) - Refer to 'microprofile_jwt' scope in OIDC docs
- [#​33649](https://github.com/quarkusio/quarkus/pull/33649) - \[Doc] Fix minor typo in devtool CLI
- [#​33647](https://github.com/quarkusio/quarkus/issues/33647) - Incorrect test status in QuarkusTestAfterTestExecutionCallback and QuarkusTestAfterEachCallback for failing test
- [#​33645](https://github.com/quarkusio/quarkus/pull/33645) - Ignore IndexDependencyBuildItem for missing dependencies
- [#​33643](https://github.com/quarkusio/quarkus/issues/33643) - RolesAllowed and OIDC broken in 2.16.0-Final and 3.0.4-Final with KeyCloak
- [#​33639](https://github.com/quarkusio/quarkus/pull/33639) - Upgrade to SmallRye Fault Tolerance 6.2.3
- [#​33631](https://github.com/quarkusio/quarkus/issues/33631) - Hibernate Storing multiple items with `@IdClass` in one transaction fails
- [#​33627](https://github.com/quarkusio/quarkus/pull/33627) - Do not bind the "grpc" container port when configured to use same server
- [#​33623](https://github.com/quarkusio/quarkus/issues/33623) - Regression - Unable to build native binary when using quarkus-kafka-client extension
- [#​33614](https://github.com/quarkusio/quarkus/pull/33614) - Reincorporate entries into jars' MANIFEST.MF
- [#​33613](https://github.com/quarkusio/quarkus/issues/33613) - MANIFEST.MF don't contain information anymore since 3.1.x builds
- [#​33612](https://github.com/quarkusio/quarkus/pull/33612) - Make repositories setup in quarkus-parent consistent with other poms
- [#​33608](https://github.com/quarkusio/quarkus/pull/33608) - Propagate completion and error events in Redis pub/sub
- [#​33604](https://github.com/quarkusio/quarkus/pull/33604) - Fix support of InputStream multipart without filename in REST Client
- [#​33601](https://github.com/quarkusio/quarkus/issues/33601) - Rest client using multipart stopped working while migrating to Quarkus 3
- [#​33598](https://github.com/quarkusio/quarkus/pull/33598) - Fix the Micrometer MP Metrics annotation transformation
- [#​33597](https://github.com/quarkusio/quarkus/pull/33597) - Bump dekorate to 3.6.1
- [#​33595](https://github.com/quarkusio/quarkus/pull/33595) - Skip manifest entry properties that are missing values
- [#​33594](https://github.com/quarkusio/quarkus/issues/33594) - Invalid Mocks in `@Nested` Tests with `@TestProfile` after upgrade to Quarkus 3
- [#​33593](https://github.com/quarkusio/quarkus/issues/33593) - GrpcClientConfiguration.inProcess results in NPE when config not present
- [#​33591](https://github.com/quarkusio/quarkus/pull/33591) - Correct a typo in native-reference.adoc
- [#​33588](https://github.com/quarkusio/quarkus/issues/33588) - Failed to stop Quarkus \[Error Occurred After Shutdown] error when adjusting configuration through Dev UI
- [#​33587](https://github.com/quarkusio/quarkus/issues/33587) - Dev UI - Configuration - unable to filter configuration properties defined in application.properties
- [#​33586](https://github.com/quarkusio/quarkus/pull/33586) - Use 'target' as output dir for platform test classes loaded from JARs
- [#​33585](https://github.com/quarkusio/quarkus/issues/33585) - NPE When Constructor Injecting a Microprofile Metric
- [#​33582](https://github.com/quarkusio/quarkus/issues/33582) - Kubernetes to enforcing quarkus.kubernetes.replicas=0
- [#​33581](https://github.com/quarkusio/quarkus/pull/33581) - Fix check to return existing marshaller if class is already bounded
- [#​33579](https://github.com/quarkusio/quarkus/issues/33579) - Is it a Typo? seems like a bug in code. As it always returns false
- [#​33578](https://github.com/quarkusio/quarkus/pull/33578) - Fix typo in grpc in-process runtime config
- [#​33573](https://github.com/quarkusio/quarkus/issues/33573) - disableTrustManager is not used in ResteasyReactiveClientProvider
- [#​33569](https://github.com/quarkusio/quarkus/pull/33569) - Pass disableTrustManager in ResteasyReactiveClientProvider
- [#​33538](https://github.com/quarkusio/quarkus/pull/33538) - Dev UI new common component for no-service/data
- [#​33531](https://github.com/quarkusio/quarkus/pull/33531) - Update Vert.x Mutiny bindings to version 3.4.1
- [#​33498](https://github.com/quarkusio/quarkus/pull/33498) - Upgrade Hibernate ORM and Hibernate Reactive
- [#​33418](https://github.com/quarkusio/quarkus/issues/33418) - Quarkus redis reactive pubsub disconnecting handler
- [#​33305](https://github.com/quarkusio/quarkus/issues/33305) - OutputTargetBuildItem.getOutputDirectory() returning a strange value when running a test in the Platform
- [#​33300](https://github.com/quarkusio/quarkus/pull/33300) - Register PGobject subtypes for reflection
- [#​33285](https://github.com/quarkusio/quarkus/issues/33285) - Vertx race condition may not initialise OpenTelemetry
- [#​33206](https://github.com/quarkusio/quarkus/issues/33206) - Using duration with hibernate and postgres interval leads to error in native mode
- [#​33072](https://github.com/quarkusio/quarkus/issues/33072) - Quarkus Native on(GraalVM) issue with ElasticSearch Java Client: No deserializer found in 'co.elastic.clients.elasticsearch.core.UpdateByQueryRequest.\_DESERIALIZER'
- [#​32963](https://github.com/quarkusio/quarkus/issues/32963) - Reactive Client - Mutiny Dropped Exception on Cancel (stream+json)
- [#​32926](https://github.com/quarkusio/quarkus/issues/32926) - New Form editor in Configuration doesn't show up the key/value in application.properties
- [#​32234](https://github.com/quarkusio/quarkus/issues/32234) - Dev UI 2 - Generalize No Dev Services element
- [#​29422](https://github.com/quarkusio/quarkus/issues/29422) - DevUI - config editor doesn't notify user when something goes wrong
- [#​28971](https://github.com/quarkusio/quarkus/issues/28971) - Quarkus Maven Plugin unable to handle maven exclusions
### [`v3.1.0.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.1.0.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.0.4.Final...3.1.0.Final)
##### Complete changelog
- [#​33536](https://github.com/quarkusio/quarkus/pull/33536) - Add some media queries for dev ui to render better on smaller screens
- [#​33511](https://github.com/quarkusio/quarkus/pull/33511) - Move Status tag to footer
- [#​33510](https://github.com/quarkusio/quarkus/pull/33510) - Dev UI: OpenAPI - Fix paths when custom
- [#​33477](https://github.com/quarkusio/quarkus/issues/33477) - Dev-UI v2 fails to work with swagger-ui extension after changing its path config
- [#​33472](https://github.com/quarkusio/quarkus/pull/33472) - Disable non configured default OIDC tenant if TenantConfigResolver is available
- [#​33468](https://github.com/quarkusio/quarkus/issues/33468) - Upgrade vertx to 4.4.\* to allow TLS Server certificate rotation without restarts
- [#​33462](https://github.com/quarkusio/quarkus/pull/33462) - Add support of signature algorithms (PSxxx, EdDSA) in quarkus-oidc
- [#​33459](https://github.com/quarkusio/quarkus/pull/33459) - Disable flaky OTel-GraphQL test for now
- [#​33432](https://github.com/quarkusio/quarkus/pull/33432) - Fix log issue with `@QuarkusIntegrationTest`
- [#​33424](https://github.com/quarkusio/quarkus/pull/33424) - Update graal-sdk to 22.3.2
- [#​33423](https://github.com/quarkusio/quarkus/issues/33423) - Update graal-sdk to 22.3.2 to address public known CVEs in version 22.3.0
- [#​33416](https://github.com/quarkusio/quarkus/pull/33416) - Update to vertx 4.4.2
- [#​33351](https://github.com/quarkusio/quarkus/pull/33351) - Fix blank DEV UI extension pages when loading data from Back End
- [#​33331](https://github.com/quarkusio/quarkus/issues/33331) - dev-ui in Q3 is log is difficult to enlarge
- [#​33268](https://github.com/quarkusio/quarkus/pull/33268) - Replace `jboss-parent` with `quarkus-parent`
- [#​33229](https://github.com/quarkusio/quarkus/issues/33229) - Native binary run log is not visible when running tests with Quarkus main
- [#​33120](https://github.com/quarkusio/quarkus/issues/33120) - Do not require OIDC users disable default tenant when TenantConfigResolver is used
### [`v3.0.4.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.0.4.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.0.3.Final...3.0.4.Final)
##### Complete changelog
- [#​33551](https://github.com/quarkusio/quarkus/pull/33551) - Properly include Prometheus related code
- [#​33547](https://github.com/quarkusio/quarkus/issues/33547) - infinispan-client + micrometer combination doesn't compile in native
- [#​33542](https://github.com/quarkusio/quarkus/pull/33542) - Limit subclass codec registration to known working codecs
- [#​33539](https://github.com/quarkusio/quarkus/pull/33539) - fix typo in grpc-service-consumption.adoc
- [#​33537](https://github.com/quarkusio/quarkus/pull/33537) - Fix the custom card for Dev UI Rabbit MQ
- [#​33499](https://github.com/quarkusio/quarkus/pull/33499) - Ensure that invoker is properly initialized in QuartzJobDefinition#schedule
- [#​33491](https://github.com/quarkusio/quarkus/pull/33491) - Ensure that cookies added in filters are visible to resource methods
- [#​33490](https://github.com/quarkusio/quarkus/issues/33490) - Cookies created in request filters are not accessible in Resource Methods
- [#​33488](https://github.com/quarkusio/quarkus/pull/33488) - Bump Resteasy Classic to 6.2.4.Final
- [#​33478](https://github.com/quarkusio/quarkus/pull/33478) - Arc - remove logging when discovering a an illegal bean type in producer type hierarchy
- [#​33466](https://github.com/quarkusio/quarkus/pull/33466) - Ensure the classes to be bound in JAXB are cleared in DEV mode
- [#​33460](https://github.com/quarkusio/quarkus/pull/33460) - ArC - fix observer method injection for dependent synthetic beans
- [#​33458](https://github.com/quarkusio/quarkus/issues/33458) - Failed to start quarkus, Already a codec registered with name uy.com.andi.reproducer.logic.services.bus.utils.BusMessageCodec
- [#​33453](https://github.com/quarkusio/quarkus/pull/33453) - Fix malformed sentence in guide
- [#​33451](https://github.com/quarkusio/quarkus/pull/33451) - Create all the required directories before copying native JSON files
- [#​33450](https://github.com/quarkusio/quarkus/issues/33450) - Native build fails if quarkus.package.output-directory is set
- [#​33449](https://github.com/quarkusio/quarkus/issues/33449) - Error "No current injection point found" when using a ConfigMapping on an onStartup method
- [#​33448](https://github.com/quarkusio/quarkus/pull/33448) - Fix location and content location headers in Resteasy Reactive
- [#​33441](https://github.com/quarkusio/quarkus/issues/33441) - Two classes have the same XML type name "xmlObject".
- [#​33419](https://github.com/quarkusio/quarkus/issues/33419) - RESTEasy ResponseBuilder.location Inadvertently Decodes Path Segments in Relative URI
- [#​33410](https://github.com/quarkusio/quarkus/pull/33410) - Improve documentation of DockerConfig
- [#​33398](https://github.com/quarkusio/quarkus/pull/33398) - Use default value from `quarkus.http.read-timeout` in RESTEasy Reactive
- [#​33389](https://github.com/quarkusio/quarkus/issues/33389) - INFO message is confusing
- [#​33384](https://github.com/quarkusio/quarkus/pull/33384) - Do not build the REST Client instances in CDI wrapper constructor for RequestScoped clients
- [#​33383](https://github.com/quarkusio/quarkus/pull/33383) - Properly handle Kotlin suspend methods in Reactive Messaging Kafka
- [#​33377](https://github.com/quarkusio/quarkus/issues/33377) - REST Client Reactive: Listener & Request-scoped bean
- [#​33368](https://github.com/quarkusio/quarkus/pull/33368) - Do not attempt to detect container runtime in native-sources build
- [#​33366](https://github.com/quarkusio/quarkus/pull/33366) - Fix documentation for Secured Routes in OpenShift
- [#​33357](https://github.com/quarkusio/quarkus/pull/33357) - Fix typo in Azure Functions documentation
- [#​33326](https://github.com/quarkusio/quarkus/pull/33326) - Fix 'quarkus.otel.exporter.otlp.traces.timeout' default value
- [#​33311](https://github.com/quarkusio/quarkus/pull/33311) - Add missing line break to render doc properly
- [#​33308](https://github.com/quarkusio/quarkus/issues/33308) - Kafka consumer using kotlin coroutines throws ClassCastException
- [#​33294](https://github.com/quarkusio/quarkus/pull/33294) - No need to exclude javax validation-api anymore
- [#​33275](https://github.com/quarkusio/quarkus/issues/33275) - Secured Openshift routes should be documented
- [#​33266](https://github.com/quarkusio/quarkus/pull/33266) - Dev UI: Fix raw built time data page
- [#​33265](https://github.com/quarkusio/quarkus/pull/33265) - Properly support extracting fields from entities into projections
- [#​33258](https://github.com/quarkusio/quarkus/pull/33258) - Ensure that Google Cloud Functions and Jib extensions work together
- [#​33252](https://github.com/quarkusio/quarkus/pull/33252) - Fix NPE when force restarting with kubernetes dev service running
- [#​33246](https://github.com/quarkusio/quarkus/pull/33246) - Fix Resource Class reflection registration when custom Writer is used
- [#​33236](https://github.com/quarkusio/quarkus/pull/33236) - Keep query params for extension page deeplinks
- [#​33235](https://github.com/quarkusio/quarkus/issues/33235) - Deeplinks to DEV UI extension page removes query params
- [#​33225](https://github.com/quarkusio/quarkus/pull/33225) - Upgrade RESTEasy Classic to 6.2.3.Final
- [#​33190](https://github.com/quarkusio/quarkus/pull/33190) - Update apache link in the license header to https
- [#​33184](https://github.com/quarkusio/quarkus/pull/33184) - Address some issues in getting-started-reactive documentation
- [#​33169](https://github.com/quarkusio/quarkus/pull/33169) - Bump angus-activation from 2.0.0 to 2.0.1
- [#​33161](https://github.com/quarkusio/quarkus/issues/33161) - Quarkus 3 quarkus.package.type=native-sources require docker/podman or native-image
- [#​33136](https://github.com/quarkusio/quarkus/pull/33136) - Embed Other UIs better in Dev UI
- [#​33042](https://github.com/quarkusio/quarkus/pull/33042) - Print valid api versions when specifying one in K8s Client Dev Services
- [#​33011](https://github.com/quarkusio/quarkus/issues/33011) - Building an image with jib fails when adding the quarkus google cloud functions extension
- [#​33007](https://github.com/quarkusio/quarkus/issues/33007) - kubernetes dev service weird error when flavor is kind and setting api value
- [#​33006](https://github.com/quarkusio/quarkus/issues/33006) - get NPE when force restarting with kubernets dev service running
- [#​32931](https://github.com/quarkusio/quarkus/issues/32931) - Dev UI 2 - Infinite Page View
- [#​32912](https://github.com/quarkusio/quarkus/issues/32912) - Dev UI Dynamic Label not working
- [#​32872](https://github.com/quarkusio/quarkus/pull/32872) - Dev UI: Allow runtime links in external page
- [#​32859](https://github.com/quarkusio/quarkus/issues/32859) - Support Runtime Values for External Dev UI links
- [#​31774](https://github.com/quarkusio/quarkus/issues/31774) - Spring Data API Extension not working with Interface-based Projections
### [`v3.0.3.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.0.3.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.0.2.Final...3.0.3.Final)
##### Complete changelog
- [#​33237](https://github.com/quarkusio/quarkus/pull/33237) - Update Stork to version 2.2.0
- [#​33221](https://github.com/quarkusio/quarkus/pull/33221) - Bump smallrye-open-api.version from 3.3.2 to 3.3.4
- [#​33216](https://github.com/quarkusio/quarkus/pull/33216) - Ignore malformed language ranges when resolving locales for validation
- [#​33202](https://github.com/quarkusio/quarkus/pull/33202) - Fix nesting of cli plugins
- [#​33201](https://github.com/quarkusio/quarkus/pull/33201) - Fix pom.xml for owasp dependency check plugin
- [#​33199](https://github.com/quarkusio/quarkus/pull/33199) - Replaced the inversed return types with correct return types
- [#​33194](https://github.com/quarkusio/quarkus/pull/33194) - Populate ResourceInfo when exception thrown from Resource returning CompletionStage
- [#​33187](https://github.com/quarkusio/quarkus/pull/33187) - Bug fix for qute-reference: correct import for hidden fragment
- [#​33183](https://github.com/quarkusio/quarkus/pull/33183) - Fix small documentation issue in reactive
- [#​33171](https://github.com/quarkusio/quarkus/issues/33171) - error in the getting-started-reactive page
- [#​33170](https://github.com/quarkusio/quarkus/issues/33170) - Panache Reactive + Reloads
- [#​33150](https://github.com/quarkusio/quarkus/issues/33150) - quarkus-hibernate-validator HV000149: http 500 error caused by IllegalArgumentException if accept-language is invalid
- [#​33146](https://github.com/quarkusio/quarkus/pull/33146) - Fix missing method in native mode when an SSE endpoint returns a Flow.Publisher
- [#​33140](https://github.com/quarkusio/quarkus/pull/33140) - Fix Hibernate Reactive dev mode
- [#​33138](https://github.com/quarkusio/quarkus/pull/33138) - Fix tiny typo in Stork Kubernetes documentation
- [#​33131](https://github.com/quarkusio/quarkus/issues/33131) - Quarkus 3.0.1.Final Kubenetes builds break stork
- [#​33128](https://github.com/quarkusio/quarkus/pull/33128) - Fix broken link so it points to the config-yaml guide
- [#​33127](https://github.com/quarkusio/quarkus/issues/33127) - Fix links to point to https://quarkus.io/guides/config-yaml
- [#​33118](https://github.com/quarkusio/quarkus/pull/33118) - Updates to Infinispan 14.0.9.Final
- [#​33108](https://github.com/quarkusio/quarkus/pull/33108) - Upgrade Kotlin with quarkus update
- [#​33106](https://github.com/quarkusio/quarkus/issues/33106) - Quarkus 3.0.1 behaves different in reactive native mode
- [#​33100](https://github.com/quarkusio/quarkus/pull/33100) - Workaround for unnecessary info logs in Hibernate ORM (HHH-16546)
- [#​33096](https://github.com/quarkusio/quarkus/pull/33096) - Fix a regression in config doc generation
- [#​33089](https://github.com/quarkusio/quarkus/issues/33089) - new Info Log since Q3 HHH000157: Lazy property fetching available for
- [#​33086](https://github.com/quarkusio/quarkus/pull/33086) - Fix completion mode field when creating a K8s Job resource and Flyway
- [#​33085](https://github.com/quarkusio/quarkus/issues/33085) - quarkus kubernetes creates job with unsupported `on spec.completionMode`
- [#​33084](https://github.com/quarkusio/quarkus/pull/33084) - ArC - static method interception fix
- [#​33064](https://github.com/quarkusio/quarkus/pull/33064) - Bump Gradle to 8.1.1
- [#​33034](https://github.com/quarkusio/quarkus/pull/33034) - Make the update guide evergreen
- [#​33032](https://github.com/quarkusio/quarkus/pull/33032) - Fix experimental badge on new Dev UI
- [#​33010](https://github.com/quarkusio/quarkus/pull/33010) - Bump surefire plugin in independent-projects to 3.0.0
- [#​33009](https://github.com/quarkusio/quarkus/issues/33009) - new devui does not show experimental status
- [#​32990](https://github.com/quarkusio/quarkus/issues/32990) - ClassNotFoundException when scheduler calls static `@Transactional` PanacheEntity method
- [#​32951](https://github.com/quarkusio/quarkus/issues/32951) - The javadoc of return types for each methods in redis client ValueCommand.java and ReactiveValueCommands.java is inversed for some commands
- [#​32932](https://github.com/quarkusio/quarkus/pull/32932) - Fix resteasy-reactive-client hostname verification default
- [#​32862](https://github.com/quarkusio/quarkus/issues/32862) - `SimpleResourceInfo` parameter is null in a response filter when an exception is raised
- [#​32768](https://github.com/quarkusio/quarkus/issues/32768) - Update Kotlin version with OpenRewrite
- [#​32766](https://github.com/quarkusio/quarkus/issues/32766) - Issue with default values in config doc generation
- [#​32309](https://github.com/quarkusio/quarkus/pull/32309) - Improve container runtime detection
- [#​32246](https://github.com/quarkusio/quarkus/issues/32246) - Quarkus doesn't detect Docker rootless anymore
### [`v3.0.2.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.0.2.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.0.1.Final...3.0.2.Final)
##### Complete changelog
- [#​33040](https://github.com/quarkusio/quarkus/pull/33040) - Fix config for Vale linter GitHub Action on MR
- [#​33033](https://github.com/quarkusio/quarkus/pull/33033) - Fix minor formatting issue in the update guide
- [#​33013](https://github.com/quarkusio/quarkus/pull/33013) - Lowercase enum values to avoid hypen in k8s flavor acronym
- [#​33004](https://github.com/quarkusio/quarkus/issues/33004) - Kubernetes Dev Services: k3s flavour name is not properly documented
- [#​33002](https://github.com/quarkusio/quarkus/pull/33002) - Bump gizmo from 1.6.0.Final to 1.6.1.Final
- [#​32999](https://github.com/quarkusio/quarkus/pull/32999) - Qute - fix a regression introduced in [#​32653](https://github.com/quarkusio/quarkus/issues/32653) (3.0.1)
- [#​32989](https://github.com/quarkusio/quarkus/pull/32989) - Exclude JS files from resource filtering
- [#​32978](https://github.com/quarkusio/quarkus/pull/32978) - Fix native compilation when using the kafka-client without netty
- [#​32968](https://github.com/quarkusio/quarkus/issues/32968) - Unable to build native binary when using quarkus-kafka-client extension
- [#​32959](https://github.com/quarkusio/quarkus/issues/32959) - Minus not working with Integer in qute after upgrading to 3.0.1.Final
- [#​32956](https://github.com/quarkusio/quarkus/issues/32956) - Dev UI2 show wrong java version
- [#​32949](https://github.com/quarkusio/quarkus/pull/32949) - InjectMock should not create a new contextual instance
- [#​32944](https://github.com/quarkusio/quarkus/issues/32944) - Quarkus 3: `@InjectMock` with Producer
- [#​32941](https://github.com/quarkusio/quarkus/pull/32941) - Rename server-list to hosts in the Infinispan Dev Services guide
- [#​32938](https://github.com/quarkusio/quarkus/pull/32938) - Register class for reflection when returning Multi for JAX-RS Resource
- [#​32934](https://github.com/quarkusio/quarkus/pull/32934) - Fix setting service account in Kubernetes/Openshift extensions
- [#​32933](https://github.com/quarkusio/quarkus/issues/32933) - Quarkus-3.0.1 - Ignores Kubernetes Service account property
- [#​32922](https://github.com/quarkusio/quarkus/pull/32922) - Narayana upgrade (to 6.0.1.Final)
- [#​32907](https://github.com/quarkusio/quarkus/pull/32907) - Set minimal Maven version to 3.8.2
- [#​32893](https://github.com/quarkusio/quarkus/pull/32893) - Fix issue with KnownPathResource manager in native
- [#​32888](https://github.com/quarkusio/quarkus/pull/32888) - Quartz - update the error message when scheduler was not started
- [#​32886](https://github.com/quarkusio/quarkus/issues/32886) - RESTEasy Reactive streaming resource methods leads to NoSuchMethodException in native mode
- [#​32874](https://github.com/quarkusio/quarkus/pull/32874) - Scheduler Dev UI - always log id of programmatically scheduled jobs
- [#​32855](https://github.com/quarkusio/quarkus/pull/32855) - Support for multi tenancy column discriminator
- [#​32844](https://github.com/quarkusio/quarkus/pull/32844) - Allow access token verification for Google,Github
- [#​32827](https://github.com/quarkusio/quarkus/pull/32827) - Update OIDC Dev code to recognize quarkus.oidc.provider
- [#​32826](https://github.com/quarkusio/quarkus/issues/32826) - OidcDevConsoleProcessor does not recognize quarkus.oidc.provider
- [#​32781](https://github.com/quarkusio/quarkus/pull/32781) - Bump micrometer-bom from 1.10.5 to 1.10.6
- [#​32780](https://github.com/quarkusio/quarkus/pull/32780) - Bump picocli.version from 4.7.1 to 4.7.3
- [#​32656](https://github.com/quarkusio/quarkus/pull/32656) - Undertow file servlet listing
- [#​32192](https://github.com/quarkusio/quarkus/pull/32192) - Encrypt OIDC session cookie value by default
### [`v3.0.1.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.0.1.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/3.0.0.Final...3.0.1.Final)
##### Complete changelog
- [#​32879](https://github.com/quarkusio/quarkus/pull/32879) - PLANNER-2861 Upgrate to OptaPlanner 9
- [#​32863](https://github.com/quarkusio/quarkus/pull/32863) - Dev UI: Implement the config filter by extension
- [#​32861](https://github.com/quarkusio/quarkus/pull/32861) - Make dev-services hot reload
- [#​32848](https://github.com/quarkusio/quarkus/pull/32848) - Provide correct generic type and annotations in ParamConverterProvider
- [#​32847](https://github.com/quarkusio/quarkus/pull/32847) - Fix a typo in rest-client-multipart.adoc
- [#​32846](https://github.com/quarkusio/quarkus/pull/32846) - Fix a typo in mongodb-panache.adoc
- [#​32842](https://github.com/quarkusio/quarkus/pull/32842) - Correct a typo in redis-reference.adoc
- [#​32841](https://github.com/quarkusio/quarkus/pull/32841) - Add a column before a table column separator `|`
- [#​32840](https://github.com/quarkusio/quarkus/pull/32840) - Correct a minor error in qute-reference.adoc
- [#​32838](https://github.com/quarkusio/quarkus/pull/32838) - Fix a typo in security-openid-connect-multitenancy.adoc
- [#​32837](https://github.com/quarkusio/quarkus/pull/32837) - Disable DEV UI for remote dev mode
- [#​32836](https://github.com/quarkusio/quarkus/issues/32836) - Prevent exposing of new DEV UI in remote development mode
- [#​32833](https://github.com/quarkusio/quarkus/pull/32833) - Fix OIDC UserInfo to better handle null, array, map
- [#​32825](https://github.com/quarkusio/quarkus/pull/32825) - Set correct OIDC Google principal claim
- [#​32824](https://github.com/quarkusio/quarkus/issues/32824) - Set correct OIDC Google principal claim name
- [#​32817](https://github.com/quarkusio/quarkus/pull/32817) - ArC - new Dev UI - fixes and improvements
- [#​32815](https://github.com/quarkusio/quarkus/pull/32815) - Properly pass annotation to Writers when streaming data
- [#​32812](https://github.com/quarkusio/quarkus/pull/32812) - Report OTel config unknowns only when fallback properties used
- [#​32810](https://github.com/quarkusio/quarkus/pull/32810) - Fix K8 service binding with reactive datasource
- [#​32809](https://github.com/quarkusio/quarkus/pull/32809) - Set OIDC `user-info-required` when `UserInfo` is known to be required
- [#​32805](https://github.com/quarkusio/quarkus/pull/32805) - ArC - support interception of static methods with repeatable bindings
- [#​32804](https://github.com/quarkusio/quarkus/pull/32804) - Remove maven-compiler-plugin from dependabot ignore list
- [#​32798](https://github.com/quarkusio/quarkus/pull/32798) - Register Resource Class for reflection when customer Reader or Writer is used
- [#​32797](https://github.com/quarkusio/quarkus/pull/32797) - Dev UI remove console.log
- [#​32796](https://github.com/quarkusio/quarkus/pull/32796) - Dev UI Fix labels not clearing out
- [#​32795](https://github.com/quarkusio/quarkus/pull/32795) - Docs update for Apicurio Registry compatible dependencies
- [#​32788](https://github.com/quarkusio/quarkus/pull/32788) - Add note about using Jacoco with a multi-module project
- [#​32783](https://github.com/quarkusio/quarkus/pull/32783) - Bump dekorate to 3.5.5
- [#​32776](https://github.com/quarkusio/quarkus/pull/32776) - Bump quarkiverse-parent to 13
- [#​32771](https://github.com/quarkusio/quarkus/pull/32771) - Prevent NPE for UserInfo String and Boolean properties
- [#​32765](https://github.com/quarkusio/quarkus/issues/32765) - RR client: annotations on `@*Param` fields present in `@BeanParam` class unavailable to custom `ParamConverterProvider`
- [#​32762](https://github.com/quarkusio/quarkus/pull/32762) - Normalize paths for POM Model providers
- [#​32759](https://github.com/quarkusio/quarkus/pull/32759) - Restore the ability to use `@TestReactiveTransaction` on a test class
- [#​32757](https://github.com/quarkusio/quarkus/pull/32757) - Also create the default mailer if `@CheckedTemplate` is used
- [#​32756](https://github.com/quarkusio/quarkus/pull/32756) - Display JVM CDS logs when debug logging is enabled
- [#​32755](https://github.com/quarkusio/quarkus/issues/32755) - \[Quarkus 3.0.0.CR2] \[quarkus-mailer] NullPointerException when sending with MailTemplateInstance
- [#​32754](https://github.com/quarkusio/quarkus/pull/32754) - Allow the OPTIONS method for static resources
- [#​32753](https://github.com/quarkusio/quarkus/pull/32753) - Update codestarts to use openjdk container images 1.15
- [#​32752](https://github.com/quarkusio/quarkus/pull/32752) - Collect META-INF/resources only from the runtime classpath
- [#​32751](https://github.com/quarkusio/quarkus/issues/32751) - Codestarts - OpenJDK-Container Image not updated
- [#​32750](https://github.com/quarkusio/quarkus/pull/32750) - Fix issue with quarkus.init-and-exit
- [#​32749](https://github.com/quarkusio/quarkus/pull/32749) - Dev UI add label and icon to submenu
- [#​32748](https://github.com/quarkusio/quarkus/pull/32748) - Dev UI DevService page to use new card component
- [#​32744](https://github.com/quarkusio/quarkus/pull/32744) - Dev UI - add logger level to server log
- [#​32740](https://github.com/quarkusio/quarkus/pull/32740) - Add missing static import in config interceptor doc
- [#​32738](https://github.com/quarkusio/quarkus/pull/32738) - Fix guide oidc trust-store config parameter name
- [#​32737](https://github.com/quarkusio/quarkus/pull/32737) - Make it possible to test Google OIDC from DevUI
- [#​32733](https://github.com/quarkusio/quarkus/pull/32733) - Fixed Java migrations from different packages
- [#​32729](https://github.com/quarkusio/quarkus/issues/32729) - quarkus.init-and-exit no longer works
- [#​32724](https://github.com/quarkusio/quarkus/issues/32724) - Undertow: Servlet context path failing with `_static` directory
- [#​32717](https://github.com/quarkusio/quarkus/pull/32717) - Get element type without annotations
- [#​32715](https://github.com/quarkusio/quarkus/pull/32715) - Throw better exception when REST Client receives invalid JSON
- [#​32711](https://github.com/quarkusio/quarkus/pull/32711) - Add service registars and loaders to the list of beans to keep
- [#​32710](https://github.com/quarkusio/quarkus/issues/32710) - Rest-client throw a "HTTP 400 Bad Request" instead of "Bad Response From Server"
- [#​32708](https://github.com/quarkusio/quarkus/pull/32708) - Dev UI Move info to menu item and format page for known items
- [#​32707](https://github.com/quarkusio/quarkus/pull/32707) - Bump yasson from 3.0.2 to 3.0.3
- [#​32704](https://github.com/quarkusio/quarkus/pull/32704) - Bump smallrye-mutiny-vertx-core from 3.2.0 to 3.3.0
- [#​32697](https://github.com/quarkusio/quarkus/pull/32697) - Fix OpenTelemetryJdbcInstrumentationTest flaky test
- [#​32696](https://github.com/quarkusio/quarkus/issues/32696) - Quarkus returns 404 on OPTIONS request for the static resources
- [#​32692](https://github.com/quarkusio/quarkus/pull/32692) - Allow ConfigMappings with default visibility
- [#​32690](https://github.com/quarkusio/quarkus/issues/32690) - Quarkus dev mode is not working with a certain type of folder tree due to dependency injection
- [#​32689](https://github.com/quarkusio/quarkus/pull/32689) - Make mailer beans default beans
- [#​32687](https://github.com/quarkusio/quarkus/pull/32687) - Upgrade to Hibernate ORM 6.2.1.Final
- [#​32683](https://github.com/quarkusio/quarkus/pull/32683) - Reinitialize BouncyCastle DRBG URLSeededEntropySourceProvider at runtime
- [#​32675](https://github.com/quarkusio/quarkus/pull/32675) - Dev UI: allow status to be a list
- [#​32673](https://github.com/quarkusio/quarkus/pull/32673) - Dev UI make sure to work on custom http root
- [#​32666](https://github.com/quarkusio/quarkus/issues/32666) - Get java.nio.file.InvalidPathException on Windows when compile Quarkus 3.0.0.Final Spring Cloud Config Client
- [#​32654](https://github.com/quarkusio/quarkus/issues/32654) - Flyway migration: JavaMigration doesn't respect location
- [#​32653](https://github.com/quarkusio/quarkus/pull/32653) - Qute build steps - refactoring and performance improvements
- [#​32651](https://github.com/quarkusio/quarkus/pull/32651) - Ensure the ServiceAccount/Role/ClusterRole resources are created in order
- [#​32650](https://github.com/quarkusio/quarkus/issues/32650) - Quarkus 3: Using `@TestReactiveTransaction` at the class level doesn't work
- [#​32648](https://github.com/quarkusio/quarkus/pull/32648) - ConcurrentAuthTest: Make sure executor is shut down even after failure
- [#​32645](https://github.com/quarkusio/quarkus/pull/32645) - Updates to Infinispan 14.0.8.Final
- [#​32644](https://github.com/quarkusio/quarkus/pull/32644) - Support blocking exception mappers in REST Client Reactive
- [#​32643](https://github.com/quarkusio/quarkus/issues/32643) - Quarkus doesn't support 2.2.5.Final apicurio-registry-mem anymore and documentation should provide compatibility info
- [#​32641](https://github.com/quarkusio/quarkus/pull/32641) - Fixed minor typos in doc content
- [#​32640](https://github.com/quarkusio/quarkus/issues/32640) - Openshift application has no access to secrets
- [#​32633](https://github.com/quarkusio/quarkus/pull/32633) - Bump microprofile-config-api from 3.0.2 to 3.0.3
- [#​32630](https://github.com/quarkusio/quarkus/pull/32630) - Bump mongodb-crypt from 1.7.1 to 1.7.3
- [#​32620](https://github.com/quarkusio/quarkus/pull/32620) - Upgrade to Hibernate Reactive 2.0.0.Beta2
- [#​32617](https://github.com/quarkusio/quarkus/pull/32617) - UniAsserterInterceptor - improve the javadoc and docs
- [#​32614](https://github.com/quarkusio/quarkus/pull/32614) - Implement new DevUI for Reactive REST Client
- [#​32613](https://github.com/quarkusio/quarkus/pull/32613) - Add CSS ids to DEV UI continuous testing page to help automated testing
- [#​32611](https://github.com/quarkusio/quarkus/pull/32611) - Add new security architecture diagram and process description to Security Architecture content
- [#​32610](https://github.com/quarkusio/quarkus/pull/32610) - Qute Dev UI improvements
- [#​32605](https://github.com/quarkusio/quarkus/pull/32605) - Support generation of ClusterRoleBinding resources
- [#​32602](https://github.com/quarkusio/quarkus/issues/32602) - Strange problem with Hibernate Reactive Panache in Quarkus 3.0.0.
- [#​32599](https://github.com/quarkusio/quarkus/issues/32599) - Dev UI: Complete Server log implementation.
- [#​32596](https://github.com/quarkusio/quarkus/issues/32596) - Dev UI: Migrate Rest client reactive to the new Dev UI
- [#​32589](https://github.com/quarkusio/quarkus/pull/32589) - Bump microprofile-config-tck from 3.0.2 to 3.0.3
- [#​32587](https://github.com/quarkusio/quarkus/pull/32587) - Bump com.gradle.enterprise from 3.12.6 to 3.13 in /devtools/gradle
- [#​32586](https://github.com/quarkusio/quarkus/pull/32586) - Validator for Config only
- [#​32585](https://github.com/quarkusio/quarkus/issues/32585) - Write "Update projects to Quarkus 3 automatically" guide
- [#​32584](https://github.com/quarkusio/quarkus/pull/32584) - Add JWT authentication tests to management-interface-auth
- [#​32583](https://github.com/quarkusio/quarkus/issues/32583) - New Dev UI show numbers in submenu for arc extension
- [#​32581](https://github.com/quarkusio/quarkus/issues/32581) - Quarkus 3.0.0.CR2 : DevUI error with custom root path
- [#​32580](https://github.com/quarkusio/quarkus/pull/32580) - Quartz - only notify QuartzSchedulerImpl.destroy() if the bean exists
- [#​32579](https://github.com/quarkusio/quarkus/pull/32579) - Update docs about spying on partial mocks
- [#​32576](https://github.com/quarkusio/quarkus/pull/32576) - AWT related .so libs needed in container
- [#​32573](https://github.com/quarkusio/quarkus/pull/32573) - Bump Keycloak version to 21.0.2
- [#​32572](https://github.com/quarkusio/quarkus/issues/32572) - Kubernetes - RBAC ClusterRoleBinding not generating correctly?
- [#​32571](https://github.com/quarkusio/quarkus/pull/32571) - Gradle integration tests: tackle (Windows) CI issues
- [#​32565](https://github.com/quarkusio/quarkus/pull/32565) - Fix Otel propagator for old property
- [#​32564](https://github.com/quarkusio/quarkus/pull/32564) - Remove useless leading spaces in sam YAML files
- [#​32563](https://github.com/quarkusio/quarkus/pull/32563) - Small UI fix to devservice page
- [#​32561](https://github.com/quarkusio/quarkus/pull/32561) - Properly perform reflection registration for `@Gauge` instances
- [#​32559](https://github.com/quarkusio/quarkus/pull/32559) - Disable flaky OpenTelemetry Jdbc instrumentation test
- [#​32558](https://github.com/quarkusio/quarkus/pull/32558) - Remove lambdas from OidcRecorder
- [#​32554](https://github.com/quarkusio/quarkus/pull/32554) - Bump mockito-core from 5.2.0 to 5.3.0
- [#​32538](https://github.com/quarkusio/quarkus/pull/32538) - Use local lookup policy for generated image stream resources
- [#​32533](https://github.com/quarkusio/quarkus/issues/32533) - Exceptions with Hibernate Reactive under load
- [#​32527](https://github.com/quarkusio/quarkus/pull/32527) - Update apicurio registry dependencies
- [#​32464](https://github.com/quarkusio/quarkus/issues/32464) - Spring Data API Extension not updating generic mapping
- [#​32427](https://github.com/quarkusio/quarkus/issues/32427) - Smallrye-metrics integration test fails when passing `-H:-ParseOnce` GraalVM option
- [#​32414](https://github.com/quarkusio/quarkus/issues/32414) - ERROR Being Logged In Quarkus 3.0.0.CR1 DevUIProcessor with camel-quarkus-twilio extension
- [#​32384](https://github.com/quarkusio/quarkus/pull/32384) - Provide an update guide
- [#​32332](https://github.com/quarkusio/quarkus/issues/32332) - Unknown enum constant org.osgi.annotation.bundle.Requirement.Resolution.OPTIONAL
- [#​32326](https://github.com/quarkusio/quarkus/issues/32326) - DevUI: Info change from Card to Menu
- [#​32210](https://github.com/quarkusio/quarkus/issues/32210) - Use of the `quarkus-opentelemetry` extension yields config warnings
- [#​31908](https://github.com/quarkusio/quarkus/issues/31908) - Add Management auth test confirming OIDC works for the main router only
- [#​31587](https://github.com/quarkusio/quarkus/issues/31587) - RESTEasy Reactive SSE doesn't provide method annotations, nor actual headers to `MessageBodyWriter`
- [#​31554](https://github.com/quarkusio/quarkus/issues/31554) - RunTimeMappingsConfigBuilder failures (native build/tests) with 2.16.4
- [#​31543](https://github.com/quarkusio/quarkus/issues/31543) - Improving the sam.jvm.yaml
- [#​30555](https://github.com/quarkusio/quarkus/issues/30555) - Quarkus jacoco coverage not working in a multi module project where code and tests are in separate modules
- [#​30312](https://github.com/quarkusio/quarkus/issues/30312) - Reactive Client ResponseExceptionMapper throws BlockingNotAllowedException when consuming an InputStream
- [#​29879](https://github.com/quarkusio/quarkus/issues/29879) - Create an opentelemetry-aws IT test project
- [#​28505](https://github.com/quarkusio/quarkus/pull/28505) - Support a silent mode for JWTAuthMechanism
- [#​24540](https://github.com/quarkusio/quarkus/issues/24540) - NullPointerException on custom consraint validator when injecting a config mapping at startup
### [`v3.0.0.Final`](https://github.com/quarkusio/quarkus/releases/tag/3.0.0.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/2.16.9.Final...3.0.0.Final)
##### Major changes
- [#​32491](https://github.com/quarkusio/quarkus/pull/32491) - Dev UI: Continuous testing
- [#​25422](https://github.com/quarkusio/quarkus/issues/25422) - Make Stork CDI-aware
##### Complete changelog
- [#​32560](https://github.com/quarkusio/quarkus/issues/32560) - quarkus plugin repeats arguments passed to cli rendering users incapable of passing right arguments
- [#​32555](https://github.com/quarkusio/quarkus/pull/32555) - Change pie to bar in continuous-testing dev ui
- [#​32553](https://github.com/quarkusio/quarkus/pull/32553) - Bump maven-invoker-plugin from 3.4.0 to 3.5.1
- [#​32543](https://github.com/quarkusio/quarkus/pull/32543) - Dev UI 2 - Hide the RESTEasy Reactive score on the home page
- [#​32542](https://github.com/quarkusio/quarkus/pull/32542) - Various fixes for Kubernetes Dev UI 2
- [#​32541](https://github.com/quarkusio/quarkus/pull/32541) - Remove inexistent relocations in the application BOM
- [#​32540](https://github.com/quarkusio/quarkus/issues/32540) - Dev Ui for kubernetes throws error on manifest generation
- [#​32536](https://github.com/quarkusio/quarkus/pull/32536) - Various Quarkus Update fixes and enhancements
- [#​32535](https://github.com/quarkusio/quarkus/pull/32535) - Gradle: do not pass all system properties
- [#​32528](https://github.com/quarkusio/quarkus/pull/32528) - Add triage rule for Dev UI
- [#​32524](https://github.com/quarkusio/quarkus/pull/32524) - Gradle: ability to disable worker process isolation, pass all envs+sys-props
- [#​32522](https://github.com/quarkusio/quarkus/issues/32522) - devui 2 continous testing layout issues
- [#​32521](https://github.com/quarkusio/quarkus/pull/32521) - ArC - optimize if no BuildCompatibleExtension is found
- [#​32520](https://github.com/quarkusio/quarkus/pull/32520) - Use list with an empty string by default in generated Role/ClusterRole
- [#​32519](https://github.com/quarkusio/quarkus/issues/32519) - Generating Role or ClusterRole resources with empty API group property produces invalid manifests
- [#​32518](https://github.com/quarkusio/quarkus/pull/32518) - Devui small enchancements
- [#​32509](https://github.com/quarkusio/quarkus/issues/32509) - Native `quarkusBuild` fails with 3.0.0.CR2
- [#​32508](https://github.com/quarkusio/quarkus/pull/32508) - Gradle-Plugin: Do not let Gradle build fail w/ configuration cache
- [#​32502](https://github.com/quarkusio/quarkus/pull/32502) - Disable Vert.x file caching when building the k8s client HttpClient.Factory
- [#​32499](https://github.com/quarkusio/quarkus/issues/32499) - Kubernetes client thread block
- [#​32497](https://github.com/quarkusio/quarkus/pull/32497) - Bump mongo-client.version from 4.9.0 to 4.9.1
- [#​32496](https://github.com/quarkusio/quarkus/pull/32496) - Bump smallrye-fault-tolerance.version from 6.2.1 to 6.2.2
- [#​32495](https://github.com/quarkusio/quarkus/pull/32495) - Bump com.gradle.plugin-publish from 1.1.0 to 1.2.0 in /devtools/gradle
- [#​32491](https://github.com/quarkusio/quarkus/pull/32491) - Dev UI: Continuous testing
- [#​32490](https://github.com/quarkusio/quarkus/pull/32490) - Avoid null pointer exception when building containers
- [#​32489](https://github.com/quarkusio/quarkus/pull/32489) - Upgrade Oracle DB container images to use the slim-faststart variant
- [#​32488](https://github.com/quarkusio/quarkus/pull/32488) - Higher timeouts for various builds
- [#​32487](https://github.com/quarkusio/quarkus/pull/32487) - Support referencing method parameters in `@ClientHeaderParam`
- [#​32478](https://github.com/quarkusio/quarkus/pull/32478) - Fix base-codestart 2.x
- [#​32476](https://github.com/quarkusio/quarkus/pull/32476) - Fix native image warning in Kafka
- [#​32472](https://github.com/quarkusio/quarkus/pull/32472) - Update getting started reactive image
- [#​32467](https://github.com/quarkusio/quarkus/pull/32467) - DevUI: Liquibase and Datasource updates
- [#​32465](https://github.com/quarkusio/quarkus/issues/32465) - Native build fails with 3.0.0.CR2
- [#​32461](https://github.com/quarkusio/quarkus/issues/32461) - Quarkus 3.0.0.CR2 - quarkus-kafka-client triggers NativeImageBuildStep in JVM mode
- [#​32458](https://github.com/quarkusio/quarkus/pull/32458) - Align deployment image name when custom name is set in Openshift configuration
- [#​32450](https://github.com/quarkusio/quarkus/pull/32450) - Bump flyway.version from 9.16.1 to 9.16.3
- [#​32448](https://github.com/quarkusio/quarkus/pull/32448) - Local cache upgrade
- [#​32443](https://github.com/quarkusio/quarkus/issues/32443) - DevUI: Configuration Changes Not Sticking
- [#​32439](https://github.com/quarkusio/quarkus/issues/32439) - Openshift resources getting out of sync when custom quarkus.openshift.name is used.
- [#​32437](https://github.com/quarkusio/quarkus/pull/32437) - Test default storage change for OffsetTime in Hibernate ORM 6.2.0.Final
- [#​32435](https://github.com/quarkusio/quarkus/pull/32435) - Upgrade the reference Oracle RDBMS container used across integration tests
- [#​32433](https://github.com/quarkusio/quarkus/pull/32433) - Fix Hibernate ORM value generators in native image
- [#​32430](https://github.com/quarkusio/quarkus/pull/32430) - Include ID in the form inputs
- [#​32428](https://github.com/quarkusio/quarkus/pull/32428) - Rename guides mentioning MicroProfile to SmallRye to avoid redirects
- [#​32425](https://github.com/quarkusio/quarkus/pull/32425) - Sanitize the behavior of provided ExceptionMapper classes in dev-mode
- [#​32423](https://github.com/quarkusio/quarkus/pull/32423) - Bump httpclient from 4.5.13 to 4.5.14
- [#​32418](https://github.com/quarkusio/quarkus/issues/32418) - Native build with jib and gradle fails on quarkus 3.0.0.CR1
- [#​32409](https://github.com/quarkusio/quarkus/pull/32409) - InjectMock should not mock an intercepted subclass
- [#​32407](https://github.com/quarkusio/quarkus/pull/32407) - Arc CDI TCK related fixes, focused around behavior gated behind strict mode
- [#​32404](https://github.com/quarkusio/quarkus/pull/32404) - Fix ConfigMap volumes example at deploying-to-openshift.adoc
- [#​32394](https://github.com/quarkusio/quarkus/pull/32394) - Test gRPC usage of Vert.x event loops
- [#​32366](https://github.com/quarkusio/quarkus/pull/32366) - Update version detection scheme for native
- [#​32357](https://github.com/quarkusio/quarkus/issues/32357) - Αllow referring to property parameters in header config of REST Client
- [#​32350](https://github.com/quarkusio/quarkus/pull/32350) - Gradle: Help extensions that assume the output directory exists
- [#​32338](https://github.com/quarkusio/quarkus/pull/32338) - Proofreading for cli-tooling.adoc
- [#​32333](https://github.com/quarkusio/quarkus/issues/32333) - Quarkus 3.0.0.CR1 throw NoSuchMethodException where use `@CreationTimestamp` and `@UpdateTimestamp` in native mode
- [#​32316](https://github.com/quarkusio/quarkus/pull/32316) - Update SmallRye Config to 3.2.1
- [#​32474](https://github.com/quarkusio/quarkus/issues/32474) - Quarkus 3 kotlin generation missconfigures allopen
- [#​32276](https://github.com/quarkusio/quarkus/pull/32276) - Switch Hibernate Search extension to `@ConfigMapping`
- [#​32233](https://github.com/quarkusio/quarkus/issues/32233) - Clicking on Dev UI main logo/title doesn't bring me to the home page
- [#​32230](https://github.com/quarkusio/quarkus/issues/32230) - Dev UI 2 - Fonts are blurry (Chrome / Fedora)
- [#​32162](https://github.com/quarkusio/quarkus/pull/32162) - Register implicit converters for reflection
- [#​31932](https://github.com/quarkusio/quarkus/issues/31932) - Dev UI 2 - generate-code gets maven-metadata.xml for Vaadin components
- [#​31898](https://github.com/quarkusio/quarkus/issues/31898) - Test and document default storage change for `OffsetTime` in Hibernate ORM 6
- [#​28065](https://github.com/quarkusio/quarkus/issues/28065) - ConfigMapping - register type arguments of supported generic return types for reflection
- [#​25422](https://github.com/quarkusio/quarkus/issues/25422) - Make Stork CDI-aware
- [#​18973](https://github.com/quarkusio/quarkus/issues/18973) - Java OOM Java heap space when I use WithKubernetesTestServer annotation in unit test
- [#​7883](https://github.com/quarkusio/quarkus/issues/7883) - built-in ExceptionMappers cause unexpected behavior
### [`v2.16.9.Final`](https://github.com/quarkusio/quarkus/releases/tag/2.16.9.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/2.16.8.Final...2.16.9.Final)
##### Complete changelog
- [#​34953](https://github.com/quarkusio/quarkus/pull/34953) - Generated docs: move DOM manipulation to build time
- [#​34820](https://github.com/quarkusio/quarkus/pull/34820) - Keep maven-repo artifact 7 days instead of 1
- [#​34804](https://github.com/quarkusio/quarkus/pull/34804) - Encode multi char code points correctly in RestEasy Reactive
- [#​34736](https://github.com/quarkusio/quarkus/issues/34736) - \[2.16] io.grpc:grpc-protobuf CVE-2023-1428 & CVE-2023-32731
- [#​34471](https://github.com/quarkusio/quarkus/pull/34471) - The Common Log Format requires the date to be wrapped into `[]`
- [#​32390](https://github.com/quarkusio/quarkus/pull/32390) - Fix copy paste typo
- [#​31518](https://github.com/quarkusio/quarkus/pull/31518) - Prevent ContextNotActiveException during invalid config validation if resteasy-reactive module is present
- [#​31434](https://github.com/quarkusio/quarkus/issues/31434) - Invalid config value prevents app to startup with invalid stacktrace instead of validation error message
- [#​31053](https://github.com/quarkusio/quarkus/pull/31053) - Bump grpc.version from 1.52.1 to 1.53.0
- [#​31010](https://github.com/quarkusio/quarkus/issues/31010) - HTTP access log %t missing enclosing brackets
- [#​30403](https://github.com/quarkusio/quarkus/pull/30403) - Bump grpc.version from 1.52.0 to 1.52.1
- [#​30323](https://github.com/quarkusio/quarkus/pull/30323) - Bump grpc.version from 1.51.1 to 1.52.0
- [#​10134](https://github.com/quarkusio/quarkus/issues/10134) - MicroProfile RestClient Encoding Failing for Emojis
### [`v2.16.8.Final`](https://github.com/quarkusio/quarkus/releases/tag/2.16.8.Final)
[Compare Source](https://github.com/quarkusio/quarkus/compare/2.16.7.Final...2.16.8.Final)
##### Complete changelog
- [#​34469](https://github.com/quarkusio/quarkus/pull/34469) - 2.16 - Enforce the configured TLS version
- [#​34371](https://github.com/quarkusio/quarkus/pull/34371) - gRPC route to use mainrouter when http.root-path is not '/'
- [#​34261](https://github.com/quarkusio/quarkus/issues/34261) - grpc service not working when use-separate-server is set to false and custom http.root-path is set
- [#​34142](https://github.com/quarkusio/quarkus/pull/34142) - Fix NPE in RunningDevService which represens a shared service
- [#​34105](https://github.com/quarkusio/quarkus/pull/34105) - Avoid calling OIDC UserInfo endpoint if UserInfo is cached
- [#​34104](https://github.com/quarkusio/quarkus/issues/34104) - OIDC will request UserInfo and TokenIntrospection even if they are cached
- [#​34034](https://github.com/quarkusio/quarkus/pull/34034) - Also include stream information in CLI project creation
- [#​33897](https://github.com/quarkusio/quarkus/issues/33897) - NPE with shared Keycloak dev services when exiting Quarkus dev mode
- [#​33595](https://github.com/quarkusio/quarkus/pull/33595) - Skip manifest entry properties that are missing values
- [#​33491](https://github.com/quarkusio/quarkus/pull/33491) - Ensure that cookies added in filters are visible to resource methods
- [#​33490](https://github.com/quarkusio/quarkus/issues/33490) - Cookies created in request filters are not accessible in Resource Methods
- [#​33448](https://github.com/quarkusio/quarkus/pull/33448) - Fix location and content location headers in Resteasy Reactive
- [#​33419](https://github.com/quarkusio/quarkus/issues/33419) - RESTEasy ResponseBuilder.location Inadvertently Decodes Path Segments in Relative URI
- [#​33128](https://github.com/quarkusio/quarkus/pull/33128) - Fix broken link so it points to the config-yaml guide
- [#​33127](https://github.com/quarkusio/quarkus/issues/33127) - Fix links to point to https://quarkus.io/guides/config-yaml
- [#​32932](https://github.com/quarkusio/quarkus/pull/32932) - Fix resteasy-reactive-client hostname verification default
</details>
<details>
<summary>quarkusio/quarkus-platform</summary>
### [`v3.2.3.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.2.2.Final...3.2.3.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.2.2.Final...3.2.3.Final)
### [`v3.2.2.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.2.1.Final...3.2.2.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.2.1.Final...3.2.2.Final)
### [`v3.2.1.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.2.0.Final...3.2.1.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.2.0.Final...3.2.1.Final)
### [`v3.2.0.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.1.3.Final...3.2.0.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.1.3.Final...3.2.0.Final)
### [`v3.1.3.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.1.2.Final...3.1.3.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.1.2.Final...3.1.3.Final)
### [`v3.1.2.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.1.1.Final...3.1.2.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.1.1.Final...3.1.2.Final)
### [`v3.1.1.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.1.0.Final...3.1.1.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.1.0.Final...3.1.1.Final)
### [`v3.1.0.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.0.4.Final...3.1.0.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.0.4.Final...3.1.0.Final)
### [`v3.0.4.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.0.3.Final...3.0.4.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.0.3.Final...3.0.4.Final)
### [`v3.0.3.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.0.2.Final...3.0.3.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.0.2.Final...3.0.3.Final)
### [`v3.0.2.Final`](https://github.com/quarkusio/quarkus-platform/compare/3.0.1.Final...3.0.2.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/3.0.1.Final...3.0.2.Final)
### [`v3.0.1.Final`](https://github.com/quarkusio/quarkus-platform/compare/2.16.9.Final...3.0.1.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/2.16.9.Final...3.0.1.Final)
### [`v2.16.9.Final`](https://github.com/quarkusio/quarkus-platform/compare/2.16.8.Final...2.16.9.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/2.16.8.Final...2.16.9.Final)
### [`v2.16.8.Final`](https://github.com/quarkusio/quarkus-platform/compare/2.16.7.Final...2.16.8.Final)
[Compare Source](https://github.com/quarkusio/quarkus-platform/compare/2.16.7.Final...2.16.8.Final)
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this MR and you won't be reminded about these updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box
---
This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNC4wIiwidXBkYXRlZEluVmVyIjoiMzQuMjQuMCJ9-->
87 files changed, 943 insertions, 1010 deletions
diff --git a/.mvn/wrapper/MavenWrapperDownloader.java b/.mvn/wrapper/MavenWrapperDownloader.java deleted file mode 100644 index b901097..0000000 --- a/.mvn/wrapper/MavenWrapperDownloader.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2007-present the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import java.net.*; -import java.io.*; -import java.nio.channels.*; -import java.util.Properties; - -public class MavenWrapperDownloader { - - private static final String WRAPPER_VERSION = "0.5.6"; - /** - * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. - */ - private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" - + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; - - /** - * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to - * use instead of the default one. - */ - private static final String MAVEN_WRAPPER_PROPERTIES_PATH = - ".mvn/wrapper/maven-wrapper.properties"; - - /** - * Path where the maven-wrapper.jar will be saved to. - */ - private static final String MAVEN_WRAPPER_JAR_PATH = - ".mvn/wrapper/maven-wrapper.jar"; - - /** - * Name of the property which should be used to override the default download url for the wrapper. - */ - private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; - - public static void main(String args[]) { - System.out.println("- Downloader started"); - File baseDirectory = new File(args[0]); - System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); - - // If the maven-wrapper.properties exists, read it and check if it contains a custom - // wrapperUrl parameter. - File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); - String url = DEFAULT_DOWNLOAD_URL; - if(mavenWrapperPropertyFile.exists()) { - FileInputStream mavenWrapperPropertyFileInputStream = null; - try { - mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); - Properties mavenWrapperProperties = new Properties(); - mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); - url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); - } catch (IOException e) { - System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); - } finally { - try { - if(mavenWrapperPropertyFileInputStream != null) { - mavenWrapperPropertyFileInputStream.close(); - } - } catch (IOException e) { - // Ignore ... - } - } - } - System.out.println("- Downloading from: " + url); - - File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); - if(!outputFile.getParentFile().exists()) { - if(!outputFile.getParentFile().mkdirs()) { - System.out.println( - "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); - } - } - System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); - try { - downloadFileFromURL(url, outputFile); - System.out.println("Done"); - System.exit(0); - } catch (Throwable e) { - System.out.println("- Error downloading"); - e.printStackTrace(); - System.exit(1); - } - } - - private static void downloadFileFromURL(String urlString, File destination) throws Exception { - if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { - String username = System.getenv("MVNW_USERNAME"); - char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); - Authenticator.setDefault(new Authenticator() { - @Override - protected PasswordAuthentication getPasswordAuthentication() { - return new PasswordAuthentication(username, password); - } - }); - } - URL website = new URL(urlString); - ReadableByteChannel rbc; - rbc = Channels.newChannel(website.openStream()); - FileOutputStream fos = new FileOutputStream(destination); - fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); - fos.close(); - rbc.close(); - } - -} diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar Binary files differindex 2cc7d4a..cb28b0e 100644 --- a/.mvn/wrapper/maven-wrapper.jar +++ b/.mvn/wrapper/maven-wrapper.jar diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 642d572..6d3a566 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1,2 +1,18 @@ -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip -wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar @@ -19,7 +19,7 @@ # ---------------------------------------------------------------------------- # ---------------------------------------------------------------------------- -# Maven Start Up Batch script +# Apache Maven Wrapper startup batch script, version 3.2.0 # # Required ENV vars: # ------------------ @@ -27,7 +27,6 @@ # # Optional ENV vars # ----------------- -# M2_HOME - location of maven2's installed home dir # MAVEN_OPTS - parameters passed to the Java VM when running Maven # e.g. to debug Maven itself, use # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 @@ -36,6 +35,10 @@ if [ -z "$MAVEN_SKIP_RC" ] ; then + if [ -f /usr/local/etc/mavenrc ] ; then + . /usr/local/etc/mavenrc + fi + if [ -f /etc/mavenrc ] ; then . /etc/mavenrc fi @@ -50,7 +53,7 @@ fi cygwin=false; darwin=false; mingw=false -case "`uname`" in +case "$(uname)" in CYGWIN*) cygwin=true ;; MINGW*) mingw=true;; Darwin*) darwin=true @@ -58,9 +61,9 @@ case "`uname`" in # See https://developer.apple.com/library/mac/qa/qa1170/_index.html if [ -z "$JAVA_HOME" ]; then if [ -x "/usr/libexec/java_home" ]; then - export JAVA_HOME="`/usr/libexec/java_home`" + JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME else - export JAVA_HOME="/Library/Java/Home" + JAVA_HOME="/Library/Java/Home"; export JAVA_HOME fi fi ;; @@ -68,68 +71,38 @@ esac if [ -z "$JAVA_HOME" ] ; then if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=`java-config --jre-home` + JAVA_HOME=$(java-config --jre-home) fi fi -if [ -z "$M2_HOME" ] ; then - ## resolve links - $0 may be a link to maven's home - PRG="$0" - - # need this for relative symlinks - while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG="`dirname "$PRG"`/$link" - fi - done - - saveddir=`pwd` - - M2_HOME=`dirname "$PRG"`/.. - - # make it fully qualified - M2_HOME=`cd "$M2_HOME" && pwd` - - cd "$saveddir" - # echo Using m2 at $M2_HOME -fi - # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --unix "$M2_HOME"` [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + JAVA_HOME=$(cygpath --unix "$JAVA_HOME") [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --unix "$CLASSPATH"` + CLASSPATH=$(cygpath --path --unix "$CLASSPATH") fi # For Mingw, ensure paths are in UNIX format before anything is touched if $mingw ; then - [ -n "$M2_HOME" ] && - M2_HOME="`(cd "$M2_HOME"; pwd)`" - [ -n "$JAVA_HOME" ] && - JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] && + JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)" fi if [ -z "$JAVA_HOME" ]; then - javaExecutable="`which javac`" - if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + javaExecutable="$(which javac)" + if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then # readlink(1) is not available as standard on Solaris 10. - readLink=`which readlink` - if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + readLink=$(which readlink) + if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then if $darwin ; then - javaHome="`dirname \"$javaExecutable\"`" - javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + javaHome="$(dirname "\"$javaExecutable\"")" + javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac" else - javaExecutable="`readlink -f \"$javaExecutable\"`" + javaExecutable="$(readlink -f "\"$javaExecutable\"")" fi - javaHome="`dirname \"$javaExecutable\"`" - javaHome=`expr "$javaHome" : '\(.*\)/bin'` + javaHome="$(dirname "\"$javaExecutable\"")" + javaHome=$(expr "$javaHome" : '\(.*\)/bin') JAVA_HOME="$javaHome" export JAVA_HOME fi @@ -145,7 +118,7 @@ if [ -z "$JAVACMD" ] ; then JAVACMD="$JAVA_HOME/bin/java" fi else - JAVACMD="`which java`" + JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)" fi fi @@ -159,12 +132,9 @@ if [ -z "$JAVA_HOME" ] ; then echo "Warning: JAVA_HOME environment variable is not set." fi -CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher - # traverses directory structure from process work directory to filesystem root # first directory with .mvn subdirectory is considered project base directory find_maven_basedir() { - if [ -z "$1" ] then echo "Path not specified to find_maven_basedir" @@ -180,96 +150,99 @@ find_maven_basedir() { fi # workaround for JBEAP-8937 (on Solaris 10/Sparc) if [ -d "${wdir}" ]; then - wdir=`cd "$wdir/.."; pwd` + wdir=$(cd "$wdir/.." || exit 1; pwd) fi # end of workaround done - echo "${basedir}" + printf '%s' "$(cd "$basedir" || exit 1; pwd)" } # concatenates all lines of a file concat_lines() { if [ -f "$1" ]; then - echo "$(tr -s '\n' ' ' < "$1")" + # Remove \r in case we run on Windows within Git Bash + # and check out the repository with auto CRLF management + # enabled. Otherwise, we may read lines that are delimited with + # \r\n and produce $'-Xarg\r' rather than -Xarg due to word + # splitting rules. + tr -s '\r\n' ' ' < "$1" + fi +} + +log() { + if [ "$MVNW_VERBOSE" = true ]; then + printf '%s\n' "$1" fi } -BASE_DIR=`find_maven_basedir "$(pwd)"` +BASE_DIR=$(find_maven_basedir "$(dirname "$0")") if [ -z "$BASE_DIR" ]; then exit 1; fi +MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR +log "$MAVEN_PROJECTBASEDIR" + ########################################################################################## # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central # This allows using the maven wrapper in projects that prohibit checking in binary data. ########################################################################################## -if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found .mvn/wrapper/maven-wrapper.jar" - fi +wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" +if [ -r "$wrapperJarPath" ]; then + log "Found $wrapperJarPath" else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." - fi + log "Couldn't find $wrapperJarPath, downloading it ..." + if [ -n "$MVNW_REPOURL" ]; then - jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" else - jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" fi - while IFS="=" read key value; do - case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + while IFS="=" read -r key value; do + # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' ) + safeValue=$(echo "$value" | tr -d '\r') + case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;; esac - done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" - if [ "$MVNW_VERBOSE" = true ]; then - echo "Downloading from: $jarUrl" - fi - wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" + log "Downloading from: $wrapperUrl" + if $cygwin; then - wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath") fi if command -v wget > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found wget ... using wget" - fi + log "Found wget ... using wget" + [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet" if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget "$jarUrl" -O "$wrapperJarPath" + wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" else - wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" + wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" fi elif command -v curl > /dev/null; then - if [ "$MVNW_VERBOSE" = true ]; then - echo "Found curl ... using curl" - fi + log "Found curl ... using curl" + [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent" if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl -o "$wrapperJarPath" "$jarUrl" -f + curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" else - curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" fi - else - if [ "$MVNW_VERBOSE" = true ]; then - echo "Falling back to using Java to download" - fi - javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + log "Falling back to using Java to download" + javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java" + javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class" # For Cygwin, switch paths to Windows format before running javac if $cygwin; then - javaClass=`cygpath --path --windows "$javaClass"` + javaSource=$(cygpath --path --windows "$javaSource") + javaClass=$(cygpath --path --windows "$javaClass") fi - if [ -e "$javaClass" ]; then - if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Compiling MavenWrapperDownloader.java ..." - fi - # Compiling the Java class - ("$JAVA_HOME/bin/javac" "$javaClass") + if [ -e "$javaSource" ]; then + if [ ! -e "$javaClass" ]; then + log " - Compiling MavenWrapperDownloader.java ..." + ("$JAVA_HOME/bin/javac" "$javaSource") fi - if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then - # Running the downloader - if [ "$MVNW_VERBOSE" = true ]; then - echo " - Running MavenWrapperDownloader.java ..." - fi - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + if [ -e "$javaClass" ]; then + log " - Running MavenWrapperDownloader.java ..." + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath" fi fi fi @@ -278,33 +251,58 @@ fi # End of extension ########################################################################################## -export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} -if [ "$MVNW_VERBOSE" = true ]; then - echo $MAVEN_PROJECTBASEDIR +# If specified, validate the SHA-256 sum of the Maven wrapper jar file +wrapperSha256Sum="" +while IFS="=" read -r key value; do + case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;; + esac +done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" +if [ -n "$wrapperSha256Sum" ]; then + wrapperSha256Result=false + if command -v sha256sum > /dev/null; then + if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then + wrapperSha256Result=true + fi + elif command -v shasum > /dev/null; then + if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then + wrapperSha256Result=true + fi + else + echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." + echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." + exit 1 + fi + if [ $wrapperSha256Result = false ]; then + echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2 + echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2 + echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2 + exit 1 + fi fi + MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" # For Cygwin, switch paths to Windows format before running java if $cygwin; then - [ -n "$M2_HOME" ] && - M2_HOME=`cygpath --path --windows "$M2_HOME"` [ -n "$JAVA_HOME" ] && - JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME") [ -n "$CLASSPATH" ] && - CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + CLASSPATH=$(cygpath --path --windows "$CLASSPATH") [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` + MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR") fi # Provide a "standardized" way to retrieve the CLI args that will # work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*" export MAVEN_CMD_LINE_ARGS WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain +# shellcheck disable=SC2086 # safe args exec "$JAVACMD" \ $MAVEN_OPTS \ + $MAVEN_DEBUG_OPTS \ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" @@ -1,182 +1,205 @@ -@REM ---------------------------------------------------------------------------- -@REM Licensed to the Apache Software Foundation (ASF) under one -@REM or more contributor license agreements. See the NOTICE file -@REM distributed with this work for additional information -@REM regarding copyright ownership. The ASF licenses this file -@REM to you under the Apache License, Version 2.0 (the -@REM "License"); you may not use this file except in compliance -@REM with the License. You may obtain a copy of the License at -@REM -@REM http://www.apache.org/licenses/LICENSE-2.0 -@REM -@REM Unless required by applicable law or agreed to in writing, -@REM software distributed under the License is distributed on an -@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -@REM KIND, either express or implied. See the License for the -@REM specific language governing permissions and limitations -@REM under the License. -@REM ---------------------------------------------------------------------------- - -@REM ---------------------------------------------------------------------------- -@REM Maven Start Up Batch script -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir -@REM -@REM Optional ENV vars -@REM M2_HOME - location of maven2's installed home dir -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files -@REM ---------------------------------------------------------------------------- - -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" -if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" - -FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %DOWNLOAD_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" -if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%" == "on" pause - -if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% - -exit /B %ERROR_CODE% +@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Apache Maven Wrapper startup batch script, version 3.2.0
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %WRAPPER_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
+SET WRAPPER_SHA_256_SUM=""
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
+)
+IF NOT %WRAPPER_SHA_256_SUM%=="" (
+ powershell -Command "&{"^
+ "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
+ "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
+ " Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
+ " Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
+ " Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
+ " exit 1;"^
+ "}"^
+ "}"
+ if ERRORLEVEL 1 goto error
+)
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
@@ -24,7 +24,7 @@ <compiler-plugin.version>3.11.0</compiler-plugin.version> <enforcer-plugin.version>3.3.0</enforcer-plugin.version> <processor-plugin.version>4.2</processor-plugin.version> - <quarkus.version>2.16.7.Final</quarkus.version> + <quarkus.version>3.2.3.Final</quarkus.version> <resources-plugin.version>3.3.1</resources-plugin.version> <spotless-plugin.version>2.36.0</spotless-plugin.version> @@ -32,11 +32,12 @@ <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id> <basic-annotations.version>0.2.0</basic-annotations.version> + <blaze-persistence.version>1.6.9</blaze-persistence.version> <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version> <flexmark.version>0.64.4</flexmark.version> <google.java.format.version>1.15.0</google.java.format.version> - <hibernate.version>5.6.15.Final</hibernate.version> - <hibernate-types.version>2.21.1</hibernate-types.version> + <hibernate.version>6.2.7.Final</hibernate.version> + <hibernate-types.version>3.5.1</hibernate-types.version> <jakarta-jacc-api.version>1.6.1</jakarta-jacc-api.version> <jna.version>5.13.0</jna.version> <jsoup.version>1.16.1</jsoup.version> @@ -57,10 +58,18 @@ <scope>import</scope> </dependency> + <dependency> + <groupId>com.blazebit</groupId> + <artifactId>blaze-persistence-bom</artifactId> + <version>${blaze-persistence.version}</version> + <type>pom</type> + <scope>import</scope> + </dependency> + <!-- Hibernate PostgreSQL Extra Types --> <dependency> - <groupId>com.vladmihalcea</groupId> - <artifactId>hibernate-types-55</artifactId> + <groupId>io.hypersistence</groupId> + <artifactId>hypersistence-utils-hibernate-62</artifactId> <version>${hibernate-types.version}</version> </dependency> @@ -203,11 +212,11 @@ <!-- Quarkus universe --> <dependency> <groupId>com.blazebit</groupId> - <artifactId>blaze-persistence-integration-quarkus</artifactId> + <artifactId>blaze-persistence-integration-quarkus-3</artifactId> </dependency> <dependency> <groupId>com.blazebit</groupId> - <artifactId>blaze-persistence-integration-hibernate-5.6</artifactId> + <artifactId>blaze-persistence-integration-hibernate-6.2</artifactId> <scope>runtime</scope> </dependency> <dependency> @@ -234,8 +243,8 @@ <!-- Hibernate PostgreSQL Extra Types --> <dependency> - <groupId>com.vladmihalcea</groupId> - <artifactId>hibernate-types-55</artifactId> + <groupId>io.hypersistence</groupId> + <artifactId>hypersistence-utils-hibernate-62</artifactId> </dependency> <!-- Annotations --> @@ -277,9 +286,8 @@ <!-- Hibernate --> <dependency> - <groupId>org.hibernate</groupId> + <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-jpamodelgen</artifactId> - <version>${hibernate.version}</version> <scope>provided</scope> </dependency> @@ -345,17 +353,17 @@ <version>${liquibase.version}</version> </dependency> <dependency> - <groupId>org.hibernate</groupId> + <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-core</artifactId> <version>${hibernate.version}</version> </dependency> <dependency> - <groupId>org.hibernate</groupId> + <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>${hibernate.version}</version> </dependency> <dependency> - <groupId>org.hibernate</groupId> + <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-envers</artifactId> <version>${hibernate.version}</version> </dependency> diff --git a/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKey.java b/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKey.java index 05e4bb5..c794b14 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKey.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKey.java @@ -2,15 +2,15 @@ package eu.mulk.mulkcms2.benki.accesscontrol; import eu.mulk.mulkcms2.benki.users.User; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.math.BigInteger; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "page_keys", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKeyPK.java b/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKeyPK.java index f79686f..71393a2 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKeyPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/PageKeyPK.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.benki.accesscontrol; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.math.BigInteger; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class PageKeyPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/Role.java b/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/Role.java index 1d66939..e07765a 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/Role.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/accesscontrol/Role.java @@ -4,24 +4,24 @@ import eu.mulk.mulkcms2.benki.posts.PostTarget; import eu.mulk.mulkcms2.benki.users.User; import eu.mulk.mulkcms2.benki.users.UserRole; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import java.util.Collection; import java.util.Objects; import java.util.Set; import javax.annotation.CheckForNull; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.Table; import org.hibernate.annotations.LazyToOne; import org.hibernate.annotations.LazyToOneOption; diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java index 256c988..25fe683 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/Bookmark.java @@ -1,15 +1,15 @@ package eu.mulk.mulkcms2.benki.bookmarks; import eu.mulk.mulkcms2.benki.posts.Post; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.Table; import java.util.Set; import javax.annotation.CheckForNull; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.Table; @Entity @Table(name = "bookmarks", schema = "benki") @@ -60,6 +60,7 @@ public class Bookmark extends Post<BookmarkText> { if (text == null) { text = new BookmarkText(); text.post = this; + text.postId = id; text.language = ""; texts.put(text.language, text); } @@ -72,6 +73,7 @@ public class Bookmark extends Post<BookmarkText> { if (text == null) { text = new BookmarkText(); text.post = this; + text.postId = id; text.language = ""; texts.put(text.language, text); } diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java index a2d8831..4d08298 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.benki.bookmarks; -import static javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; -import static javax.ws.rs.core.MediaType.MULTIPART_FORM_DATA; -import static javax.ws.rs.core.MediaType.TEXT_HTML; -import static javax.ws.rs.core.MediaType.WILDCARD; +import static jakarta.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.MULTIPART_FORM_DATA; +import static jakarta.ws.rs.core.MediaType.TEXT_HTML; +import static jakarta.ws.rs.core.MediaType.WILDCARD; import eu.mulk.mulkcms2.benki.posts.Post; import eu.mulk.mulkcms2.benki.posts.PostFilter; @@ -12,6 +12,21 @@ import eu.mulk.mulkcms2.benki.posts.PostResource; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; import io.quarkus.security.Authenticated; +import jakarta.json.JsonObject; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Response; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; @@ -20,21 +35,6 @@ import java.time.OffsetDateTime; import java.util.Objects; import java.util.Set; import javax.annotation.CheckForNull; -import javax.json.JsonObject; -import javax.transaction.Transactional; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.ForbiddenException; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Response; import org.jsoup.Jsoup; @Path("/bookmarks") @@ -68,14 +68,15 @@ public class BookmarkResource extends PostResource { var bookmark = new Bookmark(); bookmark.uri = uri.toString(); bookmark.tags = Set.of(); - bookmark.setTitle(title); - bookmark.setDescription(description); bookmark.owner = user; bookmark.date = OffsetDateTime.now(); - assignPostTargets(visibility, user, bookmark); + bookmark.persist(); - bookmark.persistAndFlush(); + bookmark.setTitle(title); + bookmark.setDescription(description); + + assignPostTargets(visibility, user, bookmark); return Response.seeOther(new URI("/bookmarks")).build(); } diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkText.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkText.java index 06ea299..019dce5 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkText.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkText.java @@ -1,11 +1,11 @@ package eu.mulk.mulkcms2.benki.bookmarks; import eu.mulk.mulkcms2.benki.posts.PostText; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; +import jakarta.persistence.Transient; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; -import javax.persistence.Transient; @Entity @Table(name = "bookmark_texts", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkTextPK.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkTextPK.java index 92bda99..d6f529e 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkTextPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkTextPK.java @@ -1,12 +1,12 @@ package eu.mulk.mulkcms2.benki.bookmarks; +import jakarta.persistence.Column; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; public class BookmarkTextPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessage.java b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessage.java index 7f6ed3b..40788d5 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessage.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessage.java @@ -1,14 +1,14 @@ package eu.mulk.mulkcms2.benki.lazychat; import eu.mulk.mulkcms2.benki.posts.Post; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; import java.util.Collection; import javax.annotation.CheckForNull; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; @Entity @Table(name = "lazychat_messages", schema = "benki") @@ -50,6 +50,7 @@ public class LazychatMessage extends Post<LazychatMessageText> { if (text == null) { text = new LazychatMessageText(); text.post = this; + text.postId = id; text.language = ""; texts.put(text.language, text); } diff --git a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageText.java b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageText.java index 72bb983..1a84909 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageText.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageText.java @@ -1,11 +1,11 @@ package eu.mulk.mulkcms2.benki.lazychat; import eu.mulk.mulkcms2.benki.posts.PostText; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; @Entity @Table(name = "lazychat_message_texts", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageTextPK.java b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageTextPK.java index 33063b1..b9861e1 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageTextPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatMessageTextPK.java @@ -1,12 +1,12 @@ package eu.mulk.mulkcms2.benki.lazychat; +import jakarta.persistence.Column; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; public class LazychatMessageTextPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java index 270a3d0..e93f7de 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/lazychat/LazychatResource.java @@ -1,29 +1,29 @@ package eu.mulk.mulkcms2.benki.lazychat; -import static javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; -import static javax.ws.rs.core.MediaType.MULTIPART_FORM_DATA; -import static javax.ws.rs.core.MediaType.WILDCARD; +import static jakarta.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; +import static jakarta.ws.rs.core.MediaType.MULTIPART_FORM_DATA; +import static jakarta.ws.rs.core.MediaType.WILDCARD; import eu.mulk.mulkcms2.benki.posts.Post; import eu.mulk.mulkcms2.benki.posts.PostFilter; import eu.mulk.mulkcms2.benki.posts.PostResource; import io.quarkus.security.Authenticated; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotNull; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import java.net.URI; import java.net.URISyntaxException; import java.security.NoSuchAlgorithmException; import java.time.OffsetDateTime; import java.util.Objects; -import javax.transaction.Transactional; -import javax.validation.constraints.NotNull; -import javax.ws.rs.Consumes; -import javax.ws.rs.ForbiddenException; -import javax.ws.rs.FormParam; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; @Path("/lazychat") public class LazychatResource extends PostResource { @@ -45,13 +45,13 @@ public class LazychatResource extends PostResource { var user = Objects.requireNonNull(getCurrentUser()); var message = new LazychatMessage(); - message.setContent(text); message.owner = user; message.date = OffsetDateTime.now(); - assignPostTargets(visibility, user, message); + message.persist(); + message.setContent(text); - message.persistAndFlush(); + assignPostTargets(visibility, user, message); return Response.seeOther(new URI("/lazychat")).build(); } diff --git a/src/main/java/eu/mulk/mulkcms2/benki/login/LoginResource.java b/src/main/java/eu/mulk/mulkcms2/benki/login/LoginResource.java index 6ab9c70..d51e77c 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/login/LoginResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/login/LoginResource.java @@ -1,13 +1,13 @@ package eu.mulk.mulkcms2.benki.login; import io.quarkus.security.Authenticated; +import jakarta.ws.rs.DefaultValue; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; import java.net.URI; import java.net.URISyntaxException; -import javax.ws.rs.DefaultValue; -import javax.ws.rs.GET; -import javax.ws.rs.HeaderParam; -import javax.ws.rs.Path; -import javax.ws.rs.core.Response; @Path("/login") public class LoginResource { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/login/LoginStatus.java b/src/main/java/eu/mulk/mulkcms2/benki/login/LoginStatus.java index a217dba..da3bed7 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/login/LoginStatus.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/login/LoginStatus.java @@ -2,9 +2,9 @@ package eu.mulk.mulkcms2.benki.login; import io.quarkus.qute.TemplateData; import io.quarkus.security.identity.SecurityIdentity; -import javax.enterprise.context.RequestScoped; -import javax.inject.Inject; -import javax.inject.Named; +import jakarta.enterprise.context.RequestScoped; +import jakarta.inject.Inject; +import jakarta.inject.Named; @Named("LoginStatus") @RequestScoped diff --git a/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java b/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java index 37d865f..2557306 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/login/RoleAugmentor.java @@ -8,11 +8,11 @@ import io.quarkus.security.identity.SecurityIdentity; import io.quarkus.security.identity.SecurityIdentityAugmentor; import io.quarkus.security.runtime.QuarkusSecurityIdentity; import io.smallrye.mutiny.Uni; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.transaction.Transactional; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; -import javax.enterprise.context.ApplicationScoped; -import javax.transaction.Transactional; @ApplicationScoped public class RoleAugmentor implements SecurityIdentityAugmentor { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/MailRouter.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/MailRouter.java index 1d6ea5c..3084115 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/MailRouter.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/MailRouter.java @@ -1,7 +1,7 @@ package eu.mulk.mulkcms2.benki.newsletter; -import javax.enterprise.context.Dependent; -import javax.inject.Inject; +import jakarta.enterprise.context.Dependent; +import jakarta.inject.Inject; import org.apache.camel.builder.RouteBuilder; import org.eclipse.microprofile.config.inject.ConfigProperty; diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/Newsletter.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/Newsletter.java index 3d9a3fe..aaac084 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/Newsletter.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/Newsletter.java @@ -2,15 +2,15 @@ package eu.mulk.mulkcms2.benki.newsletter; import eu.mulk.mulkcms2.benki.posts.Post; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; import java.time.OffsetDateTime; import java.util.Collection; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; @Entity @Table(name = "newsletters", schema = "benki") @@ -23,7 +23,7 @@ public class Newsletter extends PanacheEntityBase { @Column(name = "date", nullable = false) public OffsetDateTime date = OffsetDateTime.now(); - @OneToMany(mappedBy = "owner", fetch = FetchType.LAZY) + @OneToMany(mappedBy = "newsletter", fetch = FetchType.LAZY) @OrderBy("date") public Collection<Post<?>> posts; } diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterResource.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterResource.java index 3ad24af..cceddb1 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterResource.java @@ -1,19 +1,19 @@ package eu.mulk.mulkcms2.benki.newsletter; -import static javax.ws.rs.core.MediaType.TEXT_HTML; +import static jakarta.ws.rs.core.MediaType.TEXT_HTML; import io.quarkus.mailer.MailTemplate.MailTemplateInstance; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; -import javax.transaction.Transactional; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; @Path("/newsletter") @Produces(TEXT_HTML) diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java index 949d127..ae1ef9e 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSender.java @@ -11,6 +11,10 @@ import io.quarkus.panache.common.Sort; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateExtension; import io.quarkus.scheduler.Scheduled; +import jakarta.enterprise.context.Dependent; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; +import jakarta.transaction.Transactional; import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.ZoneId; @@ -21,13 +25,8 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import javax.annotation.CheckForNull; -import javax.enterprise.context.Dependent; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hibernate.Session; -import org.hibernate.annotations.QueryHints; @Dependent public class NewsletterSender { @@ -65,7 +64,6 @@ public class NewsletterSender { AND tag = 'world' """, Sort.ascending("date")) - .withHint(QueryHints.PASS_DISTINCT_THROUGH, false) .list(); Post.fetchTexts(posts); diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscription.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscription.java index cd50b2e..911a445 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscription.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscription.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.benki.newsletter; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import jakarta.validation.constraints.Email; import java.math.BigInteger; import java.security.SecureRandom; import java.time.OffsetDateTime; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import javax.validation.constraints.Email; import org.hibernate.annotations.NaturalId; @Entity diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscriptionExpirer.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscriptionExpirer.java index 6bc54b8..4d29c25 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscriptionExpirer.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterSubscriptionExpirer.java @@ -2,9 +2,9 @@ package eu.mulk.mulkcms2.benki.newsletter; import eu.mulk.mulkcms2.common.logging.Messages; import io.quarkus.scheduler.Scheduled; +import jakarta.enterprise.context.Dependent; +import jakarta.transaction.Transactional; import java.time.OffsetDateTime; -import javax.enterprise.context.Dependent; -import javax.transaction.Transactional; @Dependent public class NewsletterSubscriptionExpirer { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterUnsubscriber.java b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterUnsubscriber.java index 294127f..c4139d8 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterUnsubscriber.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/newsletter/NewsletterUnsubscriber.java @@ -3,12 +3,12 @@ package eu.mulk.mulkcms2.benki.newsletter; import eu.mulk.mulkcms2.common.logging.Messages; import io.quarkus.mailer.MailTemplate.MailTemplateInstance; import io.quarkus.qute.CheckedTemplate; +import jakarta.enterprise.context.Dependent; +import jakarta.mail.internet.InternetAddress; +import jakarta.transaction.Transactional; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import javax.enterprise.context.Dependent; -import javax.mail.internet.InternetAddress; -import javax.transaction.Transactional; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.component.mail.MailMessage; diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java index 4047b9e..b934408 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java @@ -1,7 +1,7 @@ package eu.mulk.mulkcms2.benki.posts; +import jakarta.ws.rs.Path; import java.security.NoSuchAlgorithmException; -import javax.ws.rs.Path; @Path("/posts") public class AllPostsResource extends PostResource { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java index c2f3dbc..b0aa615 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java @@ -4,13 +4,36 @@ import static java.util.stream.Collectors.toList; import com.blazebit.persistence.CriteriaBuilder; import com.blazebit.persistence.CriteriaBuilderFactory; -import com.vladmihalcea.hibernate.type.basic.PostgreSQLEnumType; import eu.mulk.mulkcms2.benki.accesscontrol.Role; import eu.mulk.mulkcms2.benki.bookmarks.Bookmark; import eu.mulk.mulkcms2.benki.lazychat.LazychatMessage; import eu.mulk.mulkcms2.benki.newsletter.Newsletter; import eu.mulk.mulkcms2.benki.users.User; +import io.hypersistence.utils.hibernate.type.basic.PostgreSQLEnumType; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.annotation.Nullable; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKey; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.ArrayList; @@ -24,37 +47,12 @@ import java.util.Set; import java.util.TimeZone; import java.util.stream.Collectors; import javax.annotation.CheckForNull; -import javax.annotation.Nullable; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.EnumType; -import javax.persistence.Enumerated; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKey; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.SequenceGenerator; -import javax.persistence.Table; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; import org.hibernate.annotations.Where; @Entity @Table(name = "posts", schema = "benki") @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) -@TypeDef(name = "pg_enum", typeClass = PostgreSQLEnumType.class) public abstract class Post<Text extends PostText<?>> extends PanacheEntityBase { public enum Scope { @@ -76,9 +74,9 @@ public abstract class Post<Text extends PostText<?>> extends PanacheEntityBase { @CheckForNull public OffsetDateTime date; - @Column(nullable = false) + @Column(nullable = false, columnDefinition = "benki.post_scope") @Enumerated(EnumType.STRING) - @Type(type = "pg_enum") + @Type(PostgreSQLEnumType.class) public Scope scope = Scope.top_level; @ManyToOne(fetch = FetchType.LAZY) @@ -155,7 +153,7 @@ public abstract class Post<Text extends PostText<?>> extends PanacheEntityBase { } } - protected static <T extends Post> CriteriaBuilder<T> queryViewable( + protected static <T extends Post<?>> CriteriaBuilder<T> queryViewable( Class<T> entityClass, @CheckForNull User reader, @CheckForNull User owner, diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java index c8d7657..0be31d7 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.benki.posts; +import static jakarta.ws.rs.core.MediaType.APPLICATION_ATOM_XML; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.TEXT_HTML; +import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN; import static java.nio.charset.StandardCharsets.UTF_8; -import static javax.ws.rs.core.MediaType.APPLICATION_ATOM_XML; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; -import static javax.ws.rs.core.MediaType.TEXT_HTML; -import static javax.ws.rs.core.MediaType.TEXT_PLAIN; import com.blazebit.persistence.CriteriaBuilderFactory; import com.rometools.rome.feed.atom.Content; @@ -26,6 +26,27 @@ import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; import io.quarkus.security.identity.SecurityIdentity; import io.smallrye.mutiny.Uni; +import jakarta.annotation.Nullable; +import jakarta.inject.Inject; +import jakarta.json.spi.JsonProvider; +import jakarta.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; +import jakarta.transaction.Transactional; +import jakarta.validation.constraints.NotEmpty; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; +import jakarta.ws.rs.core.UriBuilder; +import jakarta.ws.rs.core.UriInfo; import java.math.BigInteger; import java.net.URI; import java.net.URLEncoder; @@ -47,27 +68,6 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import java.util.stream.Collectors; import javax.annotation.CheckForNull; -import javax.annotation.Nullable; -import javax.inject.Inject; -import javax.json.spi.JsonProvider; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; -import javax.transaction.Transactional; -import javax.validation.constraints.NotEmpty; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.ForbiddenException; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; -import javax.ws.rs.core.UriBuilder; -import javax.ws.rs.core.UriInfo; import org.eclipse.microprofile.config.inject.ConfigProperty; import org.hibernate.Session; import org.jsoup.Jsoup; @@ -325,9 +325,11 @@ public abstract class PostResource { comment.date = OffsetDateTime.now(); comment.scope = Scope.comment; comment.referees = List.of(post); + + comment.persist(); + comment.setContent(message); assignPostTargets(post.getVisibility(), post.owner, comment); - comment.persist(); var currentUser = getCurrentUser(); if (currentUser != null) { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java index c3e58c5..0f73f1a 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTarget.java @@ -2,14 +2,14 @@ package eu.mulk.mulkcms2.benki.posts; import eu.mulk.mulkcms2.benki.accesscontrol.Role; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "post_targets", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java index f6347b2..ff9f509 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTargetPK.java @@ -1,8 +1,8 @@ package eu.mulk.mulkcms2.benki.posts; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Id; public class PostTargetPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java index 80971b1..5e8dd29 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostText.java @@ -1,39 +1,40 @@ package eu.mulk.mulkcms2.benki.posts; -import com.vladmihalcea.hibernate.type.search.PostgreSQLTSVectorType; +import static org.hibernate.generator.EventType.INSERT; +import static org.hibernate.generator.EventType.UPDATE; + import eu.mulk.mulkcms2.benki.posts.Post.Scope; import eu.mulk.mulkcms2.common.markdown.MarkdownConverter; import eu.mulk.mulkcms2.common.markdown.MarkdownConverter.Mode; +import io.hypersistence.utils.hibernate.type.search.PostgreSQLTSVectorType; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.json.bind.annotation.JsonbTransient; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapsId; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.json.bind.annotation.JsonbTransient; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; import org.hibernate.annotations.Generated; -import org.hibernate.annotations.GenerationTime; import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; @Entity @Table(name = "post_texts", schema = "benki") @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) @IdClass(PostTextPK.class) -@TypeDef(name = "tsvector", typeClass = PostgreSQLTSVectorType.class) public abstract class PostText<OwningPost extends Post<?>> extends PanacheEntityBase { private static final int DESCRIPTION_CACHE_VERSION = 1; @Id - @Column(name = "post", nullable = false, insertable = false, updatable = false) - public int postId; + @Column(name = "post", nullable = false) + public Integer postId; @Id @Column(name = "language", nullable = false, length = -1) @@ -47,13 +48,14 @@ public abstract class PostText<OwningPost extends Post<?>> extends PanacheEntity @CheckForNull public String cachedDescriptionHtml; - @Column(name = "search_terms") - @Generated(GenerationTime.ALWAYS) - @Type(type = "tsvector") + @Column(name = "search_terms", columnDefinition = "tsvector") + @Generated(event = {INSERT, UPDATE}) + @Type(value = PostgreSQLTSVectorType.class) public String searchTerms; @ManyToOne(fetch = FetchType.LAZY, targetEntity = Post.class) @JoinColumn(name = "post", referencedColumnName = "id", nullable = false) + @MapsId("postId") @JsonbTransient public OwningPost post; diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTextPK.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTextPK.java index 0a945dd..6526526 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTextPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostTextPK.java @@ -1,31 +1,26 @@ package eu.mulk.mulkcms2.benki.posts; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; - -@IdClass(PostTextPK.class) + public class PostTextPK implements Serializable { - @ManyToOne(fetch = FetchType.LAZY) - @JoinColumn(name = "post", referencedColumnName = "id", nullable = false) - public Post<?> post; + @Id + @Column(name = "post", nullable = false) + private Integer postId; @Id @Column(name = "language", nullable = false, length = -1) private String language; - public Post<?> getPost() { - return post; + public Integer getPostId() { + return postId; } - public void setPost(Post post) { - this.post = post; + public void setPostId(Integer postId) { + this.postId = postId; } public String getLanguage() { @@ -45,11 +40,12 @@ public class PostTextPK implements Serializable { return false; } PostTextPK that = (PostTextPK) o; - return Objects.equals(getPost(), that.getPost()) && getLanguage().equals(that.getLanguage()); + return Objects.equals(getPostId(), that.getPostId()) + && getLanguage().equals(that.getLanguage()); } @Override public int hashCode() { - return Objects.hash(getPost(), getLanguage()); + return Objects.hash(getPostId(), getLanguage()); } } diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKey.java b/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKey.java index d03597b..0828cab 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKey.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKey.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.benki.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.math.BigInteger; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "rsa_keys", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKeyPK.java b/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKeyPK.java index 83f4ced..d38d3fd 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKeyPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/RsaKeyPK.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.benki.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.math.BigInteger; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class RsaKeyPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/User.java b/src/main/java/eu/mulk/mulkcms2/benki/users/User.java index 99ab91f..9f2cd5c 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/User.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/User.java @@ -7,26 +7,26 @@ import eu.mulk.mulkcms2.benki.lazychat.LazychatMessage; import eu.mulk.mulkcms2.benki.posts.Post; import eu.mulk.mulkcms2.benki.wiki.WikiPageRevision; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; +import jakarta.persistence.Transient; import java.util.Collection; import java.util.List; import java.util.Objects; import java.util.Set; import javax.annotation.CheckForNull; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.Table; -import javax.persistence.Transient; @Entity(name = "BenkiUser") @Table(name = "users", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRole.java b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRole.java index 7d2c2ea..a12377a 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRole.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRole.java @@ -2,14 +2,14 @@ package eu.mulk.mulkcms2.benki.users; import eu.mulk.mulkcms2.benki.accesscontrol.Role; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "user_roles", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java index aca126d..b84e02b 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java @@ -1,8 +1,8 @@ package eu.mulk.mulkcms2.benki.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Id; public class UserRolePK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKey.java b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKey.java index 7e99791..d48a064 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKey.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKey.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.benki.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinColumns; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.math.BigInteger; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.JoinColumns; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "user_rsa_keys", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKeyPK.java b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKeyPK.java index ef48c9a..872251a 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKeyPK.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRsaKeyPK.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.benki.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.math.BigInteger; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class UserRsaKeyPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPage.java b/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPage.java index b627f9a..56778fe 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPage.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPage.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.benki.wiki; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.Table; import java.util.List; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; -import javax.persistence.Table; @Entity @Table(name = "wiki_pages", schema = "benki") diff --git a/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPageRevision.java b/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPageRevision.java index 161f371..c27fa45 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPageRevision.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiPageRevision.java @@ -2,20 +2,20 @@ package eu.mulk.mulkcms2.benki.wiki; import eu.mulk.mulkcms2.benki.users.User; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.time.OffsetDateTime; import java.util.function.Function; import java.util.regex.Pattern; import java.util.stream.Collectors; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; diff --git a/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiResource.java b/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiResource.java index 6351aab..1ca77ca 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/wiki/WikiResource.java @@ -1,7 +1,7 @@ package eu.mulk.mulkcms2.benki.wiki; -import static javax.ws.rs.core.MediaType.APPLICATION_JSON; -import static javax.ws.rs.core.MediaType.TEXT_HTML; +import static jakarta.ws.rs.core.MediaType.APPLICATION_JSON; +import static jakarta.ws.rs.core.MediaType.TEXT_HTML; import eu.mulk.mulkcms2.benki.users.User; import io.quarkus.panache.common.Sort; @@ -9,25 +9,25 @@ import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; import io.quarkus.security.Authenticated; import io.quarkus.security.identity.SecurityIdentity; +import jakarta.inject.Inject; +import jakarta.json.JsonObject; +import jakarta.json.spi.JsonProvider; +import jakarta.transaction.Transactional; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.NotFoundException; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Response; import java.net.URI; import java.net.URISyntaxException; import java.time.OffsetDateTime; import java.time.ZoneOffset; import java.util.Optional; import javax.annotation.CheckForNull; -import javax.inject.Inject; -import javax.json.JsonObject; -import javax.json.spi.JsonProvider; -import javax.transaction.Transactional; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.NotFoundException; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.core.Response; import org.jsoup.Jsoup; import org.jsoup.safety.Safelist; diff --git a/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java b/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java index c112773..1928801 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/about/AboutResource.java @@ -2,10 +2,10 @@ package eu.mulk.mulkcms2.cms.about; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/about") public class AboutResource { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/comments/Comment.java b/src/main/java/eu/mulk/mulkcms2/cms/comments/Comment.java index 9f91c6b..0b3adfb 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/comments/Comment.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/comments/Comment.java @@ -2,18 +2,18 @@ package eu.mulk.mulkcms2.cms.comments; import eu.mulk.mulkcms2.cms.pages.Article; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.Collection; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity @Table(name = "comments", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/comments/CommentRevision.java b/src/main/java/eu/mulk/mulkcms2/cms/comments/CommentRevision.java index 2835345..038141e 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/comments/CommentRevision.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/comments/CommentRevision.java @@ -1,25 +1,24 @@ package eu.mulk.mulkcms2.cms.comments; -import com.vladmihalcea.hibernate.type.basic.Inet; -import com.vladmihalcea.hibernate.type.basic.PostgreSQLInetType; import eu.mulk.mulkcms2.cms.users.User; +import io.hypersistence.utils.hibernate.type.basic.Inet; +import io.hypersistence.utils.hibernate.type.basic.PostgreSQLInetType; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.sql.Timestamp; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; -import org.hibernate.annotations.TypeDef; +import org.hibernate.annotations.Type; @Entity @Table(name = "comment_revisions", schema = "public") -@TypeDef(name = "inet", typeClass = PostgreSQLInetType.class, defaultForType = Inet.class) public class CommentRevision extends PanacheEntityBase { @Id @@ -45,6 +44,7 @@ public class CommentRevision extends PanacheEntityBase { public Integer articleRevision; @Column(name = "submitter_ip", nullable = true, columnDefinition = "inet") + @Type(PostgreSQLInetType.class) @CheckForNull public Inet submitterIp; diff --git a/src/main/java/eu/mulk/mulkcms2/cms/comments/UsedTransactionKey.java b/src/main/java/eu/mulk/mulkcms2/cms/comments/UsedTransactionKey.java index 6565946..bf4eb74 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/comments/UsedTransactionKey.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/comments/UsedTransactionKey.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.cms.comments; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "used_transaction_keys", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/journal/Journal.java b/src/main/java/eu/mulk/mulkcms2/cms/journal/Journal.java index a33ba4f..48d8de9 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/journal/Journal.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/journal/Journal.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.cms.journal; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.Collection; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity @Table(name = "journals", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntry.java b/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntry.java index 92ccf45..2cfb423 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntry.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntry.java @@ -2,14 +2,14 @@ package eu.mulk.mulkcms2.cms.journal; import eu.mulk.mulkcms2.cms.pages.Article; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "journal_entries", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntryPK.java b/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntryPK.java index 88eb083..7003afd 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntryPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/journal/JournalEntryPK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.journal; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class JournalEntryPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalCategory.java b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalCategory.java index 31a968e..4647d87 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalCategory.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalCategory.java @@ -1,12 +1,12 @@ package eu.mulk.mulkcms2.cms.legacyjournal; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; @Entity @Table(name = "journal_category", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalComment.java b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalComment.java index 186d343..2bbf3dd 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalComment.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalComment.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.cms.legacyjournal; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "journal_comment", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalEntry.java b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalEntry.java index ad95270..613e4c6 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalEntry.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalEntry.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.cms.legacyjournal; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.Collection; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity @Table(name = "journal_entry", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalPingback.java b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalPingback.java index f31e44e..451d6f5 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalPingback.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalPingback.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.cms.legacyjournal; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "journal_pingback", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalTrackback.java b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalTrackback.java index f86f95f..fb72242 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalTrackback.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/legacyjournal/LegacyJournalTrackback.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.cms.legacyjournal; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "journal_trackback", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/Article.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/Article.java index c3772f0..868f1c8 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/Article.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/Article.java @@ -3,20 +3,20 @@ package eu.mulk.mulkcms2.cms.pages; import eu.mulk.mulkcms2.cms.comments.Comment; import eu.mulk.mulkcms2.cms.journal.JournalEntry; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.Collection; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity @Table(name = "articles", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleAlias.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleAlias.java index 6896aa7..e29c53b 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleAlias.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleAlias.java @@ -1,13 +1,13 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "article_aliases", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTip.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTip.java index 5b45216..db988d3 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTip.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTip.java @@ -1,12 +1,12 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.Table; import org.hibernate.annotations.Immutable; @Entity diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTipPK.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTipPK.java index 2d93b54..0e1106c 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTipPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleBranchTipPK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.pages; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class ArticleBranchTipPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleCommentCount.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleCommentCount.java index f7993f1..437c523 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleCommentCount.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleCommentCount.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import org.hibernate.annotations.Immutable; @Entity diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticlePublishingDate.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticlePublishingDate.java index 1fe92f3..45b8854 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticlePublishingDate.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticlePublishingDate.java @@ -1,12 +1,12 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import java.sql.Timestamp; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; import org.hibernate.annotations.Immutable; @Entity diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevision.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevision.java index cf45142..5abdf48 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevision.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevision.java @@ -2,22 +2,22 @@ package eu.mulk.mulkcms2.cms.pages; import eu.mulk.mulkcms2.cms.users.User; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.sql.Timestamp; import java.util.Collection; import java.util.Set; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity @Table(name = "article_revisions", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristic.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristic.java index 0ac7ae5..ebda4a2 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristic.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristic.java @@ -1,15 +1,15 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "article_revision_characteristics", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristicPK.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristicPK.java index 7f9b61a..045642e 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristicPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleRevisionCharacteristicPK.java @@ -1,8 +1,8 @@ package eu.mulk.mulkcms2.cms.pages; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Id; public class ArticleRevisionCharacteristicPK implements Serializable { private String characteristic; diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleType.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleType.java index c2c50bb..5f903e1 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleType.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/ArticleType.java @@ -1,16 +1,16 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.Collection; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity @Table(name = "article_types", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPage.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPage.java index db92afa..7240218 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPage.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPage.java @@ -1,12 +1,12 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.Table; import java.sql.Timestamp; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.Table; @Entity @Table(name = "cached_pages", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPagePK.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPagePK.java index 1a72aea..7eb213a 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPagePK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/CachedPagePK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.pages; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class CachedPagePK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/pages/Category.java b/src/main/java/eu/mulk/mulkcms2/cms/pages/Category.java index 2801c98..b51d094 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/pages/Category.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/pages/Category.java @@ -1,17 +1,17 @@ package eu.mulk.mulkcms2.cms.pages; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; @Entity @Table(name = "categories", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java b/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java index 5255ee2..9f7ffb9 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/privacy/about/PrivacyPolicyResource.java @@ -2,10 +2,10 @@ package eu.mulk.mulkcms2.cms.privacy.about; import io.quarkus.qute.CheckedTemplate; import io.quarkus.qute.TemplateInstance; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; @Path("/privacy") public class PrivacyPolicyResource { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificate.java b/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificate.java index 8fec250..724c958 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificate.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificate.java @@ -1,14 +1,14 @@ package eu.mulk.mulkcms2.cms.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "login_certificates", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificatePK.java b/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificatePK.java index 8bb5f44..eb5f569 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificatePK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/LoginCertificatePK.java @@ -1,10 +1,10 @@ package eu.mulk.mulkcms2.cms.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Arrays; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class LoginCertificatePK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/OpenId.java b/src/main/java/eu/mulk/mulkcms2/cms/users/OpenId.java index c73f079..d1039a3 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/OpenId.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/OpenId.java @@ -1,14 +1,14 @@ package eu.mulk.mulkcms2.cms.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity(name = "CmsOpenId") @Table(name = "openids", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/OpenIdPK.java b/src/main/java/eu/mulk/mulkcms2/cms/users/OpenIdPK.java index e80fb25..16c2b10 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/OpenIdPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/OpenIdPK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class OpenIdPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/Password.java b/src/main/java/eu/mulk/mulkcms2/cms/users/Password.java index 3745bfb..ce1b4c3 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/Password.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/Password.java @@ -1,14 +1,14 @@ package eu.mulk.mulkcms2.cms.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; @Entity @Table(name = "passwords", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/PasswordPK.java b/src/main/java/eu/mulk/mulkcms2/cms/users/PasswordPK.java index c43cd5e..e553b5d 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/PasswordPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/PasswordPK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class PasswordPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/User.java b/src/main/java/eu/mulk/mulkcms2/cms/users/User.java index 5ba5ff4..fe9e589 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/User.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/User.java @@ -3,16 +3,16 @@ package eu.mulk.mulkcms2.cms.users; import eu.mulk.mulkcms2.cms.comments.CommentRevision; import eu.mulk.mulkcms2.cms.pages.ArticleRevision; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.Collection; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.OneToMany; -import javax.persistence.Table; @Entity(name = "CmsUser") @Table(name = "users", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermission.java b/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermission.java index 76e3734..aa6dd40 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermission.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermission.java @@ -1,15 +1,15 @@ package eu.mulk.mulkcms2.cms.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "user_permissions", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermissionPK.java b/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermissionPK.java index 406178e..e3634b5 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermissionPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/UserPermissionPK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class UserPermissionPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/UserSetting.java b/src/main/java/eu/mulk/mulkcms2/cms/users/UserSetting.java index 43c61b2..8b49d74 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/UserSetting.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/UserSetting.java @@ -1,15 +1,15 @@ package eu.mulk.mulkcms2.cms.users; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import javax.annotation.CheckForNull; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; @Entity @Table(name = "user_settings", schema = "public") diff --git a/src/main/java/eu/mulk/mulkcms2/cms/users/UserSettingPK.java b/src/main/java/eu/mulk/mulkcms2/cms/users/UserSettingPK.java index b7c28ea..f8c268d 100644 --- a/src/main/java/eu/mulk/mulkcms2/cms/users/UserSettingPK.java +++ b/src/main/java/eu/mulk/mulkcms2/cms/users/UserSettingPK.java @@ -1,9 +1,9 @@ package eu.mulk.mulkcms2.cms.users; +import jakarta.persistence.Column; +import jakarta.persistence.Id; import java.io.Serializable; import java.util.Objects; -import javax.persistence.Column; -import javax.persistence.Id; public class UserSettingPK implements Serializable { diff --git a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java new file mode 100644 index 0000000..2bbb812 --- /dev/null +++ b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateFunctionContributor.java @@ -0,0 +1,28 @@ +package eu.mulk.mulkcms2.common.hibernate; + +import static org.hibernate.query.sqm.produce.function.FunctionParameterType.STRING; +import static org.hibernate.sql.ast.SqlAstNodeRenderingMode.DEFAULT; +import static org.hibernate.type.StandardBasicTypes.BOOLEAN; + +import org.hibernate.boot.model.FunctionContributions; +import org.hibernate.boot.model.FunctionContributor; + +public final class HibernateFunctionContributor implements FunctionContributor { + + @Override + public void contributeFunctions(FunctionContributions functionContributions) { + var typeConfiguration = functionContributions.getTypeConfiguration(); + var typeRegistry = typeConfiguration.getBasicTypeRegistry(); + var functionRegistry = functionContributions.getFunctionRegistry(); + + functionRegistry + .patternDescriptorBuilder( + "post_matches_websearch", "(?1 @@ websearch_to_tsquery(language_regconfig(?2), ?3))") + .setInvariantType(typeRegistry.resolve(BOOLEAN)) + .setExactArgumentCount(3) + .setArgumentListSignature("(STRING searchTerms, STRING language, STRING queryText)") + .setArgumentRenderingMode(DEFAULT) + .setParameterTypes(STRING, STRING, STRING) + .register(); + } +} diff --git a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateMetadataBuilderContributor.java b/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateMetadataBuilderContributor.java deleted file mode 100644 index 31f99b2..0000000 --- a/src/main/java/eu/mulk/mulkcms2/common/hibernate/HibernateMetadataBuilderContributor.java +++ /dev/null @@ -1,12 +0,0 @@ -package eu.mulk.mulkcms2.common.hibernate; - -import org.hibernate.boot.MetadataBuilder; -import org.hibernate.boot.spi.MetadataBuilderContributor; - -public final class HibernateMetadataBuilderContributor implements MetadataBuilderContributor { - - @Override - public void contribute(MetadataBuilder metadataBuilder) { - metadataBuilder.applySqlFunction("post_matches_websearch", new PostMatchesWebsearchFunction()); - } -} diff --git a/src/main/java/eu/mulk/mulkcms2/common/hibernate/PostMatchesWebsearchFunction.java b/src/main/java/eu/mulk/mulkcms2/common/hibernate/PostMatchesWebsearchFunction.java deleted file mode 100644 index 9c10615..0000000 --- a/src/main/java/eu/mulk/mulkcms2/common/hibernate/PostMatchesWebsearchFunction.java +++ /dev/null @@ -1,11 +0,0 @@ -package eu.mulk.mulkcms2.common.hibernate; - -import org.hibernate.dialect.function.SQLFunctionTemplate; -import org.hibernate.type.BooleanType; - -public final class PostMatchesWebsearchFunction extends SQLFunctionTemplate { - - public PostMatchesWebsearchFunction() { - super(BooleanType.INSTANCE, "(?1 @@ websearch_to_tsquery(language_regconfig(?2), ?3))"); - } -} diff --git a/src/main/java/eu/mulk/mulkcms2/common/logging/Messages.java b/src/main/java/eu/mulk/mulkcms2/common/logging/Messages.java index 8a2d3b1..1446352 100644 --- a/src/main/java/eu/mulk/mulkcms2/common/logging/Messages.java +++ b/src/main/java/eu/mulk/mulkcms2/common/logging/Messages.java @@ -1,6 +1,6 @@ package eu.mulk.mulkcms2.common.logging; -import javax.mail.Address; +import jakarta.mail.Address; import org.jboss.logging.BasicLogger; import org.jboss.logging.Logger; import org.jboss.logging.Logger.Level; diff --git a/src/main/resources/META-INF/services/ org.hibernate.boot.model.FunctionContributor b/src/main/resources/META-INF/services/ org.hibernate.boot.model.FunctionContributor new file mode 100644 index 0000000..0c3be1e --- /dev/null +++ b/src/main/resources/META-INF/services/ org.hibernate.boot.model.FunctionContributor @@ -0,0 +1 @@ +eu.mulk.mulkcms2.common.hibernate.HibernateFunctionContributor diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index bd9db97..e576172 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -14,7 +14,6 @@ quarkus.datasource.jdbc.driver = org.postgresql.Driver quarkus.datasource.jdbc.max-size = 8 quarkus.datasource.jdbc.min-size = 0 -quarkus.hibernate-orm.metadata-builder-contributor = eu.mulk.mulkcms2.common.hibernate.HibernateMetadataBuilderContributor quarkus.hibernate-orm.validate-in-dev-mode = false quarkus.liquibase.migrate-at-start = true |