-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
81 lines (65 loc) · 1.99 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
70
71
72
73
74
75
76
77
78
79
80
81
plugins {
id 'java'
id 'groovy'
id 'checkstyle'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.1'
id 'org.springframework.boot' version '1.5.6.RELEASE'
id 'pl.allegro.tech.build.axion-release' version '1.7.1'
}
scmVersion {
tag.prefix = project.name
hooks {
pre 'fileUpdate',
[file: 'docs/index.md', pattern: { v, c -> /avro-cli-$v/ }, replacement: { v, c -> "avro-cli-$v" }]
}
}
group = 'io.github.rkluszczynski'
project.version = scmVersion.version
sourceCompatibility = 1.8
targetCompatibility = 1.8
def versions = [
avro : '1.8.2',
spring_kafka: '1.2.2.RELEASE',
spock : '1.1-groovy-2.4',
checkstyle : '6.3',
gradle : '4.0.2'
]
dependencies {
compile 'org.springframework.boot:spring-boot-starter',
"org.springframework.kafka:spring-kafka:${versions.spring_kafka}",
"org.apache.avro:avro:${versions.avro}",
'com.beust:jcommander:1.72',
'tech.allegro.schema.json2avro:converter:0.2.5'
testCompile 'com.github.tomakehurst:wiremock:2.6.0',
'cglib:cglib-nodep:3.2.5',
'org.objenesis:objenesis:2.6',
"org.spockframework:spock-core:${versions.spock}",
"org.spockframework:spock-spring:${versions.spock}",
'org.springframework.boot:spring-boot-starter-test',
"org.springframework.kafka:spring-kafka-test:${versions.spring_kafka}"
}
repositories {
mavenCentral()
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
configurations {
checkstyleConfig {
transitive = false
}
}
dependencies {
checkstyleConfig "com.puppycrawl.tools:checkstyle:${versions.checkstyle}"
}
checkstyle {
toolVersion = "${versions.checkstyle}"
// config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, 'google_checks.xml')
}
task wrapper(type: Wrapper) {
gradleVersion = "${versions.gradle}"
}