build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. mainClassName = 'ui.view.Main'
  13. jar {
  14. manifest {
  15. attributes 'Main-Class': 'ui.view.Main'
  16. }
  17. }
  18. sourceSets {
  19. test{
  20. java{
  21. srcDirs = ["src/tests"]
  22. }
  23. resources{
  24. srcDir 'res'
  25. }
  26. }
  27. main {
  28. java {
  29. srcDir 'src'
  30. }
  31. resources {
  32. srcDir 'res'
  33. }
  34. }
  35. }
  36. repositories {
  37. mavenCentral()
  38. }
  39. dependencies {
  40. compile fileTree(dir: 'jars', include: ['*.jar'])
  41. compile fileTree(dir: 'jars/commons-compress-1.13', include: ['*.jar'])
  42. testCompile group: 'junit', name: 'junit', version: '4.+'
  43. }
  44. /*
  45. // In this section you declare where to find the dependencies of your project
  46. repositories {
  47. // Use 'jcenter' for resolving your dependencies.
  48. // You can declare any Maven/Ivy/file repository here.
  49. jcenter()
  50. }
  51. // In this section you declare the dependencies for your production and test code
  52. dependencies {
  53. // The production code uses the SLF4J logging API at compile time
  54. compile 'org.slf4j:slf4j-api:1.7.7'
  55. // Declare the dependency for your favourite test framework you want to use in your tests.
  56. // TestNG is also supported by the Gradle Test task. Just change the
  57. // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
  58. // 'test.useTestNG()' to your build script.
  59. testCompile "junit:junit:4.11"
  60. }
  61. */