Junit5: Fix Gradle consumption of junit-jupiter-engine

Created on 30 Jul 2017  Â·  3Comments  Â·  Source: junit-team/junit5

Overview

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

Deliverables

  • [x] Exclude 'test' scope dependencies from generated POM
Jupiter Kotlin bug

Most helpful comment

I think your version is incorrect - 5.0.1 instead of 5.01

All 3 comments

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.

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...

Was this page helpful?
0 / 5 - 0 ratings