Skip to content

Commit

Permalink
#62: Add default args
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-markl committed Dec 10, 2020
1 parent ec86a51 commit d01caa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM gradle:jdk8 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build --no-daemon
RUN ./gradlew build --no-daemon
RUN unzip /home/gradle/src/build/distributions/backend.zip -d /output

FROM openjdk:8-jre-slim
Expand Down
5 changes: 4 additions & 1 deletion backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies {

// Use the Kotlin JUnit integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")

implementation("org.jetbrains.exposed", "exposed-core", exposed_version)
implementation("org.jetbrains.exposed", "exposed-dao", exposed_version)
implementation("org.jetbrains.exposed", "exposed-jdbc", exposed_version)
Expand All @@ -57,6 +57,9 @@ dependencies {
application {
// Define the main class for the application.
mainClassName = "xyz.elitese.ehrenamtskarte.EntryPointKt"
applicationDefaultJvmArgs = properties
.filter { it.key.startsWith("app.") }
.map { "-D" + it.key + "=" + it.value }
}

tasks.withType<JavaExec>().configureEach {
Expand Down

0 comments on commit d01caa8

Please sign in to comment.