Merge pull request #12391 from hkhan/JAVA-12842-check-gradle-junit-module
[JAVA-12842] Fix junit5 module to work with Gradle 7.x
This commit is contained in:
commit
19d93e8d77
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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…
Reference in New Issue