살며사랑하며

eclipse gradle cargo 본문

PROGRAM/JAVA

eclipse gradle cargo

drawhan 2017. 11. 2. 20:50

buildscript {
    repositories {
       
jcenter()
    }

    dependencies {
     
classpath "com.bmuschko:gradle-cargo-plugin:2.2.3"
    }
}

apply
plugin: "java"
apply
plugin: "war"
apply
plugin: "com.bmuschko.cargo"

group = 'com.drawhan'
version = '1.0.1'

description = 'Project Description'

sourceCompatibility = 1.8
targetCompatibility = 1.8
//war.baseName = 'ROOT'
war.archiveName "ROOT.war"
project.webAppDirName = '
src/main/webapp'


configurations { providedCompile }
repositories {
    
maven { url "http://repo.maven.apache.org/maven2" }
    
maven { url "http://repo1.maven.org/maven2/" }
    
maven { url "http://repo.springsource.org/libs-milestone-local" }
}

cargo {
    containerId = 'tomcat8x'
    port = 8080

   
deployable {
        context = '/'
    }

    remote {
       
hostname = 'localhost'
       
username = 'tomcat'
        password = '
tomcat'
    }

    local {
        homeDir = file('/PROJECT_DIR/build/
libs')
        outputFile = file('build/output.log')
        timeout = 60000

        containerProperties {
            //property 'cargo.tomcat.ajp.port', 8009
        }
    }
}

dependencies {
   
def cargoVersion = '1.4.5'
    cargo "org.codehaus.cargo:cargo-core-
uberjar:$cargoVersion",
          "org.codehaus.cargo:cargo-ant:$cargoVersion"

    }
}