gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] branch master updated: make running the sandbox


From: gnunet
Subject: [GNUnet-SVN] [libeufin] branch master updated: make running the sandbox from the cmdline easier
Date: Mon, 30 Sep 2019 10:01:14 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 7d33776  make running the sandbox from the cmdline easier
7d33776 is described below

commit 7d33776d78129e3f4f3bbcfbcff0843fb4972bae
Author: Florian Dold <address@hidden>
AuthorDate: Mon Sep 30 10:01:04 2019 +0200

    make running the sandbox from the cmdline easier
---
 .idea/gradle.xml                            |  1 +
 .idea/misc.xml                              |  1 +
 README                                      | 28 +++++++++-------------------
 build.gradle                                | 16 ++++++++++++----
 gradle/wrapper/gradle-wrapper.properties    |  5 +++--
 src/main/kotlin/tech/libeufin/DB.kt         |  2 +-
 src/main/kotlin/{ => tech/libeufin}/Main.kt |  1 -
 7 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 283a2e2..1df1937 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -13,6 +13,7 @@
             <option value="$PROJECT_DIR$" />
           </set>
         </option>
+        <option name="useAutoImport" value="true" />
         <option name="useQualifiedModuleNames" value="true" />
       </GradleProjectSettings>
     </option>
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 6ed36dd..339a05a 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ExternalStorageConfigurationManager" enabled="true" />
+  <component name="ProjectRootManager" version="2" project-jdk-name="12" 
project-jdk-type="JavaSDK" />
 </project>
\ No newline at end of file
diff --git a/README b/README
index 4aa28da..24b9687 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
-Description.
-============
+Description
+===========
 
 The Libeufin Sandbox aims at implementing the server side of multiple
 banking protocols currently used in the European Union.  Notably, the
@@ -7,25 +7,15 @@ EBICS, FinTS, and the major protocols that banks will employ 
to respect
 the PSD2 regulation: 
https://ec.europa.eu/info/law/payment-services-psd-2-directive-eu-2015-2366_en
 
 
-Building and running the sandbox.
-=================================
+Running the sandbox
+===================
 
-The sandox must be exported as JAR in order to be run.
-The following command exports the JAR in GNU/Linux systems.
+Run the sandbox with the following command
 
 $ cd <this repository>
-$ ./gradlew jar
+$ ./gradlew run --console=plain
 
-If the previous step worked, then a new JAR file should
-be located under <this repository>/build/libs/sandbox-$VERSION.jar,
-where $VERSION reflects the value of the 'version' global
-variable from <this repository>/build.gradle.
+Documentation
+=============
 
-The following command runs the sandbox:
-
-$ java -jar <this repository>/build/libs/sandbox-$VERSION.jar
-
-MS Windows users.
-=================
-The steps to follow are the same as in GNU/Linux systems, except
-that the command "gradlew.bat jar" would produce the JAR file.
+See https://docs.libeufin.tech/ for the documentation.
diff --git a/build.gradle b/build.gradle
index 18035e7..41a1a57 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,7 @@
 plugins {
     id 'java'
-    id 'org.jetbrains.kotlin.jvm' version '1.3.41'
+    id 'application'
+    id 'org.jetbrains.kotlin.jvm' version '1.3.50'
 }
 
 version '1.0-SNAPSHOT'
@@ -28,14 +29,21 @@ dependencies {
 }
 
 compileKotlin {
-    kotlinOptions.jvmTarget = "1.8"
+    kotlinOptions {
+        jvmTarget = "1.8"
+    }
 }
 compileTestKotlin {
-    kotlinOptions.jvmTarget = "1.8"
+    kotlinOptions {
+        jvmTarget = "1.8"
+    }
 }
 
-jar {
+application {
+    mainClassName = "tech.libeufin.MainKt"
+}
 
+jar {
     manifest {
         attributes "Main-Class": "tech.libeufin.MainKt"
 
diff --git a/gradle/wrapper/gradle-wrapper.properties 
b/gradle/wrapper/gradle-wrapper.properties
index 44e7c4d..992f535 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,6 @@
+#Mon Sep 30 09:20:29 CEST 2019
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
-zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
diff --git a/src/main/kotlin/tech/libeufin/DB.kt 
b/src/main/kotlin/tech/libeufin/DB.kt
index 8171850..d901808 100644
--- a/src/main/kotlin/tech/libeufin/DB.kt
+++ b/src/main/kotlin/tech/libeufin/DB.kt
@@ -1,4 +1,4 @@
-package tech.libeufin.tech.libeufin
+package tech.libeufin
 
 import org.jetbrains.exposed.dao.*
 import org.jetbrains.exposed.sql.*
diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/tech/libeufin/Main.kt
similarity index 99%
rename from src/main/kotlin/Main.kt
rename to src/main/kotlin/tech/libeufin/Main.kt
index 72e2c74..db06035 100644
--- a/src/main/kotlin/Main.kt
+++ b/src/main/kotlin/tech/libeufin/Main.kt
@@ -38,7 +38,6 @@ import io.ktor.server.netty.Netty
 import org.jetbrains.exposed.sql.transactions.transaction
 import org.w3c.dom.Document
 import tech.libeufin.messages.HEVResponseDataType
-import tech.libeufin.tech.libeufin.*
 import java.text.DateFormat
 import javax.xml.bind.JAXBElement
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]