build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. testCompile group: 'junit', name: 'junit', version: '4.+'
  42. }
  43. /*
  44. // In this section you declare where to find the dependencies of your project
  45. repositories {
  46. // Use 'jcenter' for resolving your dependencies.
  47. // You can declare any Maven/Ivy/file repository here.
  48. jcenter()
  49. }
  50. // In this section you declare the dependencies for your production and test code
  51. dependencies {
  52. // The production code uses the SLF4J logging API at compile time
  53. compile 'org.slf4j:slf4j-api:1.7.7'
  54. // Declare the dependency for your favourite test framework you want to use in your tests.
  55. // TestNG is also supported by the Gradle Test task. Just change the
  56. // testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
  57. // 'test.useTestNG()' to your build script.
  58. testCompile "junit:junit:4.11"
  59. }
  60. */