Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
33
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // PARENT
  2.  
  3. apply plugin: 'eclipse'
  4. apply plugin: 'idea'
  5. apply plugin: 'java'
  6. apply plugin: 'sonar'
  7. apply plugin: "sonar-runner"
  8.  
  9. def APACHE_PATH = "C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/servlet/"
  10.  
  11. dependencies {
  12. compile project(':Core')
  13. }
  14.  
  15. sonarRunner {
  16. sonarProperties {
  17. property "sonar.host.url", "http://192.168.0.146:9000"
  18. property "sonar.jdbc.url", "jdbc:jtds:sqlserver://192.168.0.105/sonar"
  19. property "sonar.jdbc.driverClassName", "net.sourceforge.jtds.jdbc.Driver"
  20. property "sonar.jdbc.username", "user"
  21. property "sonar.jdbc.password", "password"
  22. }
  23. }
  24.  
  25.  
  26. allprojects {
  27. apply plugin: 'java'
  28. apply plugin: 'eclipse'
  29. apply plugin: 'idea'
  30.  
  31. repositories {
  32. mavenCentral()
  33. }
  34.  
  35. dependencies {
  36. testCompile 'junit:junit:4.11'
  37. }
  38. }
  39.  
  40. subprojects {
  41.  
  42. dependencies {
  43. compile files('../Core/src/main/resources/lib/some_jar.jar')
  44. /*
  45. LOTS OF OTHER HARDCODED JARS THAT ARE IN MY RESOUCE LIB FORLDER
  46. LATER PLANNING ON USING MavenCentral
  47. */
  48. testCompile 'junit:junit:4.11'
  49. }
  50. }
  51.  
  52. // USED TO COPY RUN TIME LIBRARIES TO WEB-INF/lib
  53. task copyLibsToTomcat(type: Copy) {
  54. from configurations.runtime
  55. //into "C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/servlet/WEB-INF/lib"
  56. into file("$APACHE_PATH/WEB-INF/lib")
  57. }
  58.  
  59. // PROJECT SPECIFIC THINGS
  60. task copyDownloads(type: Copy) {
  61. from project(':Core').file('src/main/resources/downloads')
  62. //into file("C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/servlet/downloads")
  63. into file("$APACHE_PATH/downloads")
  64. }
  65.  
  66. // PROJECT SPECIFIC THINGS
  67. task copyReports(type: Copy) {
  68. file("$APACHE_PATH/reports").mkdir()
  69. }
  70.  
  71. tasks.eclipse.doLast {
  72. delete ".project"
  73. }
Advertisement
RAW Paste Data Copied
Advertisement