123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- buildscript {
- ext {
- springBootVersion = '2.0.6.RELEASE'
- }
- repositories {
- mavenLocal()
- maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
- }
- dependencies {
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
- }
- }
- //apply plugin: 'war'
- apply plugin: 'java'
- apply plugin: 'org.springframework.boot'
- apply plugin: 'io.spring.dependency-management'
- archivesBaseName = "water-api-${releaseTime()}"
- group = 'com.bz'
- //version = '0.0.1-SNAPSHOT'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- jar {
- version = '0.0.1'
- manifest {
- attributes "Manifest-Version": 1.0,
- 'Main-Class': 'com.bz.smart_city.SmartCityApplication'
- }
- }
- repositories {
- mavenLocal()
- maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
- }
- configurations {
- compileOnly {
- extendsFrom annotationProcessor
- }
- }
- dependencies {
- compileOnly 'org.projectlombok:lombok:1.18.10'
- annotationProcessor 'org.projectlombok:lombok:1.18.10'
- testCompileOnly 'org.projectlombok:lombok:1.18.10'
- testAnnotationProcessor 'org.projectlombok:lombok:1.18.10'
- implementation('org.springframework.boot:spring-boot-starter-security')
- implementation('org.springframework.boot:spring-boot-starter-web')
- implementation('org.springframework.boot:spring-boot-starter-thymeleaf')
- implementation('org.springframework.boot:spring-boot-starter-aop')
- implementation('org.springframework.boot:spring-boot-starter-validation')
- implementation('org.springframework.boot:spring-boot-starter-amqp')
- implementation('org.springframework.kafka:spring-kafka')
- compile('mysql:mysql-connector-java')
- //数据源连接池
- //compile('com.alibaba:druid:1.1.6')
- compile('com.alibaba:druid-spring-boot-starter:1.1.9')
- //swagger在线接口文档生成工具
- compile('io.springfox:springfox-swagger2:2.7.0')
- compile('io.springfox:springfox-swagger-ui:2.7.0')
- //分页插件
- //compile('com.github.pagehelper:pagehelper:4.1.0')
- compile('com.github.pagehelper:pagehelper-spring-boot-starter:1.2.10')
- compile ('org.apache.httpcomponents:httpclient:4.5.6')
- //json工具
- compile('com.alibaba:fastjson:1.2.41')
- compile('io.jsonwebtoken:jjwt:0.9.0')
- //redis
- compile('org.springframework.boot:spring-boot-starter-data-redis')
- {
- exclude group: 'io.lettuce'
- }
- compile('redis.clients:jedis')
- compile('org.apache.commons:commons-pool2')
- compileOnly('org.projectlombok:lombok')
- testImplementation('org.springframework.boot:spring-boot-starter-test')
- compile('org.apache.commons:commons-lang3:3.4')
-
- //poi
- compile 'org.apache.poi:poi:3.17'
- compile 'org.apache.poi:poi-ooxml:3.17'
- compile 'org.apache.poi:poi-ooxml-schemas:3.17'
- //jxls
- //compile 'org.jxls.jxls:2.4.6'
- compile 'org.jxls:jxls-poi:1.0.16'
- //activiti
- compile('org.activiti:activiti-spring-boot-starter-basic:5.22.0')
- compile('dom4j:dom4j:1.6.1')
- // quartz
- compile('org.springframework.boot:spring-boot-starter-quartz')
-
- //腾讯云
- compile('com.github.qcloudsms:qcloudsms:1.0.6')
- //netty
- compile ('io.netty:netty-all:4.1.30.Final')
- compile('org.bouncycastle:bcprov-jdk16:1.46')
- //阿里云
- compile('com.aliyun:aliyun-java-sdk-core:4.1.0')
- //jdom
- compile('org.jdom:jdom:1.1')
- }
- tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
- }
- def releaseTime() {
- return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
- }
- allprojects {
- gradle.projectsEvaluated {
- tasks.withType(JavaCompile) {
- options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" }
- }
- }
|