1 Star 0 Fork 101

jlutt/tethys

forked from ZY/houge
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 3.76 KB
一键复制 编辑 原始数据 按行查看 历史
kk70 提交于 2021-01-27 16:57 . 新增 yaml 测试依赖
buildscript {
dependencies {
// https://github.com/fabric8io-images/run-java-sh
// run-java.sh 是Java应用程序的通用启动脚本,特别是为从容器中运行而精心编制的。
classpath("io.fabric8:run-java-sh:1.3.8")
}
}
plugins {
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "com.github.hierynomus.license" version "0.15.0"
id "me.champeau.gradle.jmh" version "0.5.0"
id "org.flywaydb.flyway" version "7.3.1"
id "com.novoda.build-properties" version "0.4.1"
id "org.hidetake.ssh" version "2.10.1"
id "com.github.johnrengelman.shadow" version "5.2.0"
id "com.bmuschko.docker-remote-api" version "6.7.0"
}
flyway {
configFiles = ["${projectDir}/flyway.conf"]
}
dependencies {
// flywaydb 需要使用的依赖 https://flywaydb.org/
implementation("org.postgresql:postgresql")
}
allprojects {
apply plugin: "java"
apply plugin: "java-library"
apply plugin: "jacoco"
apply plugin: "checkstyle"
apply plugin: "io.spring.dependency-management"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "me.champeau.gradle.jmh"
version = "1.0.0-SNAPSHOT"
sourceCompatibility = "11"
targetCompatibility = "11"
[compileJava, compileTestJava, javadoc]*.options*.encoding = "UTF-8"
test {
useJUnitPlatform()
testLogging {
exceptionFormat "full"
events "passed", "skipped", "failed"
}
workingDir rootProject.rootDir
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
license {
header = rootProject.file("LICENSE")
headerURI = com.hierynomus.gradle.license.LicenseBasePlugin.classLoader.getResource("headers/Apache-2.0").toURI()
skipExistingHeaders = true
mapping {
java = "SLASHSTAR_STYLE"
}
ext {
year = "2019-2020"
author = "the original author or authors"
}
}
checkstyle {
toolVersion = "8.33"
configFile = rootProject.file("config/checkstyle/google_checks.xml")
}
tasks.withType(Checkstyle) {
reports {
xml.enabled = true
html.enabled = true
}
}
dependencyManagement {
imports {
mavenBom("top.yein.chaos:chaos-bom:1.0-SNAPSHOT")
}
}
dependencies {
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
compileOnly("com.google.code.findbugs:jsr305")
api("org.apache.logging.log4j:log4j-api")
// Test
testCompileOnly("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
testImplementation("org.openjdk.jol:jol-core")
testImplementation("org.junit.platform:junit-platform-launcher")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation("com.github.stefanbirkner:system-lambda")
testImplementation("io.projectreactor:reactor-test")
testImplementation("io.projectreactor:reactor-tools")
testImplementation("io.micrometer:micrometer-test")
testImplementation("org.assertj:assertj-core")
testImplementation("org.mockito:mockito-core")
testImplementation("org.mockito:mockito-inline")
testImplementation("org.powermock:powermock-reflect")
testImplementation("org.testcontainers:testcontainers")
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("com.github.javafaker:javafaker") {
exclude module: "snakeyaml"
}
testImplementation("org.yaml:snakeyaml:1.27")
jmh("org.openjdk.jmh:jmh-core")
jmh("org.openjdk.jmh:jmh-generator-annprocess")
}
repositories {
mavenLocal()
def aliyunEnabled = System.getenv("GITHUB_ACTIONS") == null
if (aliyunEnabled) {
maven { url = "https://maven.aliyun.com/nexus/content/groups/public/" }
}
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
mavenCentral()
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jlutt/tethys.git
git@gitee.com:jlutt/tethys.git
jlutt
tethys
tethys
main

搜索帮助