加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
plugins {
id 'java'
id 'idea'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.springframework.boot' version '2.5.11' apply false
id 'nu.studer.jooq' version '6.0.1' apply false
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
apply plugin: 'nu.studer.jooq'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
group 'com.databasir'
version '1.0.0'
ext {
lombokVersion = '1.18.22'
mapstructVersion = '1.4.2.Final'
junitVersion = '5.7.0'
slf4jVersion = '1.7.32'
jooqVersion = '3.15.5'
mysqlConnectorVersion = '8.0.27'
postgresqlConnectorVersion = '42.3.1'
hikariVersion = '5.0.0'
jacksonVersion = '2.13.1'
easyExcelVersion = '3.0.5'
freemarkerVersion = '2.3.31'
retrofitVersion = '2.9.0'
commonsIoVersion = '2.11.0'
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
implementation "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
implementation "org.mapstruct:mapstruct:${mapstructVersion}"
annotationProcessor "org.mapstruct:mapstruct-processor:${mapstructVersion}"
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
implementation "com.alibaba:easyexcel:${easyExcelVersion}"
implementation "org.freemarker:freemarker:${freemarkerVersion}"
implementation "commons-io:commons-io:${commonsIoVersion}"
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
checkstyle {
toolVersion = '8.42'
ignoreFailures = false
maxWarnings = 0
}
jacocoTestReport {
dependsOn test
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('reports/jacoco/html')
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化