thufir

Untitled

Feb 3rd, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. thufir@mordor:~/java/spock-example$
  2. thufir@mordor:~/java/spock-example$ ./gradlew clean test
  3. :clean
  4. :compileJava UP-TO-DATE
  5. :compileGroovy UP-TO-DATE
  6. :processResources UP-TO-DATE
  7. :classes UP-TO-DATE
  8. :compileTestJava UP-TO-DATE
  9. :compileTestGroovy
  10. :processTestResources
  11. :testClasses
  12. :test
  13.  
  14. BUILD SUCCESSFUL
  15.  
  16. Total time: 15.808 secs
  17. thufir@mordor:~/java/spock-example$
  18. thufir@mordor:~/java/spock-example$ ./gradlew clean build
  19. :clean
  20. :compileJava UP-TO-DATE
  21. :compileGroovy UP-TO-DATE
  22. :processResources UP-TO-DATE
  23. :classes UP-TO-DATE
  24. :jar
  25. :assemble
  26. :compileTestJava UP-TO-DATE
  27. :compileTestGroovy
  28. :processTestResources
  29. :testClasses
  30. :test
  31. :check
  32. :build
  33.  
  34. BUILD SUCCESSFUL
  35.  
  36. Total time: 16.488 secs
  37. thufir@mordor:~/java/spock-example$
  38. thufir@mordor:~/java/spock-example$
  39. thufir@mordor:~/java/spock-example$ cat build.gradle
  40. apply plugin: "groovy"
  41.  
  42. version = "1.0"
  43. description = "Spock Framework - Example Project"
  44.  
  45. // Spock works with Java 1.5 and above
  46. sourceCompatibility = 1.5
  47.  
  48. repositories {
  49. // Spock releases are available from Maven Central
  50. mavenCentral()
  51. // Spock snapshots are available from the Sonatype OSS snapshot repository
  52. maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
  53. }
  54.  
  55. dependencies {
  56. // mandatory dependencies for using Spock
  57. compile "org.codehaus.groovy:groovy-all:2.4.1"
  58. testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
  59.  
  60. // optional dependencies for using Spock
  61. testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
  62. testRuntime "cglib:cglib-nodep:3.1" // allows mocking of classes (in addition to interfaces)
  63. testRuntime "org.objenesis:objenesis:2.1" // allows mocking of classes without default constructor (together with CGLIB)
  64.  
  65. // dependencies used by examples in this project
  66. testRuntime "com.h2database:h2:1.4.182"
  67. }
  68.  
  69. // the remaining configuration is specific to this project, and is not required for using Spock
  70.  
  71. apply from: "gradle/ide.gradle"
  72.  
  73. task collectJars(type: Copy) {
  74. into "$buildDir/output/lib"
  75. from configurations.testRuntime
  76. }
  77.  
  78.  
  79.  
  80. thufir@mordor:~/java/spock-example$
Advertisement
Add Comment
Please, Sign In to add comment