12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- plugins {
- id 'org.springframework.boot' version '2.2.2.RELEASE'
- id 'io.spring.dependency-management' version '1.0.8.RELEASE'
- id 'java'
- }
- group = 'com.zcxk'
- //version = '0.0.1-SNAPSHOT'
- archivesBaseName = "meter-reading-system-v2-${releaseTime()}"
- sourceCompatibility = '1.8'
- tasks.withType(JavaCompile) {
- options.encoding = 'UTF-8'
- }
- def releaseTime() {
- return new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
- }
- configurations {
- compileOnly {
- extendsFrom annotationProcessor
- }
- }
- repositories {
- mavenLocal()
- maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
- mavenCentral()
- }
- dependencies {
- compile fileTree(dir:'libs',include:['*.jar'])
-
- implementation 'org.springframework.boot:spring-boot-starter-web'
- implementation 'org.springframework.boot:spring-boot-starter-aop'
- implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.1'
- 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('mysql:mysql-connector-java')
- compile('com.microsoft.sqlserver:sqljdbc4:4.0')
-
- //kafka
- implementation('org.springframework.kafka:spring-kafka')
- //json工具
- compile('com.alibaba:fastjson:1.2.41')
- implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
-
-
- compileOnly 'org.projectlombok:lombok'
- annotationProcessor 'org.projectlombok:lombok'
- testImplementation('org.springframework.boot:spring-boot-starter-test') {
- exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
- }
- }
- test {
- useJUnitPlatform()
- }
|