Advertisement
Guest User

Untitled

a guest
Nov 14th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. apply plugin: 'java'
  2. apply plugin: 'application'
  3.  
  4. sourceCompatibility = '1.6'
  5. version = '0.1'
  6. mainClassName = 'HelloWorld'
  7.  
  8.  
  9. repositories {
  10. maven {
  11. url "http://repo.dotcms.com/artifactory/libs-release"
  12. }
  13. }
  14.  
  15. dependencies {
  16. compile (group: 'com.dotcms', name: 'dotcms', version: '2.5.1'){
  17. transitive = true
  18. }
  19. }
  20.  
  21. task printDeps(dependsOn: build) << {
  22. configurations*.dependencies.each { println it }
  23. }
  24.  
  25. task listJars << {
  26. configurations.compile.each { File file -> println file.name }
  27. }
  28.  
  29. task list(dependsOn: configurations.compile) << {
  30. println "classpath = ${configurations.compile.collect {File file -> file.name}}"
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement