Skip to content

Commit

Permalink
bump deps to support build on java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed Jul 5, 2024
1 parent b818d13 commit 6d07d1e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
12 changes: 5 additions & 7 deletions allure-scalatest/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ description = "Allure ScalaTest Integration"

apply(plugin = "scala")

val availableScalaVersions = listOf("2.11", "2.12", "2.13")
val defaultScala211Version = "2.11.12"
val defaultScala212Version = "2.12.8"
val defaultScala213Version = "2.13.1"
val availableScalaVersions = listOf("2.12", "2.13")
val defaultScala212Version = "2.12.19"
val defaultScala213Version = "2.13.14"

var selectedScalaVersion = defaultScala213Version

if (hasProperty("scalaVersion")) {
val scalaVersion: String by project
selectedScalaVersion = when (scalaVersion) {
"2.11" -> defaultScala211Version
"2.12" -> defaultScala212Version
"2.13" -> defaultScala213Version
else -> scalaVersion
Expand Down Expand Up @@ -80,8 +78,8 @@ val installAll by tasks.creating {

dependencies {
api(project(":allure-java-commons"))
implementation("org.scalatest:scalatest_$baseScalaVersion:3.1.1")
implementation("org.scala-lang.modules:scala-collection-compat_$baseScalaVersion:2.1.4")
implementation("org.scalatest:scalatest_$baseScalaVersion:3.2.19")
implementation("org.scala-lang.modules:scala-collection-compat_$baseScalaVersion:2.12.0")
testAnnotationProcessor(project(":allure-descriptions-javadoc"))
testImplementation("io.github.glytching:junit-extensions")
testImplementation("org.assertj:assertj-core")
Expand Down
2 changes: 1 addition & 1 deletion allure-spock/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description = "Allure Spock Framework Integration"
apply(plugin = "groovy")

val spockFrameworkVersion = "1.3-groovy-2.5"
val groovyVersion = "2.5.19"
val groovyVersion = "2.5.23"

dependencies {
api(project(":allure-java-commons"))
Expand Down
2 changes: 1 addition & 1 deletion allure-spock2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

val spockFrameworkVersion = "2.3-groovy-3.0"
val groovyVersion = "3.0.13"
val groovyVersion = "3.0.22"

dependencies {
api(project(":allure-java-commons"))
Expand Down
9 changes: 5 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ pluginManagement {
}

plugins {
id("com.gradle.enterprise")
id("com.gradle.develocity") version "3.17.5" apply false
}

val isCiServer = System.getenv().containsKey("CI")

if (isCiServer) {
gradleEnterprise {
apply(plugin = "com.gradle.develocity")
develocity {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
tag("CI")
}
}
Expand Down

0 comments on commit 6d07d1e

Please sign in to comment.