Created
September 24, 2013 01:41
-
-
Save KevinGreene/6679321 to your computer and use it in GitHub Desktop.
Sample build.gradle and gradle.properties - Comp 439 (Distributed Systems)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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