This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/master by this push:
     new 62eb88a  Fix for issue 63: use docker to build
62eb88a is described below

commit 62eb88abf6fa7a8700613a1f9d533fd97f875423
Author: Antoine Toulme <[email protected]>
AuthorDate: Wed Mar 11 23:45:59 2020 -0700

    Fix for issue 63: use docker to build
---
 README.md | 13 ++-----------
 build.sh  |  7 +++++++
 2 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/README.md b/README.md
index f7e55b7..894ac34 100644
--- a/README.md
+++ b/README.md
@@ -15,24 +15,15 @@ Tuweni is developed for JDK 11 or higher.
 
 ## Build Instructions
 
-You need to have [Gradle](https://www.gradle.org/installation) and 
[Java](https://www.oracle.com/technetwork/java/javase/downloads/index.html) 
installed.
-
-Tuweni requires Gradle 5.0 or higher.
-
-Java 8 should be used for building in order to support both Java 8 and Java 11 
at runtime.
+Install [Docker](https://docs.docker.com/get-docker/).
 
 ## Clone along with submodules ##
     git clone https://github.com/apache/incubator-tuweni.git tuweni
     cd tuweni
     git submodule update --init --recursive
 
-### First bootstrap and download the wrapper ###
-    gradle setup
-    
-This downloads gradle and installs helper scripts for the project under 
`./gradlew` and `./gradlew.bat`.
-
 ### Build the project ###
-    ./gradlew build
+    ./build.sh
 
 
 After a successful build, libraries will be available in `build/libs`.
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..d9eed2f
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+COMMAND=$1
+if [ -z "$COMMAND" ];then
+  COMMAND="build"
+fi
+docker run -it -v `pwd`:/home/gradle gradle:5.0-jdk11 gradle --no-daemon 
-Dorg.gradle.jvmargs="-Xmx2g -XX:MaxMetaspaceSize=512m" $COMMAND
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to