Initial
This commit is contained in:
commit
772edfc555
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
*
|
||||
!build/*-runner
|
||||
!build/*-runner.jar
|
||||
!build/lib/*
|
||||
!build/quarkus-app/*
|
44
.gitignore
vendored
Normal file
44
.gitignore
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
# Gradle
|
||||
.gradle/
|
||||
build/*
|
||||
!build/quarkus-app
|
||||
!build/quarkus-app/*
|
||||
!build/quarkus-app/*/
|
||||
|
||||
# Eclipse
|
||||
.project
|
||||
.classpath
|
||||
.settings/
|
||||
bin/
|
||||
|
||||
# IntelliJ
|
||||
.idea
|
||||
*.ipr
|
||||
*.iml
|
||||
*.iws
|
||||
|
||||
# NetBeans
|
||||
nb-configuration.xml
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode
|
||||
.factorypath
|
||||
|
||||
# OSX
|
||||
.DS_Store
|
||||
|
||||
# Vim
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# patch
|
||||
*.orig
|
||||
*.rej
|
||||
|
||||
# Local environment
|
||||
.env
|
||||
|
||||
# Plugin directory
|
||||
/.quarkus/cli/plugins/
|
||||
# TLS Certificates
|
||||
.certs/
|
78
README.md
Normal file
78
README.md
Normal file
@ -0,0 +1,78 @@
|
||||
# qodo
|
||||
|
||||
This project uses Quarkus, the Supersonic Subatomic Java Framework.
|
||||
|
||||
If you want to learn more about Quarkus, please visit its website: <https://quarkus.io/>.
|
||||
|
||||
## Running the application in dev mode
|
||||
|
||||
You can run your application in dev mode that enables live coding using:
|
||||
|
||||
```shell script
|
||||
./gradlew quarkusDev
|
||||
```
|
||||
|
||||
> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at <http://localhost:8080/q/dev/>.
|
||||
|
||||
## Packaging and running the application
|
||||
|
||||
The application can be packaged using:
|
||||
|
||||
```shell script
|
||||
./gradlew build
|
||||
```
|
||||
|
||||
It produces the `quarkus-run.jar` file in the `build/quarkus-app/` directory.
|
||||
Be aware that it’s not an _über-jar_ as the dependencies are copied into the `build/quarkus-app/lib/` directory.
|
||||
|
||||
The application is now runnable using `java -jar build/quarkus-app/quarkus-run.jar`.
|
||||
|
||||
If you want to build an _über-jar_, execute the following command:
|
||||
|
||||
```shell script
|
||||
./gradlew build -Dquarkus.package.jar.type=uber-jar
|
||||
```
|
||||
|
||||
The application, packaged as an _über-jar_, is now runnable using `java -jar build/*-runner.jar`.
|
||||
|
||||
## Creating a native executable
|
||||
|
||||
You can create a native executable using:
|
||||
|
||||
```shell script
|
||||
./gradlew build -Dquarkus.native.enabled=true
|
||||
```
|
||||
|
||||
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
|
||||
|
||||
```shell script
|
||||
./gradlew build -Dquarkus.native.enabled=true -Dquarkus.native.container-build=true
|
||||
```
|
||||
|
||||
You can then execute your native executable with: `./build/qodo-1.0.0-SNAPSHOT-runner`
|
||||
|
||||
If you want to learn more about building native executables, please consult <https://quarkus.io/guides/gradle-tooling>.
|
||||
|
||||
## Related Guides
|
||||
|
||||
- REST ([guide](https://quarkus.io/guides/rest)): A Jakarta REST implementation utilizing build time processing and Vert.x. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it.
|
||||
- JDBC Driver - H2 ([guide](https://quarkus.io/guides/datasource)): Connect to the H2 database via JDBC
|
||||
- REST Jackson ([guide](https://quarkus.io/guides/rest#json-serialisation)): Jackson serialization support for Quarkus REST. This extension is not compatible with the quarkus-resteasy extension, or any of the extensions that depend on it
|
||||
- Hibernate ORM with Panache ([guide](https://quarkus.io/guides/hibernate-orm-panache)): Simplify your persistence code for Hibernate ORM via the active record or the repository pattern
|
||||
|
||||
## Provided Code
|
||||
|
||||
### Hibernate ORM
|
||||
|
||||
Create your first JPA entity
|
||||
|
||||
[Related guide section...](https://quarkus.io/guides/hibernate-orm)
|
||||
|
||||
[Related Hibernate with Panache section...](https://quarkus.io/guides/hibernate-orm-panache)
|
||||
|
||||
|
||||
### REST
|
||||
|
||||
Easily start your REST Web Services
|
||||
|
||||
[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)
|
78
build.gradle
Normal file
78
build.gradle
Normal file
@ -0,0 +1,78 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'io.quarkus'
|
||||
id 'maven-publish' // [Maven] Publish - https://docs.gradle.org/current/userguide/publishing_maven.html
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven { url='https://maven.doap.fr/repository/maven-all/' }
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.h2database:h2:2.3.232'
|
||||
|
||||
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
|
||||
implementation 'io.quarkus:quarkus-rest'
|
||||
implementation 'io.quarkus:quarkus-jdbc-h2'
|
||||
implementation 'io.quarkus:quarkus-rest-jackson'
|
||||
implementation 'io.quarkus:quarkus-hibernate-orm-panache'
|
||||
implementation 'io.quarkus:quarkus-arc'
|
||||
implementation 'io.quarkus:quarkus-hibernate-orm'
|
||||
|
||||
implementation 'io.quarkus:quarkus-oidc'
|
||||
|
||||
/*
|
||||
implementation 'io.quarkus:quarkus-rest-client-oidc-token-propagation'
|
||||
implementation 'io.quarkus:quarkus-rest-client-oidc-filter'
|
||||
*/
|
||||
|
||||
testImplementation 'io.quarkus:quarkus-junit5'
|
||||
testImplementation 'io.rest-assured:rest-assured'
|
||||
}
|
||||
|
||||
group 'fr.doap.qodo'
|
||||
version '1.0.0-SNAPSHOT'
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
|
||||
}
|
||||
compileJava {
|
||||
options.encoding = 'UTF-8'
|
||||
options.compilerArgs << '-parameters'
|
||||
}
|
||||
|
||||
compileTestJava {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
// [Maven Publish] - https://docs.gradle.org/current/userguide/publishing_maven.html
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
if ((System.getenv('MAVEN_USERNAME') == null) || (System.getenv('MAVEN_PASSWORD') == null)) {
|
||||
throw new GradleException("You must define the Windows Environment variables MAVEN_USERNAME and MAVEN_PASSWORD to publish to the repository")
|
||||
}
|
||||
|
||||
def releasesRepoUrl = "https://maven.doap.fr/repository/maven-releases/"
|
||||
def snapshotsRepoUrl = "https://maven.doap.fr/repository/maven-snapshots/"
|
||||
url = version.endsWith('-SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||
|
||||
credentials {
|
||||
username System.getenv('MAVEN_USERNAME')
|
||||
password System.getenv('MAVEN_PASSWORD')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
build/quarkus-app/app/qodo-1.0.0-SNAPSHOT.jar
Normal file
BIN
build/quarkus-app/app/qodo-1.0.0-SNAPSHOT.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/boot/io.github.crac.org-crac-0.1.3.jar
Normal file
BIN
build/quarkus-app/lib/boot/io.github.crac.org-crac-0.1.3.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/com.fasterxml.classmate-1.7.0.jar
Normal file
BIN
build/quarkus-app/lib/main/com.fasterxml.classmate-1.7.0.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/com.h2database.h2-2.3.230.jar
Normal file
BIN
build/quarkus-app/lib/main/com.h2database.h2-2.3.230.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.agroal.agroal-api-2.5.jar
Normal file
BIN
build/quarkus-app/lib/main/io.agroal.agroal-api-2.5.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.agroal.agroal-narayana-2.5.jar
Normal file
BIN
build/quarkus-app/lib/main/io.agroal.agroal-narayana-2.5.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.agroal.agroal-pool-2.5.jar
Normal file
BIN
build/quarkus-app/lib/main/io.agroal.agroal-pool-2.5.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.arc.arc-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.arc.arc-3.15.1.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-agroal-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-agroal-3.15.1.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-arc-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-arc-3.15.1.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-core-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-core-3.15.1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-fs-util-0.0.10.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-fs-util-0.0.10.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-jackson-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-jackson-3.15.1.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-jdbc-h2-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-jdbc-h2-3.15.1.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-jsonp-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-jsonp-3.15.1.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-mutiny-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-mutiny-3.15.1.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-netty-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-netty-3.15.1.jar
Normal file
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-oidc-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-oidc-3.15.1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-rest-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-rest-3.15.1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-vertx-3.15.1.jar
Normal file
BIN
build/quarkus-app/lib/main/io.quarkus.quarkus-vertx-3.15.1.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build/quarkus-app/lib/main/io.smallrye.reactive.mutiny-2.6.2.jar
Normal file
BIN
build/quarkus-app/lib/main/io.smallrye.reactive.mutiny-2.6.2.jar
Normal file
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user