|
| 1 | +/* |
| 2 | + * This build file was auto generated by running the Gradle 'init' task |
| 3 | + * by 'esda' at '3/4/17 1:31 AM' with Gradle 2.14.1 |
| 4 | + * |
| 5 | + * This generated file contains a sample Java project to get you started. |
| 6 | + * For more details take a look at the Java Quickstart chapter in the Gradle |
| 7 | + * user guide available at https://docs.gradle.org/2.14.1/userguide/tutorial_java_projects.html |
| 8 | + */ |
| 9 | + |
| 10 | +// Apply the java plugin to add support for Java |
| 11 | +apply plugin: 'java' |
| 12 | +apply plugin: 'application' |
| 13 | + |
| 14 | +sourceCompatibility = 1.7 |
| 15 | +version = '1.0' |
| 16 | +mainClassName = 'robot.localization.main.Main' |
| 17 | +jar { |
| 18 | + manifest { |
| 19 | + attributes 'Implementation-Title': 'Robot Localization', |
| 20 | + 'Implementation-Version': version, |
| 21 | + 'Main-Class': 'robot.localization.main.Main' |
| 22 | + } |
| 23 | + |
| 24 | + doFirst { |
| 25 | + from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } |
| 26 | + } |
| 27 | + exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' |
| 28 | +} |
| 29 | + |
| 30 | + |
| 31 | +// In this section you declare where to find the dependencies of your project |
| 32 | +repositories { |
| 33 | + // Use 'jcenter' for resolving your dependencies. |
| 34 | + // You can declare any Maven/Ivy/file repository here. |
| 35 | + jcenter() |
| 36 | +} |
| 37 | + |
| 38 | +// In this section you declare the dependencies for your production and test code |
| 39 | +dependencies { |
| 40 | + |
| 41 | + // MQTT Java Client |
| 42 | + compile group: 'org.eclipse.paho', name: 'org.eclipse.paho.client.mqttv3', version: '1.1.0' |
| 43 | + |
| 44 | + //Apache Commons |
| 45 | + compile group: 'commons-validator', name: 'commons-validator', version: '1.5.1' |
| 46 | + |
| 47 | + //JSON |
| 48 | + compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.6' |
| 49 | + compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.6' |
| 50 | + compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.8.6' |
| 51 | + |
| 52 | + // Declare the dependency for your favourite test framework you want to use in your tests. |
| 53 | + // TestNG is also supported by the Gradle Test task. Just change the |
| 54 | + // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add |
| 55 | + // 'test.useTestNG()' to your build script. |
| 56 | + testCompile 'junit:junit:4.12' |
| 57 | +} |
0 commit comments