build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * This build file was auto generated by running the Gradle 'init' task
  3. * by 'jessey' at '04.07.16 13:33' with Gradle 2.2.1
  4. *
  5. * This generated file contains a commented-out 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 http://gradle.org/docs/2.2.1/userguide/tutorial_java_projects.html
  8. */
  9. // Apply the java plugin to add support for Java
  10. apply plugin: 'java'
  11. apply plugin: 'application'
  12. version = '1.0'
  13. mainClassName = 'ui.view.Main'
  14. // the fatJar includes all dependencies (all used libraries)
  15. task fatJar(type:Jar){
  16. manifest{
  17. attributes 'Implmenetation-Title': 'Cyber Physical Systems',
  18. 'Implementation-Version': version,
  19. 'Main-Class': 'ui.view.Main'
  20. }
  21. baseName = project.name + '-all'
  22. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  23. with jar
  24. }
  25. jar {
  26. manifest {
  27. attributes 'Main-Class': 'ui.view.Main'
  28. }
  29. }
  30. sourceSets {
  31. test{
  32. java{
  33. srcDirs = ["src/tests"]
  34. }
  35. resources{
  36. srcDir 'res'
  37. }
  38. }
  39. main {
  40. java {
  41. srcDir 'src'
  42. }
  43. resources {
  44. srcDir 'res'
  45. }
  46. }
  47. }
  48. repositories {
  49. mavenCentral()
  50. }
  51. dependencies {
  52. compile fileTree(dir: 'jars', include: ['*.jar'])
  53. compile fileTree(dir: 'jars/commons-compress-1.13', include: ['*.jar'])
  54. testCompile group: 'junit', name: 'junit', version: '4.+'
  55. }
  56. /*
  57. // In this section you declare where to find the dependencies of your project
  58. repositories {
  59. // Use 'jcenter' for resolving your dependencies.
  60. // You can declare any Maven/Ivy/file repository here.
  61. jcenter()
  62. }
  63. // In this section you declare the dependencies for your production and test code
  64. dependencies {
  65. // The production code uses the SLF4J logging API at compile time
  66. compile 'org.slf4j:slf4j-api:1.7.7'
  67. // Declare the dependency for your favourite test framework you want to use in your tests.
  68. // TestNG is also supported by the Gradle Test task. Just change the
  69. // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
  70. // 'test.useTestNG()' to your build script.
  71. testCompile "junit:junit:4.11"
  72. }
  73. */