gradle / test-retry-gradle-plugin

Gradle plugin to retry tests that have failed to mitigate test flakiness.
Apache License 2.0
222 stars 50 forks source link

Faulty `.module` file since version 1.3.0 #179

Closed Toldry closed 1 year ago

Toldry commented 1 year ago

Running gradle build on the following:

buildscript {
    repositories {
        repositories {
            maven {
                url 'https://plugins.gradle.org/m2'
                metadataSources {
                    gradleMetadata()
                    mavenPom()
                }
            }
        }

    }
    dependencies {
        classpath "org.gradle:test-retry-gradle-plugin:1.3.0"
    }
}

apply plugin: "org.gradle.test-retry"

Causes an error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'gradle_retry_reproducer'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find plugin-1.3.0.jar (org.gradle:test-retry-gradle-plugin:1.3.0).
     Searched in the following locations:
         https://plugins.gradle.org/m2/org/gradle/test-retry-gradle-plugin/1.3.0/plugin-1.3.0.jar

This appears to be because of the faulty jar file path plugin-1.3.0.jar included in the .module file: \ https://plugins.gradle.org/m2/org/gradle/test-retry-gradle-plugin/1.3.0/test-retry-gradle-plugin-1.3.0.module

The jar file path should be test-retry-gradle-plugin-1.3.0.jar

Notes: