From 4daa35695413cd2982b01a8e6241ee1a3d997d4a Mon Sep 17 00:00:00 2001 From: Yuuki Furuyama Date: Mon, 26 Sep 2016 01:21:18 +0900 Subject: [PATCH 1/3] Add gradle --- README.md | 12 +++++++----- build.gradle | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 build.gradle diff --git a/README.md b/README.md index ea9d6ee..5761839 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,13 @@ Known issues ====== [Application-specific password](https://support.google.com/accounts/answer/185833) should be used in case of 2-step verification on google account. Otherwise LoginException with reason "BadAuthentication InvalidSecondFactor" will be thrown. +How to install +====== +``` +gradle installDist +./build/install/gaecl/bin/gaeshell --help +``` + Examples of usage ====== Set namespace: @@ -103,8 +110,3 @@ Complete list of supported ​data types: * User * List * StringList - -Build dependencies -=== -- commons-cli-1.2 -- commons-io-2.4 diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..8d0f360 --- /dev/null +++ b/build.gradle @@ -0,0 +1,43 @@ +apply plugin: 'java' +apply plugin: 'application' + +ext { + appengineSdkVersion = '1.9.42' +} + +compileJava { + sourceCompatibility = JavaVersion.VERSION_1_7 + targetCompatibility = JavaVersion.VERSION_1_7 +} + +repositories { + mavenCentral() +} + +dependencies { + compile group: 'commons-io', name: 'commons-io', version: '2.4' + compile group: 'commons-cli', name: 'commons-cli', version: '1.2' + compile group: 'com.google.appengine', name: 'appengine-api-1.0-sdk', version: "${appengineSdkVersion}" + compile group: 'com.google.appengine', name: 'appengine-remote-api', version: "${appengineSdkVersion}" +} + +sourceSets { + main { + java { + srcDir 'src' + } + } +} + +jar { + manifest { + attributes 'Main-Class': 'com.inpun.alt.gaecl.AppEngineShell' + } + from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } +} + +mainClassName = 'com.inpun.alt.gaecl.AppEngineShell' + +startScripts { + applicationName = 'gaeshell' +} From 48a6884df3ab3c9e2f74c38ebdfe9ad4e62c3ada Mon Sep 17 00:00:00 2001 From: Yuuki Furuyama Date: Mon, 26 Sep 2016 01:25:03 +0900 Subject: [PATCH 2/3] Fix usage --- .gitignore | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8237909..387a3b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.class +.gradle # Package Files # *.jar diff --git a/README.md b/README.md index 5761839..ce8b27f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Examples of usage ====== Set namespace: ``` -> namespace "-GLOBAL-"; +> namespace -GLOBAL-; namespace is now "-GLOBAL-" ``` From a443d8fcbe3b42230bbed1f997b69a41e21c1adc Mon Sep 17 00:00:00 2001 From: Yuuki Furuyama Date: Mon, 26 Sep 2016 01:40:11 +0900 Subject: [PATCH 3/3] Tweak --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ce8b27f..f5a0934 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,10 @@ Known issues How to install ====== ``` +# build gradle installDist + +# run ./build/install/gaecl/bin/gaeshell --help ```