BrainData/git_braindata_backend/springboot/build.gradle

54 lines
1.5 KiB

plugins {
id 'org.springframework.boot' version '2.6.13'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'java'
}
group = 'com.firstspringboot'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
//SpringBoot 基础配置
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'io.springfox:springfox-swagger2:2.9.2'
implementation 'com.github.xiaoymin:swagger-bootstrap-ui:1.8.9'
//Mybatis-plus(简称MP)依赖
implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.1'
implementation 'com.baomidou:mybatis-plus-generator:3.5.1'
implementation 'org.apache.velocity:velocity:1.7'
implementation 'cn.hutool:hutool-all:5.7.20'
implementation 'org.apache.poi:poi-ooxml:4.1.2'
//lombok java库依赖
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
//devtool 用于配置热部署的,可以删去
developmentOnly 'org.springframework.boot:spring-boot-devtools:2.6.3'
//mysql数据库依赖
runtimeOnly 'mysql:mysql-connector-java'
//其他
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
tasks.named('test') {
useJUnitPlatform()
}