Skip to content

Commit 69a1a85

Browse files
committed
build: init quarkus template
1 parent 7b74d2b commit 69a1a85

File tree

19 files changed

+1005
-0
lines changed

19 files changed

+1005
-0
lines changed

quarkus-fkl-sample/.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*
2+
!build/*-runner
3+
!build/*-runner.jar
4+
!build/lib/*
5+
!build/quarkus-app/*

quarkus-fkl-sample/.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Gradle
2+
.gradle/
3+
build/
4+
5+
# Eclipse
6+
.project
7+
.classpath
8+
.settings/
9+
bin/
10+
11+
# IntelliJ
12+
.idea
13+
*.ipr
14+
*.iml
15+
*.iws
16+
17+
# NetBeans
18+
nb-configuration.xml
19+
20+
# Visual Studio Code
21+
.vscode
22+
.factorypath
23+
24+
# OSX
25+
.DS_Store
26+
27+
# Vim
28+
*.swp
29+
*.swo
30+
31+
# patch
32+
*.orig
33+
*.rej
34+
35+
# Local environment
36+
.env

quarkus-fkl-sample/README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# quarkus-fkl-sample Project
2+
3+
This project uses Quarkus, the Supersonic Subatomic Java Framework.
4+
5+
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
6+
7+
## Running the application in dev mode
8+
9+
You can run your application in dev mode that enables live coding using:
10+
```shell script
11+
./gradlew quarkusDev
12+
```
13+
14+
> **_NOTE:_** Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
15+
16+
## Packaging and running the application
17+
18+
The application can be packaged using:
19+
```shell script
20+
./gradlew build
21+
```
22+
It produces the `quarkus-run.jar` file in the `build/quarkus-app/` directory.
23+
Be aware that it’s not an _über-jar_ as the dependencies are copied into the `build/quarkus-app/lib/` directory.
24+
25+
The application is now runnable using `java -jar build/quarkus-app/quarkus-run.jar`.
26+
27+
If you want to build an _über-jar_, execute the following command:
28+
```shell script
29+
./gradlew build -Dquarkus.package.type=uber-jar
30+
```
31+
32+
The application, packaged as an _über-jar_, is now runnable using `java -jar build/*-runner.jar`.
33+
34+
## Creating a native executable
35+
36+
You can create a native executable using:
37+
```shell script
38+
./gradlew build -Dquarkus.package.type=native
39+
```
40+
41+
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
42+
```shell script
43+
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
44+
```
45+
46+
You can then execute your native executable with: `./build/quarkus-fkl-sample-1.0.0-SNAPSHOT-runner`
47+
48+
If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.
49+
50+
## Provided Code
51+
52+
### RESTEasy Reactive
53+
54+
Easily start your Reactive RESTful Web Services
55+
56+
[Related guide section...](https://quarkus.io/guides/getting-started-reactive#reactive-jax-rs-resources)

quarkus-fkl-sample/build.gradle

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
plugins {
2+
id 'java'
3+
id 'io.quarkus'
4+
}
5+
6+
repositories {
7+
mavenCentral()
8+
mavenLocal()
9+
}
10+
11+
dependencies {
12+
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
13+
implementation 'io.quarkus:quarkus-arc'
14+
implementation 'io.quarkus:quarkus-resteasy-reactive'
15+
testImplementation 'io.quarkus:quarkus-junit5'
16+
testImplementation 'io.rest-assured:rest-assured'
17+
}
18+
19+
group 'com.feakin.sample.quarkus'
20+
version '1.0.0-SNAPSHOT'
21+
22+
java {
23+
sourceCompatibility = JavaVersion.VERSION_17
24+
targetCompatibility = JavaVersion.VERSION_17
25+
}
26+
27+
compileJava {
28+
options.encoding = 'UTF-8'
29+
options.compilerArgs << '-parameters'
30+
}
31+
32+
compileTestJava {
33+
options.encoding = 'UTF-8'
34+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Gradle properties
2+
quarkusPluginId=io.quarkus
3+
quarkusPluginVersion=2.13.3.Final
4+
quarkusPlatformGroupId=io.quarkus.platform
5+
quarkusPlatformArtifactId=quarkus-bom
6+
quarkusPlatformVersion=2.13.3.Final
57.5 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

quarkus-fkl-sample/gradlew

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)