Skip to content

Gradle build #5

@chriskessel

Description

@chriskessel

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions