commit 262b1eb173cdc1cd8484cee51dbca8ed93ee506f
parent 1579a391a0062404d97c32bc95cf112ccc06bbdc
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Wed, 15 Apr 2020 15:39:01 +0200
provide custom installation task (copy-based)
Diffstat:
4 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/build.gradle b/build.gradle
@@ -3,4 +3,4 @@ allprojects {
mavenCentral()
jcenter()
}
-}
+}
+\ No newline at end of file
diff --git a/nexus/build.gradle b/nexus/build.gradle
@@ -1,7 +1,7 @@
plugins {
id 'java'
- id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'application'
+ id 'org.jetbrains.kotlin.jvm' version '1.3.50'
/**
* Design choice: native installation logic doesn't provide one
* single command to generate a unique jar, and even by generating
@@ -14,7 +14,19 @@ plugins {
id "com.github.johnrengelman.shadow" version "5.2.0"
}
-// project.findProperty('prefix') ?: '/tmp', reads from command line -Pkey=value options
+task installToPrefix(type: Copy) {
+ from("build/install/nexus-shadow") {
+ include("**/nexus")
+ include("**/*.jar")
+ }
+ /**
+ * Reads from command line -Pkey=value options,
+ * with a default (/tmp) if the key is not found.
+ *
+ * project.findProperty('prefix') ?: '/tmp'
+ */
+ into "${project.findProperty('prefix') ?: '/tmp'}"
+}
apply plugin: 'kotlin-kapt'
diff --git a/settings.gradle b/settings.gradle
@@ -1,4 +1,4 @@
rootProject.name = 'libeufin'
include("sandbox")
include("nexus")
-include("util")
+include("util")
+\ No newline at end of file
diff --git a/util/build.gradle b/util/build.gradle
@@ -1,7 +1,8 @@
plugins {
id 'java'
- id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'application'
+ id 'org.jetbrains.kotlin.jvm' version '1.3.50'
+
}
sourceCompatibility = "11"