-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
108 lines (88 loc) · 2.76 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
105
106
107
108
plugins {
id 'com.palantir.docker' version '0.25.0'
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'java'
id 'java-library'
id 'application'
}
ext {
sharedDir = file("${project.rootDir}/shared")
}
group = 'com.exactpro.th2'
version = release_version
sourceCompatibility = 11
targetCompatibility = 11
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
repositories {
maven {
name 'MavenLocal'
url sharedDir
}
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/'
}
mavenLocal()
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
resolutionStrategy.cacheDynamicVersionsFor 0, 'seconds'
}
}
jar {
manifest {
attributes(
'Created-By': "${System.getProperty('java.version')} (${System.getProperty('java.vendor')})",
'Specification-Title': '',
'Specification-Vendor': 'Exactpro Systems LLC',
'Implementation-Title': project.archivesBaseName,
'Implementation-Vendor': 'Exactpro Systems LLC',
'Implementation-Vendor-Id': 'com.exactpro',
'Implementation-Version': project.version
)
}
}
dependencies {
api platform('com.exactpro.th2:bom:4.1.0')
api "com.exactpro.th2:common:3.44.0"
api "com.exactpro.th2:grpc-act-ssh:1.1.0"
implementation "com.fasterxml.jackson.core:jackson-core"
implementation "com.fasterxml.jackson.core:jackson-databind"
implementation "org.slf4j:slf4j-api"
implementation('org.apache.sshd:apache-sshd:2.9.2') {
implementation("org.springframework:spring-beans:5.3.18") {
because("there is no version of apache-sshd without vulnerability. Only maintanance version is affected.")
}
}
implementation "org.apache.commons:commons-text:1.10"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'io.github.microutils:kotlin-logging:1.7.9'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
testImplementation "io.strikt:strikt-core:0.30.0"
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
}
test {
useJUnitPlatform()
}
application {
mainClassName 'com.exactpro.th2.act.bootstrap.ActMain'
}
applicationName = 'service'
distTar {
archiveName "${applicationName}.tar"
}
dockerPrepare {
dependsOn distTar
}
docker {
copySpec.from(tarTree("$buildDir/distributions/${applicationName}.tar"))
}