forked from atlassian/jira-software-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (46 loc) · 1.55 KB
/
build.gradle.kts
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
val kotlinVersion = "1.2.70"
plugins {
kotlin("jvm").version("1.2.70")
`java-library`
id("com.atlassian.performance.tools.gradle-release").version("0.4.3")
}
configurations.all {
resolutionStrategy {
activateDependencyLocking()
failOnVersionConflict()
eachDependency {
when (requested.module.toString()) {
"commons-codec:commons-codec" -> useVersion("1.10")
}
when (requested.group) {
"org.jetbrains.kotlin" -> useVersion(kotlinVersion)
}
}
}
}
dependencies {
api("com.atlassian.performance.tools:jira-actions:[2.1.0,4.0.0)")
api("com.github.stephenc.jcip:jcip-annotations:1.0-1")
api(webdriver("selenium-api"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion")
implementation("org.glassfish:javax.json:1.1")
implementation(webdriver("selenium-support"))
implementation(webdriver("selenium-chrome-driver"))
implementation("org.apache.commons:commons-math3:3.6.1")
log4j(
"api",
"core",
"slf4j-impl"
).forEach { implementation(it) }
testCompile("junit:junit:4.12")
testCompile("org.assertj:assertj-core:3.11.1")
}
fun log4j(
vararg modules: String
): List<String> = modules.map { module ->
"org.apache.logging.log4j:log4j-$module:2.10.0"
}
fun webdriver(module: String): String = "org.seleniumhq.selenium:$module:3.11.0"
val wrapper = tasks["wrapper"] as Wrapper
wrapper.gradleVersion = "4.9"
wrapper.distributionType = Wrapper.DistributionType.ALL