Consuming the RC1 artifact of junit-jupiter-engine with Gradle fails due to an invalid POM:
â–¶ ./gradlew --refresh-dependencies clean build
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':testRuntimeClasspath'.
> Could not resolve org.junit.jupiter:junit-jupiter-engine:5.0.0-RC1.
Required by:
project :
> Could not resolve org.junit.jupiter:junit-jupiter-engine:5.0.0-RC1.
> Could not parse POM https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-engine/5.0.0-RC1/junit-jupiter-engine-5.0.0-RC1.pom
> Unable to resolve version for dependency 'org.jetbrains.kotlin:kotlin-stdlib-jre8:jar'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED in 2s
6 actionable tasks: 6 executed
Hello,
Having the same issue:
Resource missing. [HTTP GET: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.01/junit-jupiter-api-5.01.pom]
Resource missing. [HTTP HEAD: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.01/junit-jupiter-api-5.01.jar]
:compileTestJava FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Could not resolve all files for configuration ':testCompileClasspath'.
> Could not find org.junit.jupiter:junit-jupiter-api:5.01.
Searched in the following locations:
https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.01/junit-jupiter-api-5.01.pom
https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/5.01/junit-jupiter-api-5.01.jar
Required by:
project :
Having this problem, when trying to execute build task.
Used components: Junit 5.01, Java 8, Gradle 4.2.1.
I think your version is incorrect - 5.0.1 instead of 5.01
mkobit, thanks, my bad in this case...
Most helpful comment
I think your version is incorrect -
5.0.1instead of5.01