-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·104 lines (89 loc) · 2.94 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
ext {
kotlinVersion = '1.3.71'
kotlinGeneratedVersion = '1.5.0'
}
repositories {
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion"
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlinVersion"
classpath "nl.fabianm.kotlin.plugin.generated:plugin-gradle:$kotlinGeneratedVersion"
}
}
subprojects {
apply plugin: 'jacoco'
apply plugin: 'kotlin'
apply plugin: 'kotlin-jpa'
apply plugin: 'kotlin-spring'
apply plugin: 'nl.fabianm.kotlin.plugin.generated'
group 'com.github.danzx.xof'
version '1.2.1'
sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://plugins.gradle.org/m2/' }
}
ext {
h2Version = '1.4.200'
jacksonVersion = '2.10.2'
javaxInjectVersion = '1'
junitVersion = '5.6.0'
kotlinTestVersion = '3.4.2'
kxdateVersion = '1.0.0'
logbackVersion = '1.2.3'
mockkVersion = '1.9.3'
postgresVersion = '42.2.11'
springBootVersion = '2.2.4.RELEASE'
springfoxSwaggerVersion = '2.9.2'
springMockkVersion = '1.1.3'
}
dependencies {
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
api "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
testImplementation "com.github.yongjhih.kxdate:kxdate:$kxdateVersion"
testImplementation "io.kotlintest:kotlintest-runner-junit5:$kotlinTestVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation "io.mockk:mockk:$mockkVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}
compileKotlin {
kotlinOptions.freeCompilerArgs = ['-Xjsr305=strict', "-Xinline-classes"]
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ['-Xjsr305=strict']
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}
test {
useJUnitPlatform()
}
jacoco {
toolVersion = '0.8.5'
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
afterEvaluate {
classDirectories.from = files(classDirectories.files.collect {
fileTree(dir: it, exclude: jacocoExcludes)
})
}
}
task stage {
dependsOn 'clean'
dependsOn 'assemble'
tasks.findByName('assemble').mustRunAfter 'clean'
}
}
wrapper {
gradleVersion = '5.6.2'
}