TeslaClient
TeslaClient copied to clipboard
Gradle build
I created a gradle build file that resolves dependencies, creates the jar, and lets you run the command line version. Not sure how to submit that in a GitHub project I'm not part of. It's small though, so here's the file.
"gradle build" will pull all the dependencies from maven central and create the TeslaClient.jar in build/libs.
"gradle run" will run the interactive shell.
apply plugin: 'java' apply plugin: 'maven' apply plugin: 'application'
sourceCompatibility = 1.7 targetCompatibility = 1.7
mainClassName = "org.noroomattheinn.tesla.test.Interactive"
repositories { mavenCentral() }
sourceSets { main { java { srcDirs "$projectDir/src" include '*/.java' } resources { srcDir "$projectDir/nbproject" } } }
dependencies { compile ('commons-codec:commons-codec:1.8') compile ('org.apache.commons:commons-lang3:3.1') compile ('commons-logging:commons-logging:1.1.3') compile ('com.google.code.geocoder-java:geocoder-java:0.15') compile ('com.google.code.gson:gson:2.2.4') compile ('us.monoid.web:resty:0.3.2') }
run { standardInput = System.in }
Oh, and I'm working on a similar gradle build for VisibleTesla.