Spring-boot +Gradle依赖管理+Mybatis 配置文件

task wrapper(type: Wrapper) {
    gradleVersion = '3.5'
}


buildscript {
    ext {
        springBootVersion = '1.5.6.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

apply plugin: 'java'
apply plugin: 'org.springframework.boot'

repositories {
    mavenCentral()
    maven {
        credentials {
            username 'deploy'
            password 'Value888'
        }        
        url 'http://106.14.251.153:18081/nexus/content/repositories/snapshots/'
    }    
    maven {
        credentials {
            username 'deploy'
            password 'Value888'
        }        
        url 'http://106.14.251.153:18081/nexus/content/repositories/releases/'
    }    
}

configurations {
    all*.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}

dependencies {
    compile 'org.springframework.boot:spring-boot-starter-web'
    compile 'org.springframework.boot:spring-boot-starter-log4j2'
    compile 'org.springframework.boot:spring-boot-starter-actuator'
    compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:1.2.1'
    compile "org.springframework.boot:spring-boot-starter-freemarker"
    compile 'org.apache.commons:commons-lang3:3.5'
    compile 'org.mybatis.generator:mybatis-generator-core:1.3.5'
    compile 'org.projectlombok:lombok'
    compile "org.apache.httpcomponents:httpclient"
    compile 'com.alibaba:druid:1.0.29'
    compile 'com.alibaba:fastjson:1.2.29'

    runtime files('./src/main/resources/lib/ojdbc6.jar')
    testCompile 'org.springframework.boot:spring-boot-starter-test'
}

test {
    testLogging {
        showStandardStreams = true
    }
}

if (!hasProperty('mainClass')) {
    ext.mainClass = 'com.ftvalue.customer.CustomerApplication'
}

configurations.all {
    resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

化猿和尚

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值