Skip to content
Snippets Groups Projects
Commit b4580707 authored by Lorenz Boguhn's avatar Lorenz Boguhn Committed by Sören Henning
Browse files

Extend Readme - contain script and detekt description

parent 9f38310c
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus,!75Base Template for Theodolite Kotlin Implementation
...@@ -29,17 +29,18 @@ The application is now runnable using `java -jar build/theodolite-quarkus-1.0.0- ...@@ -29,17 +29,18 @@ The application is now runnable using `java -jar build/theodolite-quarkus-1.0.0-
## Creating a native executable ## Creating a native executable
You can create a native executable using: You can create a native executable using:
```shell script ```shell script
./gradlew build -Dquarkus.package.type=native ./gradlew build -Dquarkus.package.type=native
``` ```
Or, if you don't have GraalVM installed, you can run the native executable build in a container using: Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
```shell script ```shell script
./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true ./gradlew build -Dquarkus.package.type=native -Dquarkus.native.container-build=true
``` ```
You can then execute your native executable with: `./build/theodolite-quarkus-1.0.0-SNAPSHOT-runner` You can then execute your native executable with:
```./build/theodolite-quarkus-1.0.0-SNAPSHOT-runner```
If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling. If you want to learn more about building native executables, please consult https://quarkus.io/guides/gradle-tooling.
...@@ -48,3 +49,28 @@ If you want to learn more about building native executables, please consult http ...@@ -48,3 +49,28 @@ If you want to learn more about building native executables, please consult http
<p>A Hello World RESTEasy resource</p> <p>A Hello World RESTEasy resource</p>
Guide: https://quarkus.io/guides/rest-json Guide: https://quarkus.io/guides/rest-json
## Build and afterwards run the application in Docker container
```build_jvm.sh``` to build the jvm version
```build_native.sh``` to build the native image graal version
## Install Detekt Code analysis Plugin
Install https://plugins.jetbrains.com/plugin/10761-detekt
- Install the plugin
- Navigate to Settings/Preferences -> Tools -> Detekt
- Check Enable Detekt
- Specify your detekt configuration and baseline file (optional)
-> detekt issues will be annotated on-the-fly while coding
**ingore Failures in build:** add
```ignoreFailures = true```
to build.gradle detekt task
...@@ -2,11 +2,13 @@ plugins { ...@@ -2,11 +2,13 @@ plugins {
id 'org.jetbrains.kotlin.jvm' version "1.3.72" id 'org.jetbrains.kotlin.jvm' version "1.3.72"
id "org.jetbrains.kotlin.plugin.allopen" version "1.3.72" id "org.jetbrains.kotlin.plugin.allopen" version "1.3.72"
id 'io.quarkus' id 'io.quarkus'
id "io.gitlab.arturbosch.detekt" version "1.15.0"
} }
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
jcenter()
} }
dependencies { dependencies {
...@@ -45,3 +47,9 @@ compileKotlin { ...@@ -45,3 +47,9 @@ compileKotlin {
compileTestKotlin { compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11 kotlinOptions.jvmTarget = JavaVersion.VERSION_11
} }
detekt {
failFast = true // fail build on any finding
buildUponDefaultConfig = true
ignoreFailures = true
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment