Skip to content

Commit 36f5c45

Browse files
committed
Compile against junit 5 12.
1 parent ea97c0c commit 36f5c45

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@ ScalaTest + JUnit provides integration support between ScalaTest and JUnit 5.
33

44
**Usage**
55

6-
To use it for ScalaTest 3.2.19 and JUnit 5.11:
6+
To use it for ScalaTest 3.2.19 and JUnit 5.12:
77

88
SBT:
99

1010
```
11-
libraryDependencies += "org.scalatestplus" %% "junit-5-11" % "3.2.19.0" % Test
11+
libraryDependencies += "org.scalatestplus" %% "junit-5-12" % "3.2.19.0" % Test
1212
```
1313

1414
Maven:
1515

1616
```
1717
<dependency>
1818
<groupId>org.scalatestplus</groupId>
19-
<artifactId>junit-5-11_3</artifactId>
19+
<artifactId>junit-5-12_3</artifactId>
2020
<version>3.2.19.0</version>
2121
<scope>test</scope>
2222
</dependency>
2323
```
2424

25-
Gradle:
25+
Gradle:
2626

2727
```
2828
dependencies {
29-
implementation "org.scala-lang:scala3-library:3.3.4"
29+
implementation "org.scala-lang:scala3-library:3.3.5"
3030
3131
testImplementation "org.scalatest:scalatest_3:3.2.19"
32-
testImplementation "org.junit.platform:junit-platform-launcher:1.11.3"
33-
testRuntimeOnly "org.junit.platform:junit-platform-engine:1.11.3"
34-
testRuntimeOnly "org.scalatestplus:junit-5-10_3:3.2.19.0"
32+
testImplementation "org.junit.platform:junit-platform-launcher:1.12.0"
33+
testRuntimeOnly "org.junit.platform:junit-platform-engine:1.12.0"
34+
testRuntimeOnly "org.scalatestplus:junit-5-12_3:3.2.19.0"
3535
}
3636
3737
test {
@@ -44,16 +44,16 @@ test {
4444
}
4545
```
4646

47-
Gradle (Kotlin):
47+
Gradle (Kotlin):
4848

4949
```
5050
dependencies {
51-
implementation("org.scala-lang:scala3-library:3.3.4")
51+
implementation("org.scala-lang:scala3-library:3.3.5")
5252
5353
testImplementation("org.scalatest:scalatest_3:3.2.19")
54-
testRuntimeOnly("org.junit.platform:junit-platform-engine:1.11.3")
55-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.3")
56-
testRuntimeOnly("org.scalatestplus:junit-5-10_3:3.2.19.0")
54+
testRuntimeOnly("org.junit.platform:junit-platform-engine:1.12.0")
55+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.0")
56+
testRuntimeOnly("org.scalatestplus:junit-5-12_3:3.2.19.0")
5757
}
5858
5959
tasks {
@@ -85,4 +85,4 @@ Please use the following commands to publish to Sonatype:
8585

8686
```
8787
$ sbt +publishSigned
88-
```
88+
```

build.sbt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import java.io.PrintWriter
22
import scala.io.Source
33

4-
name := "junit-5.11"
4+
name := "junit-5.12"
55

66
organization := "org.scalatestplus"
77

@@ -31,8 +31,8 @@ scalaVersion := "2.13.15"
3131
crossScalaVersions := List(
3232
"2.11.12",
3333
"2.12.20",
34-
"2.13.15",
35-
"3.3.4"
34+
"2.13.16",
35+
"3.3.5"
3636
)
3737

3838
scalacOptions ++= Seq("-target:jvm-1.8")
@@ -47,8 +47,8 @@ Compile / unmanagedSourceDirectories ++= {
4747
}
4848

4949
val scalatestVersion = "3.2.19"
50-
val junitVersion = "5.11.3"
51-
val junitEngineVersion = "1.11.3"
50+
val junitVersion = "5.12.0"
51+
val junitEngineVersion = "1.12.0"
5252

5353
libraryDependencies ++= Seq(
5454
"org.scalatest" %% "scalatest-core" % scalatestVersion,

examples/gradle-example/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ repositories {
88
}
99

1010
dependencies {
11-
implementation "org.scala-lang:scala3-library_3:3.3.4"
11+
implementation "org.scala-lang:scala3-library_3:3.3.5"
1212

1313
testImplementation "org.scalatest:scalatest_3:3.2.19"
14-
testImplementation "org.junit.platform:junit-platform-launcher:1.11.3"
15-
testRuntimeOnly "org.junit.platform:junit-platform-engine:1.11.3"
16-
testRuntimeOnly "org.scalatestplus:junit-5-11_3:3.2.19.0"
14+
testImplementation "org.junit.platform:junit-platform-launcher:1.12.0"
15+
testRuntimeOnly "org.junit.platform:junit-platform-engine:1.12.0"
16+
testRuntimeOnly "org.scalatestplus:junit-5-12_3:3.2.19.0"
1717
}
1818

1919
test {

examples/gradle-kotlin-dsl-example/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ repositories {
99
}
1010

1111
dependencies {
12-
implementation("org.scala-lang:scala3-library_3:3.3.4")
12+
implementation("org.scala-lang:scala3-library_3:3.3.5")
1313

1414
testImplementation("org.scalatest:scalatest_3:3.2.19")
15-
testRuntimeOnly("org.junit.platform:junit-platform-engine:1.11.3")
16-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.3")
17-
testRuntimeOnly("org.scalatestplus:junit-5-11_3:3.2.19.0")
15+
testRuntimeOnly("org.junit.platform:junit-platform-engine:1.12.0")
16+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.0")
17+
testRuntimeOnly("org.scalatestplus:junit-5-12_3:3.2.19.0")
1818
}
1919

2020
tasks {

examples/maven-example/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
<properties>
1313
<java.version>1.8</java.version>
14-
<junit.version>1.11.3</junit.version>
14+
<junit.version>1.12.0</junit.version>
1515
<scalatest.version>3.2.19</scalatest.version>
1616
<scala.compat.version>3</scala.compat.version>
17-
<scala.version>3.3.4</scala.version>
17+
<scala.version>3.3.5</scala.version>
1818
<scala.maven.plugin>4.7.1</scala.maven.plugin>
1919
<maven.surefire.version>3.0.0-M7</maven.surefire.version>
2020

@@ -62,7 +62,7 @@
6262
</dependency>
6363
<dependency>
6464
<groupId>org.scalatestplus</groupId>
65-
<artifactId>junit-5-11_${scala.compat.version}</artifactId>
65+
<artifactId>junit-5-12_${scala.compat.version}</artifactId>
6666
<version>${scalatest.version}.0</version>
6767
<scope>test</scope>
6868
</dependency>

src/main/scala/org/scalatestplus/junit5/JUnitSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ package org.scalatestplus.junit5;
5353
* </pre>
5454
*
5555
* <p>
56-
* This version of <code>JUnitSuite</code> was tested with JUnit version 5.10.
56+
* This version of <code>JUnitSuite</code> was tested with JUnit version 5.12.
5757
* </p>
5858
*
5959
* <p>

0 commit comments

Comments
 (0)