Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- apply plugin: 'maven'
- apply plugin: 'war'
- apply plugin: com.bmuschko.gradle.cargo.CargoPlugin
- group = 'com.simbirsoft.origolo'
- version = '1.0-SNAPSHOT'
- description = """Example Spring Boot REST Service"""
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'com.bmuschko:gradle-cargo-plugin:2.2.2'
- }
- }
- repositories {
- mavenCentral()
- }
- dependencies {
- compile(group: 'org.springframework.boot', name: 'spring-boot-starter', version: '1.3.2.RELEASE') {
- exclude(module: 'commons-logging')
- }
- compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '1.3.2.RELEASE'
- compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.3.2.RELEASE'
- compile group: 'com.zaxxer', name: 'HikariCP', version: '2.4.3'
- compile group: 'org.hibernate', name: 'hibernate-validator', version: '5.2.2.Final'
- compile group: 'javax.inject', name: 'javax.inject', version: '1'
- compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.2.2'
- compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.2.2'
- runtime group: 'org.postgresql', name: 'postgresql', version: '9.4-1201-jdbc41'
- def cargoVersion = '1.4.18'
- cargo "org.codehaus.cargo:cargo-core-uberjar:$cargoVersion",
- "org.codehaus.cargo:cargo-ant:$cargoVersion"
- }
- task testTask << {
- println project.ext.getProperty('tomcat_hostname');
- println "done";
- }
- cargo {
- containerId = 'tomcat8x'
- port = 8080
- deployable {
- file = file('build/libs/origolo-1.0-SNAPSHOT.war')
- context = '/'
- }
- remote {
- hostname = project.ext.getProperty('tomcat_hostname')
- username = 'tomcat'
- password = 'tomcat'
- }
- }
Add Comment
Please, Sign In to add comment