Questions tagged [quarkus]

A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards

Quarkus makes creating cloud-native container-first Java applications a productive and efficient experience.

Combine both the familiar imperative code and the non-blocking reactive style when developing applications.

Quarkus tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot.

./my-native-java-rest-app

Quarkus started in 0.008s

A cohesive platform for optimized developer joy:

  • Unified configuration
  • Zero configuration, live reload in the blink of an eye
  • Streamlined code for the 80% common usages, flexible for the 20%
  • No hassle native executable generation

Quarkus brings a cohesive, fun to use full-stack framework by leveraging best of breed libraries you love and use wired on a standard backbone.

Useful links:

3982 questions
5
votes
1 answer

How can I use Hibernate 6 with Quarkus

I need to use Hibernate version 6.0.0.Alpha7, since they have solved the following issue: https://hibernate.atlassian.net/browse/HHH-1050 Hibernate dependency is declared using quarkus…
5
votes
1 answer

Quarkus verifying JWTs from multiple sources

Is there a way to allow JWTs from multiple sources? I have a REST API that I only allow access to via Bearer Tokens authentication, and I really only need to verify these tokens, so I don't really need all the additions that OIDC brings. Let's say I…
oole
  • 342
  • 3
  • 13
5
votes
3 answers

Building native image using quarkus on a M1 Mac fails

From my project's root directory, I issued the following command to create a native executable that will be specific to my operating system. See the following guide for details mvn package -Pnative -Dquarkus.native.container-build=true and here is…
Viswanath
  • 1,413
  • 13
  • 25
5
votes
3 answers

How to set a environment variable for a quarkus property with hyphen?

When setting environment variables for properties with hyphens, such as: quarkus.datasource.db-kind=postgresql I would expect it to be set as: export QUARKUS_DATASOURCE_DB_KIND=postgresql However, that results in an the following…
Julio Faerman
  • 13,228
  • 9
  • 57
  • 75
5
votes
1 answer

Issue compiling quarkus native image on Apple Sillicon

I tried running both Mandrel: ./mvnw package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel:20.3.2.0-Final-java11 and GraalVM version: ./mvnw package -Pnative…
5
votes
3 answers

How to build quarkus native image on google cloudbuild

Does anyone has an idea how to build quarkus native image on cloudbuild? I use following command to do so: - name: maven:3-jdk-11 entrypoint: mvn args: ["package", "-Dmaven.test.skip=true", "-Pnative",…
Ksz
  • 53
  • 1
  • 5
5
votes
3 answers

Quarkus does not @Inject beans in @QuarkusTest suite

I am pretty new in Quarkus but I'm pretty proficient in other IoC frameworks (Spring). I have a bean declared as follow @ApplicationScoped public class TestingRepo { public String greet() { return "Hi"; } } and I do also have a…
zambotn
  • 735
  • 1
  • 7
  • 20
5
votes
2 answers

How to convert camel case to lower case with underscores in a REST API?

I am using Quarkus and Microprofile OpenAPI to map entities in REST APIs. I can convert my camel case named properties to lower case with underscores in the following way: @Schema(name = "first_name") private String firstName; However it is…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
5
votes
3 answers

quarkus-hibernate-reactive + Vert.x EventBus causes java.lang.IllegalStateException: Session/EntityManager is closed

I'm trying to use the quarkus-hibernate-reactive extension with the quarkus-vertx extension and I have issues persisting data. My project looks roughly like this: FruitResource: @Inject EventBus eventBus; @POST public Uni create(Fruit…
user2090339
  • 51
  • 1
  • 3
5
votes
1 answer

How to use Quarkus gRPC extension with Gradle?

According to the Quarkus gRPC documentation, there has to be generate-code goal enabled for the quarkus-maven-plugin. However, I have not found if the corresponding functionality is implemented for the Quarkus Gradle plugin. Question: How to build a…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
5
votes
3 answers

Using MapStruct together with Lombok under Quarkus

I'm following the guide at the MapStruct blog and having trouble using this 3 technology together. I've been trying several approaches from the MapStruct docs, bug-reports, posts from here but in every case I end up receiving the following…
Péter Veres
  • 955
  • 1
  • 10
  • 25
5
votes
1 answer

Quarkus native image: Load a PKCS12 file at runtime

I have a Quarkus application which implements the server side of a ProtoBuf-over-TLS communications channel and loads a PFX/P12 file at runtime to get the server certificate and private key. The application runs fine as a when run from the built…
Ron McLeod
  • 643
  • 7
  • 12
5
votes
1 answer

Providing separate OpenApi definitions

We have a service that provides 2 separate Rest API. One is a simple API that our customers use and the other one is an internal API used by a web application. Our customers are not able to access the web API so I would like to be able to provide 2…
attiand
  • 101
  • 3
5
votes
2 answers

REST-Endpoint: Async execution without return value

My problem might be very easy to solve, but I don't get it at the moment. In my Quarkus-App I have a REST-Endpoint which should call a method, don't wait for the result and immediately return a…
Simon Wick
  • 249
  • 1
  • 11
5
votes
1 answer

Quarkus Custom authorization interceptors

I have a Quarkus microservice doing authentication and authorization with Keycloak using quarkus-oidc and quarkus-keycloak-authorization extensions. I need to additionally implement following two request interceptors/filters: A filter before any…