[JAVA-12842] Fix junit5 module to work with Gradle 7.x
This commit is contained in:
parent
02c9bdff35
commit
8c3f4fe73c
@ -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
4
gradle/junit5/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
### Relevant Articles:
|
||||
|
||||
- [Using JUnit 5 with Gradle](https://www.baeldung.com/junit-5-gradle)
|
||||
|
@ -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 {
|
||||
|
1
gradle/junit5/settings.gradle
Normal file
1
gradle/junit5/settings.gradle
Normal file
@ -0,0 +1 @@
|
||||
rootProject.name = 'gradle-junit5'
|
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user