diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-02 19:06:54 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-02-02 19:11:34 +0100 |
commit | c52eb74574835eae5f3c4574065da661bde721d7 (patch) | |
tree | f7d65105d3da999396cb560702a50fe74672f6c9 /build.gradle | |
parent | 02e10f1b1602e1b15064b7a511783c8bdec42c94 (diff) |
Add Dockerfile for remote development mode.
Change-Id: Ica13917f0fbb3fedbb7bebed7a3995803baa06c4
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 7302b0d..d7c4fea 100644 --- a/build.gradle +++ b/build.gradle @@ -99,6 +99,8 @@ version "${projectVersion}" task yarnInstall(type:Exec) { def resourceDir = "src/main/resources/META-INF/resources" + onlyIf { !project.hasProperty('skipWeb') } + inputs.file "${resourceDir}/package.json" outputs.dir "${resourceDir}/node_modules" outputs.file "${resourceDir}/yarn.lock" @@ -110,6 +112,8 @@ task yarnInstall(type:Exec) { task snowpack(type:Exec) { def resourceDir = "src/main/resources/META-INF/resources" + onlyIf { !project.hasProperty('skipWeb') } + dependsOn yarnInstall inputs.dir "${resourceDir}/node_modules" @@ -136,6 +140,8 @@ processResources { quarkusBuild.dependsOn compileWeb task buildDocker(type: DockerBuildImage) { + onlyIf { !project.hasProperty('skipDocker') } + inputDir = file(".") dockerFile = file("src/main/docker/Dockerfile.jvm") images.add("docker.benkard.de/mulk/mulkcms2:${projectVersion}") |