-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
99 lines (85 loc) · 2.66 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
plugins {
id "application"
id "org.jetbrains.kotlin.jvm" version "1.8.22"
id "com.exactpro.th2.gradle.component" version "0.1.1"
}
ext {
sailfishVersion = '3.3.241'
}
ext.excludeSailfish = { rcd ->
rcd.excludeModule("com.exactpro.sf", "sailfish-core")
rcd.excludeModule("com.exactpro.sf", "sailfish-common")
rcd.excludeModule("com.exactpro.sf", "sailfish-rest-api-client")
rcd.excludeModule("com.exactpro.sf", "service-http")
}
group = 'com.exactpro.th2'
version = release_version
repositories {
maven {
name 'Sonatype_snapshots'
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
content {
excludeSailfish(it)
}
}
// ignoreGradleMetadataRedirection is used for sonatype because
// Sailfish dependencies have constrains that interfere with our BOM
// so we exclude Gradle metadata for this repositories.
// We've checked these versions - they are compatible and safe to use
maven {
name 'Sonatype_snapshots'
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
metadataSources {
mavenPom()
artifact()
ignoreGradleMetadataRedirection()
}
}
maven {
name 'Sonatype_releases'
url 'https://s01.oss.sonatype.org/content/repositories/releases/'
content {
excludeSailfish(it)
}
}
maven {
name 'Sonatype_releases'
url 'https://s01.oss.sonatype.org/content/repositories/releases/'
metadataSources {
mavenPom()
artifact()
ignoreGradleMetadataRedirection()
}
}
mavenCentral()
mavenLocal()
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
}
kotlin {
jvmToolchain(11)
}
dependencies {
implementation 'com.exactpro.th2:common:5.14.0-dev'
implementation 'com.exactpro.th2:sailfish-utils:4.1.1-dev'
implementation 'com.exactpro.th2:common-utils:2.2.3-dev'
implementation group: 'io.reactivex.rxjava3', name: 'rxjava', version: '3.1.8'
implementation 'org.slf4j:slf4j-api'
implementation 'io.prometheus:simpleclient'
implementation("com.exactpro.sf:sailfish-core:${sailfishVersion}")
testImplementation('org.apache.logging.log4j:log4j-slf4j2-impl') {
because('logging in testing')
}
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.3'
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
}
application {
mainClass.set('com.exactpro.th2.conn.MicroserviceMain')
}