-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
85 lines (69 loc) · 2.82 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
id "com.exactpro.th2.gradle.component" version "0.1.8"
id 'application'
}
ext {
dockerImageVersion = release_version
cradleVersion = '5.4.4-dev'
}
group 'com.exactpro.th2'
version release_version
kotlin.jvmToolchain(11)
repositories {
mavenCentral()
maven {
name 'Sonatype_snapshots'
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'Sonatype_releases'
url 'https://s01.oss.sonatype.org/content/repositories/releases/'
}
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
dependencies {
implementation 'org.slf4j:slf4j-api'
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'org.apache.commons:commons-lang3'
implementation('com.exactpro.th2:common:5.14.0-dev') {
exclude group: 'com.exactpro.th2', module: 'cradle-core'
exclude group: 'com.exactpro.th2', module: 'cradle-cassandra'
}
implementation 'com.exactpro.th2:common-utils:2.3.0-dev'
implementation "com.exactpro.th2:cradle-core:${cradleVersion}"
implementation "com.exactpro.th2:cradle-cassandra:${cradleVersion}"
implementation 'com.exactpro.th2:grpc-data-provider:0.2.0-dev'
implementation 'io.github.oshai:kotlin-logging:5.1.4'
implementation 'io.prometheus:simpleclient'
implementation(platform('io.ktor:ktor-bom:2.3.12'))
implementation 'io.ktor:ktor-server-netty'
implementation 'io.ktor:ktor-server'
implementation 'org.ehcache:ehcache:3.10.8'
implementation('org.glassfish.jaxb:jaxb-runtime:2.3.9') {
because("'2.3.9' version has 'EDL 1.0' license instead of 'CDDL GPL 1.1' in the '2.3.1'")
}
testImplementation('io.mockk:mockk:1.13.16') { // The last version bases on kotlin 1.6.0
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-reflect' // because we need kotlin reflect with different version
}
testImplementation('org.jetbrains.kotlin:kotlin-reflect') {
because('mockk needs it')
}
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation "org.junit.jupiter:junit-jupiter-params:5.11.4"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
}
tasks.withType(KotlinCompile).configureEach {
compilerOptions {
freeCompilerArgs.add('-opt-in=kotlin.RequiresOptIn')
}
}
application.mainClass = "com.exactpro.th2.rptdataprovider.MainKt"
test.useJUnitPlatform()
dependencyCheck.suppressionFile = 'suppressions.xml'