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
Branches
Tags
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
......@@ -39,7 +39,8 @@ Or, if you don't have GraalVM installed, you can run the native executable build
./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.
......@@ -48,3 +49,28 @@ If you want to learn more about building native executables, please consult http
<p>A Hello World RESTEasy resource</p>
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 {
id 'org.jetbrains.kotlin.jvm' version "1.3.72"
id "org.jetbrains.kotlin.plugin.allopen" version "1.3.72"
id 'io.quarkus'
id "io.gitlab.arturbosch.detekt" version "1.15.0"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
......@@ -45,3 +47,9 @@ compileKotlin {
compileTestKotlin {
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.
Please register or to comment