7.1 rc1

The Gradle team is excited to announce Gradle 7.1-rc-1.

Read the Release Notes

This is a companion discussion topic for the original entry at https://github.com/gradle/gradle/releases/tag/v7.1.0-RC1

With the 7.1-rc-1 release we see an error with the latest build scan plugin (and earlier versions of the plugin too). The stack trace we are seeing is:

A build scan cannot be produced as an error occurred gathering build data.
Please report this problem via https://gradle.com/help/plugin and include the following via copy/paste:

Gradle version: 7.1-rc-1
Plugin version: 3.6.2

java.lang.IllegalStateException: Overlapping ID assignment for 'com.gradle.scan.plugin.internal.b.b@3bd1142' (prev: '-7912777278577514297').
        at com.gradle.scan.plugin.internal.i.a.a(SourceFile:57)
        at com.gradle.scan.plugin.internal.i.a.a(SourceFile:50)
        at com.gradle.scan.plugin.internal.i.f.<init>(SourceFile:10)
        at com.gradle.scan.plugin.internal.b.u.e$a.<init>(SourceFile:37)
        at com.gradle.scan.plugin.internal.b.u.e.a(SourceFile:46)
        at com.gradle.scan.plugin.internal.l.a$c.started(SourceFile:140)
        at com.gradle.scan.plugin.internal.l.a.a(SourceFile:55)
        at com.gradle.scan.plugin.internal.l.l.a(SourceFile:36)
        at com.gradle.scan.plugin.internal.l.c.a(SourceFile:54)
        at com.gradle.scan.plugin.internal.l.g.a(SourceFile:39)
        at com.gradle.scan.plugin.internal.q.a$a.a(SourceFile:31)
        at com.gradle.scan.plugin.internal.q.a$a.a(SourceFile:20)
        at com.gradle.scan.plugin.internal.q.a.c(SourceFile:67)

Seems not like an gradle issue itself but with the plugin. Therefore I didn’t raise a ticket at GitHub at gradle/gradle

To reproduce this you can

  1. checkout the latest elasticsearch master from GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine
  2. update the gradle wrapper
  3. run e.g. ./gradlew precommit --scan

Hi @Rene

This has been fixed in Build scan plugin stopped working in Elasticsearch build with Gradle 7.1-rc-1 · Issue #17359 · gradle/gradle · GitHub which will be released as part of 7.2-rc-2.