Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // PARENT
- apply plugin: 'eclipse'
- apply plugin: 'idea'
- apply plugin: 'java'
- apply plugin: 'sonar'
- apply plugin: "sonar-runner"
- def APACHE_PATH = "C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/servlet/"
- dependencies {
- compile project(':Core')
- }
- sonarRunner {
- sonarProperties {
- property "sonar.host.url", "http://192.168.0.146:9000"
- property "sonar.jdbc.url", "jdbc:jtds:sqlserver://192.168.0.105/sonar"
- property "sonar.jdbc.driverClassName", "net.sourceforge.jtds.jdbc.Driver"
- property "sonar.jdbc.username", "user"
- property "sonar.jdbc.password", "password"
- }
- }
- allprojects {
- apply plugin: 'java'
- apply plugin: 'eclipse'
- apply plugin: 'idea'
- repositories {
- mavenCentral()
- }
- dependencies {
- testCompile 'junit:junit:4.11'
- }
- }
- subprojects {
- dependencies {
- compile files('../Core/src/main/resources/lib/some_jar.jar')
- /*
- LOTS OF OTHER HARDCODED JARS THAT ARE IN MY RESOUCE LIB FORLDER
- LATER PLANNING ON USING MavenCentral
- */
- testCompile 'junit:junit:4.11'
- }
- }
- // USED TO COPY RUN TIME LIBRARIES TO WEB-INF/lib
- task copyLibsToTomcat(type: Copy) {
- from configurations.runtime
- //into "C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/servlet/WEB-INF/lib"
- into file("$APACHE_PATH/WEB-INF/lib")
- }
- // PROJECT SPECIFIC THINGS
- task copyDownloads(type: Copy) {
- from project(':Core').file('src/main/resources/downloads')
- //into file("C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/servlet/downloads")
- into file("$APACHE_PATH/downloads")
- }
- // PROJECT SPECIFIC THINGS
- task copyReports(type: Copy) {
- file("$APACHE_PATH/reports").mkdir()
- }
- tasks.eclipse.doLast {
- delete ".project"
- }
Advertisement
RAW Paste Data
Copied
Advertisement