-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (45 loc) · 1.09 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
plugins {
java
scala
id("com.github.johnrengelman.shadow")
id("com.github.ben-manes.versions")
}
group = "io.jawg"
version = "1.0.0-SNAPSHOT"
allprojects {
tasks {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
jar {
enabled = false
}
shadowJar {
manifest {
version = ""
attributes["Main-Class"] = "io.gatling.app.Gatling"
}
}
build { finalizedBy(shadowJar) }
}
}
fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
val regex = "^[0-9,\\.v\\-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
}
tasks.dependencyUpdates {
rejectVersionIf {
isNonStable(candidate.version)
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.scala-lang:scala-library:${property("version.scala")}")
implementation("io.gatling.highcharts:gatling-charts-highcharts:${property("version.gatling")}")
}