From 812f12a69468d5b20fef7afc6cd82c130481e9ad Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Sat, 17 Apr 2021 21:56:08 +0000
Subject: [PATCH] WIP: react app -> Spring boot
---
borgbutler-webapp/build.gradle | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/borgbutler-webapp/build.gradle b/borgbutler-webapp/build.gradle
index 434caf4..5193a4d 100644
--- a/borgbutler-webapp/build.gradle
+++ b/borgbutler-webapp/build.gradle
@@ -2,7 +2,24 @@
task npmBuild(type: Exec) {
workingDir '.'
-
executable 'sh'
commandLine 'npm', 'run', 'build'
-}
\ No newline at end of file
+}
+
+task packageWebApp(type: Zip) {
+ dependsOn npmBuild
+ baseName 'borgbutler-webapp'
+ extension 'jar'
+ destinationDir file("${projectDir}")
+ from('build') {
+ // optional path under which output will be visible in Java classpath, e.g. static resources path
+ into 'webapp'
+ }
+ doLast {
+ //println "**** projectDir=${projectDir}, buildDir=${buildDir}"
+ mkdir "${buildDir}/libs"
+ def jarFile = archiveFileName.get()
+ ant.move file: "${projectDir}/${jarFile}",
+ toDir: "${buildDir}/libs"
+ }
+}
--
Gitblit v1.10.0