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 ea9d6ee..f5a0934 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,21 @@ 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 +====== +``` +# build +gradle installDist + +# run +./build/install/gaecl/bin/gaeshell --help +``` + Examples of usage ====== Set namespace: ``` -> namespace "-GLOBAL-"; +> namespace -GLOBAL-; namespace is now "-GLOBAL-" ``` @@ -103,8 +113,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' +}