Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
b4580707
Commit
b4580707
authored
4 years ago
by
Lorenz Boguhn
Committed by
Sören Henning
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Extend Readme - contain script and detekt description
parent
9f38310c
No related branches found
No related tags found
4 merge requests
!159
Re-implementation of Theodolite with Kotlin/Quarkus
,
!157
Update Graal Image in CI pipeline
,
!83
WIP: Re-implementation of Theodolite with Kotlin/Quarkus
,
!75
Base Template for Theodolite Kotlin Implementation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theodolite-quarkus/README.md
+29
-3
29 additions, 3 deletions
theodolite-quarkus/README.md
theodolite-quarkus/build.gradle
+8
-0
8 additions, 0 deletions
theodolite-quarkus/build.gradle
with
37 additions
and
3 deletions
theodolite-quarkus/README.md
+
29
−
3
View file @
b4580707
...
@@ -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
This diff is collapsed.
Click to expand it.
theodolite-quarkus/build.gradle
+
8
−
0
View file @
b4580707
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment