forked from Snailclimb/jsoncat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (63 loc) · 2.27 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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")