From 59e705d0126cb21cd6d24ec2416cb0bd9337d375 Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Wed, 19 Aug 2026 15:57:53 +0200 Subject: [PATCH] using Gradle to deploy Kontor --- kontor-spring/deploy.gradle | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 kontor-spring/deploy.gradle diff --git a/kontor-spring/deploy.gradle b/kontor-spring/deploy.gradle new file mode 100644 index 0000000..2298cdc --- /dev/null +++ b/kontor-spring/deploy.gradle @@ -0,0 +1,42 @@ +buildscript { + repositories { + maven { + url = uri("https://nexus.thpeetz.de/repository/maven-central") + } + } + dependencies { + classpath "de.thpeetz:kontor-spring:0.3.0-SNAPSHOT" + } +} + +plugins { + id 'java' +} + +repositories { + maven { + url = uri("https://nexus.thpeetz.de/repository/maven-central") + } +} + +configurations { + deployConf { + canBeResolved = true + canBeConsumed = true + } +} + +dependencies { + deployConf "de.thpeetz:kontor-spring:0.3.0-SNAPSHOT" + implementation "de.thpeetz:kontor-spring:0.3.0-SNAPSHOT" +} + +def destinationDir = file("/home/tpeetz/prod") + +task deployKontor(type: Copy) { + inputs.files(configurations.implementation) + outputs.dir(destinationDir) + from configurations.implementation + //from buildscript.configurations.classpath + into destinationDir +}