jpasqua / VisibleTesla

Java App to monitor and Control the Tesla Model S
125 stars 41 forks source link

Gradle build ready if you'd like #59

Open chriskessel opened 10 years ago

chriskessel commented 10 years ago

My apologies, as with the TeslaClient repo, I'm not sure how to submit a change or otherwise let you know I've got a change.

I created a gradle build, added dependency resolution (checked in 3 jars that I couldn't get via dependencies). You should now be able to check out the repo and type:

"gradle build run"

And that'll pop up the GUI. Well, assuming you've build TeslaClient (you can see that expectation in the dependencies section).

Here's the build.gradle, but in addition I checked in 3 jars into a new "lib" subdirectory (on my local branch):

apply plugin: 'java' apply plugin: 'maven' apply plugin: 'application'

sourceCompatibility = 1.7 targetCompatibility = 1.7

mainClassName = "org.noroomattheinn.visibletesla.VisibleTesla"

repositories { mavenCentral() }

sourceSets { main { java { srcDirs "$projectDir/src" include '*/.java' } resources { srcDir "$projectDir/nbproject" srcDir "$projectDir/Documentation" srcDir "$projectDir/src" } } }

def javaHome = System.properties['java.home'] dependencies { compile ('commons-io:commons-io:2.4') compile ('net.sourceforge.jexcelapi:jxl:2.6.12') compile ('com.google.guava:guava:15.0') 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') compile ('it.sauronsoftware.cron4j:cron4j:2.2.5') compile files("$javaHome" + "/lib/jfxrt.jar") compile(fileTree(dir: "$projectDir/lib", include: '.jar')) compile(fileTree(dir: "$projectDir/../TeslaClient/build/libs", include: '.jar')) }

run { standardInput = System.in }