[JAVA-12842] Fix junit5 module to work with Gradle 7.x

This commit is contained in:
Haroon Khan 2022-06-20 22:26:52 +01:00
parent 02c9bdff35
commit 8c3f4fe73c
5 changed files with 9 additions and 8 deletions

View File

@ -5,7 +5,5 @@ This module contains articles about Gradle
## Relevant articles:
- [Introduction to Gradle](https://www.baeldung.com/gradle)
- [Writing Custom Gradle Plugins](https://www.baeldung.com/gradle-create-plugin)
- [Creating a Fat Jar in Gradle](https://www.baeldung.com/gradle-fat-jar)
- [A Custom Task in Gradle](https://www.baeldung.com/gradle-custom-task)
- [Using JUnit 5 with Gradle](https://www.baeldung.com/junit-5-gradle)
- [Dependency Management in Gradle](https://www.baeldung.com/gradle-dependency-management)

4
gradle/junit5/README.md Normal file
View File

@ -0,0 +1,4 @@
### Relevant Articles:
- [Using JUnit 5 with Gradle](https://www.baeldung.com/junit-5-gradle)

View File

@ -6,15 +6,14 @@ plugins {
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
// Only necessary for JUnit 3 and 4 tests
testCompileOnly 'junit:junit:4.12'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.3.1'
testCompileOnly 'junit:junit:4.12'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.3.1'
}
repositories {
jcenter()
mavenCentral()
}
test {

View File

@ -0,0 +1 @@
rootProject.name = 'gradle-junit5'

View File

@ -4,7 +4,6 @@ include 'greeting-library'
include 'greeting-library-java'
include 'greeter'
include 'gradletaskdemo'
include 'junit5'
include 'gradle-employee-app'
include 'gradle-source-vs-target-compatibility'