Skip to content

Instantly share code, notes, and snippets.

@KevinGreene
Created September 24, 2013 01:41
Show Gist options
  • Select an option

  • Save KevinGreene/6679321 to your computer and use it in GitHub Desktop.

Select an option

Save KevinGreene/6679321 to your computer and use it in GitHub Desktop.
Sample build.gradle and gradle.properties - Comp 439 (Distributed Systems)
apply plugin: 'java'
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
compile 'org.antlr:antlr4:4.1'
compile 'org.codehaus.groovy:groovy-all:2.1.7'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testCompile 'org.hamcrest:hamcrest-core:1.2.1'
}
task runApp(dependsOn: 'classes', type: JavaExec) {
main = 'com.ds.TaskApp'
classpath = sourceSets.main.runtimeClasspath
args = [threads, inputFile]//'src/main/resources/nodes.in']
}
task generateNodes(dependsOn: 'classes', type: JavaExec) {
main = 'com.ds.NodeGenerator'
classpath = sourceSets.main.runtimeClasspath
args = [numberOfTasks]
}
threads = 4
inputFile = src/main/resources/nodes.in
numberOfTasks = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment