1 Star 0 Fork 22

刘卫明/jsoncat

forked from SnailClimb/jsoncat 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
chenlei 提交于 2020-10-27 21:36 . [feat]add bean validation.
plugins {
id 'java'
id "checkstyle"
}
group 'com.github.jsoncat'
version '1.0-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
def jacksonVersion = '2.11.2'
def nettyVersion = '4.1.42.Final'
def slf4jVersion = '1.7.25'
def lombokVersion = '1.18.12'
def junitVersion = 'junit-jupiter-api:5.6.1'
def commonsCodecVersion = '1.14'
def reflectionsVersion = '0.9.12'
def cglibVersion = '3.3.0'
def yamlVersion = '1.23'
def validationApiVersion = '2.0.1.Final'
def hibernateValidatorVersion = '6.1.5.Final'
dependencies {
// json解析库:jackson
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
// 网络:Netty
compile "io.netty:netty-all:${nettyVersion}"
// 日志:slf4j
compile "org.slf4j:slf4j-api:${slf4jVersion}"
compile "org.slf4j:slf4j-simple:${slf4jVersion}"
// 注解扫描:reflections
compile "org.reflections:reflections:${reflectionsVersion}"
// 编解码:commons-codec
compile "commons-codec:commons-codec:${commonsCodecVersion}"
// 动态代理:cglib
compile "cglib:cglib:${cglibVersion}"
//yaml配置读取
compile "org.yaml:snakeyaml:${yamlVersion}"
// BEAN验证:JSR-303
compile "javax.validation:validation-api:${validationApiVersion}"
// BEAN验证:Hibernate的Validator实现
compile "org.hibernate:hibernate-validator:${hibernateValidatorVersion}"
// 语法糖:lombok
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testCompileOnly "org.projectlombok:lombok:${lombokVersion}"
testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}"
// 测试:junit5
testImplementation "org.junit.jupiter:${junitVersion}"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
// 接口测试:rest-assured
testImplementation 'io.rest-assured:rest-assured:4.3.1'
}
task copyTestResources(type: Copy) {
from "${projectDir}/src/main/resources"
into "${buildDir}/classes/java/main"
}
processTestResources.dependsOn copyTestResources
apply from: rootProject.file("gradle/git-hooks.gradle")
apply from: rootProject.file("gradle/checkstyle.gradle")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/Liu-Wei-Min/jsoncat.git
git@gitee.com:Liu-Wei-Min/jsoncat.git
Liu-Wei-Min
jsoncat
jsoncat
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385