You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Alex Amato <aj...@google.com> on 2019/02/19 18:59:16 UTC

Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Is there some local step I should take to upgrade the plugin? I assumed the
correct version is pulled in through gradle.


https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22

Though does the use of apply False, not override my local version or
something?

> Task :buildSrc:build UP-TO-DATE
FAILURE: Build failed with an exception.
* Where:
Initialization script
'/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
* What went wrong:
Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
> This version of Gradle requires version 2.0.2 of the build scan plugin or
later.
  Please see
https://gradle.com/scans/help/gradle-incompatible-plugin-version for more
information.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
This version of Gradle requires version 2.0.2 of the build scan plugin or
later.
Please see https://gradle.com/scans/help/gradle-incompatible-plugin-version
for more information.

Re: Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Posted by Michael Luckey <ad...@gmail.com>.
Sure. Just keep in mind, that you disabled automatic publishing of build
scans in case of failure now.

On Tue, Feb 19, 2019 at 10:00 PM Alex Amato <aj...@google.com> wrote:

> I renamed my .gradle folder to make gradle generate a new one, and it was
> working again for me.
>
> On Tue, Feb 19, 2019 at 11:24 AM Michael Luckey <ad...@gmail.com>
> wrote:
>
>> You adopted .gradle according to
>> https://cwiki.apache.org/confluence/display/BEAM/Gradle+Tips -> Create
>> Build Scan on failed builds
>>
>> So you probably do not want to delete, but edit.
>>
>> I missed that piece during migration to gradle 5. Sorry for the
>> inconvenience
>>
>> On Tue, Feb 19, 2019 at 8:18 PM Alex Amato <aj...@google.com> wrote:
>>
>>> Is this some sort of locally installed dep, can I just delete the
>>> .gradle folder?
>>>
>>> On Tue, Feb 19, 2019 at 11:17 AM Alex Amato <aj...@google.com> wrote:
>>>
>>>> My gradle knowledge is a bit limited, printing that file:
>>>>
>>>> ajamato@ajamato-linux0:~/go/src/github.com/apache/beam$ cat
>>>> /usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle
>>>> initscript {
>>>>     repositories {
>>>>         maven { url 'https://plugins.gradle.org/m2' }
>>>>     }
>>>>     dependencies {
>>>>         classpath 'com.gradle:build-scan-plugin:1.13.1'
>>>>     }
>>>> }
>>>> rootProject {
>>>>     apply plugin: com.gradle.scan.plugin.BuildScanPlugin
>>>>     buildScan {
>>>>         publishOnFailure()
>>>>         termsOfServiceUrl = 'https://gradle.com/terms-of-service'
>>>>         termsOfServiceAgree = 'yes'
>>>>     }
>>>> }
>>>>
>>>>
>>>>
>>>>
>>>> On Tue, Feb 19, 2019 at 10:59 AM Alex Amato <aj...@google.com> wrote:
>>>>
>>>>> Is there some local step I should take to upgrade the plugin? I
>>>>> assumed the correct version is pulled in through gradle.
>>>>>
>>>>>
>>>>>
>>>>> https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22
>>>>>
>>>>> Though does the use of apply False, not override my local version or
>>>>> something?
>>>>>
>>>>> > Task :buildSrc:build UP-TO-DATE
>>>>> FAILURE: Build failed with an exception.
>>>>> * Where:
>>>>> Initialization script
>>>>> '/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
>>>>> * What went wrong:
>>>>> Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
>>>>> > This version of Gradle requires version 2.0.2 of the build scan
>>>>> plugin or later.
>>>>>   Please see
>>>>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>>>>> more information.
>>>>> * Try:
>>>>> Run with --stacktrace option to get the stack trace. Run with --info
>>>>> or --debug option to get more log output. Run with --scan to get full
>>>>> insights.
>>>>> * Get more help at https://help.gradle.org
>>>>> BUILD FAILED in 0s
>>>>> This version of Gradle requires version 2.0.2 of the build scan plugin
>>>>> or later.
>>>>> Please see
>>>>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>>>>> more information.
>>>>>
>>>>>
>>>>>

Re: Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Posted by Alex Amato <aj...@google.com>.
I renamed my .gradle folder to make gradle generate a new one, and it was
working again for me.

On Tue, Feb 19, 2019 at 11:24 AM Michael Luckey <ad...@gmail.com> wrote:

> You adopted .gradle according to
> https://cwiki.apache.org/confluence/display/BEAM/Gradle+Tips -> Create
> Build Scan on failed builds
>
> So you probably do not want to delete, but edit.
>
> I missed that piece during migration to gradle 5. Sorry for the
> inconvenience
>
> On Tue, Feb 19, 2019 at 8:18 PM Alex Amato <aj...@google.com> wrote:
>
>> Is this some sort of locally installed dep, can I just delete the .gradle
>> folder?
>>
>> On Tue, Feb 19, 2019 at 11:17 AM Alex Amato <aj...@google.com> wrote:
>>
>>> My gradle knowledge is a bit limited, printing that file:
>>>
>>> ajamato@ajamato-linux0:~/go/src/github.com/apache/beam$ cat
>>> /usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle
>>> initscript {
>>>     repositories {
>>>         maven { url 'https://plugins.gradle.org/m2' }
>>>     }
>>>     dependencies {
>>>         classpath 'com.gradle:build-scan-plugin:1.13.1'
>>>     }
>>> }
>>> rootProject {
>>>     apply plugin: com.gradle.scan.plugin.BuildScanPlugin
>>>     buildScan {
>>>         publishOnFailure()
>>>         termsOfServiceUrl = 'https://gradle.com/terms-of-service'
>>>         termsOfServiceAgree = 'yes'
>>>     }
>>> }
>>>
>>>
>>>
>>>
>>> On Tue, Feb 19, 2019 at 10:59 AM Alex Amato <aj...@google.com> wrote:
>>>
>>>> Is there some local step I should take to upgrade the plugin? I assumed
>>>> the correct version is pulled in through gradle.
>>>>
>>>>
>>>>
>>>> https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22
>>>>
>>>> Though does the use of apply False, not override my local version or
>>>> something?
>>>>
>>>> > Task :buildSrc:build UP-TO-DATE
>>>> FAILURE: Build failed with an exception.
>>>> * Where:
>>>> Initialization script
>>>> '/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
>>>> * What went wrong:
>>>> Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
>>>> > This version of Gradle requires version 2.0.2 of the build scan
>>>> plugin or later.
>>>>   Please see
>>>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>>>> more information.
>>>> * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>>> --debug option to get more log output. Run with --scan to get full insights.
>>>> * Get more help at https://help.gradle.org
>>>> BUILD FAILED in 0s
>>>> This version of Gradle requires version 2.0.2 of the build scan plugin
>>>> or later.
>>>> Please see
>>>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>>>> more information.
>>>>
>>>>
>>>>

Re: Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Posted by Michael Luckey <ad...@gmail.com>.
You adopted .gradle according to
https://cwiki.apache.org/confluence/display/BEAM/Gradle+Tips -> Create
Build Scan on failed builds

So you probably do not want to delete, but edit.

I missed that piece during migration to gradle 5. Sorry for the
inconvenience

On Tue, Feb 19, 2019 at 8:18 PM Alex Amato <aj...@google.com> wrote:

> Is this some sort of locally installed dep, can I just delete the .gradle
> folder?
>
> On Tue, Feb 19, 2019 at 11:17 AM Alex Amato <aj...@google.com> wrote:
>
>> My gradle knowledge is a bit limited, printing that file:
>>
>> ajamato@ajamato-linux0:~/go/src/github.com/apache/beam$ cat
>> /usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle
>> initscript {
>>     repositories {
>>         maven { url 'https://plugins.gradle.org/m2' }
>>     }
>>     dependencies {
>>         classpath 'com.gradle:build-scan-plugin:1.13.1'
>>     }
>> }
>> rootProject {
>>     apply plugin: com.gradle.scan.plugin.BuildScanPlugin
>>     buildScan {
>>         publishOnFailure()
>>         termsOfServiceUrl = 'https://gradle.com/terms-of-service'
>>         termsOfServiceAgree = 'yes'
>>     }
>> }
>>
>>
>>
>>
>> On Tue, Feb 19, 2019 at 10:59 AM Alex Amato <aj...@google.com> wrote:
>>
>>> Is there some local step I should take to upgrade the plugin? I assumed
>>> the correct version is pulled in through gradle.
>>>
>>>
>>>
>>> https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22
>>>
>>> Though does the use of apply False, not override my local version or
>>> something?
>>>
>>> > Task :buildSrc:build UP-TO-DATE
>>> FAILURE: Build failed with an exception.
>>> * Where:
>>> Initialization script
>>> '/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
>>> * What went wrong:
>>> Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
>>> > This version of Gradle requires version 2.0.2 of the build scan plugin
>>> or later.
>>>   Please see
>>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>>> more information.
>>> * Try:
>>> Run with --stacktrace option to get the stack trace. Run with --info or
>>> --debug option to get more log output. Run with --scan to get full insights.
>>> * Get more help at https://help.gradle.org
>>> BUILD FAILED in 0s
>>> This version of Gradle requires version 2.0.2 of the build scan plugin
>>> or later.
>>> Please see
>>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>>> more information.
>>>
>>>
>>>

Re: Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Posted by Alex Amato <aj...@google.com>.
Is this some sort of locally installed dep, can I just delete the .gradle
folder?

On Tue, Feb 19, 2019 at 11:17 AM Alex Amato <aj...@google.com> wrote:

> My gradle knowledge is a bit limited, printing that file:
>
> ajamato@ajamato-linux0:~/go/src/github.com/apache/beam$ cat
> /usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle
> initscript {
>     repositories {
>         maven { url 'https://plugins.gradle.org/m2' }
>     }
>     dependencies {
>         classpath 'com.gradle:build-scan-plugin:1.13.1'
>     }
> }
> rootProject {
>     apply plugin: com.gradle.scan.plugin.BuildScanPlugin
>     buildScan {
>         publishOnFailure()
>         termsOfServiceUrl = 'https://gradle.com/terms-of-service'
>         termsOfServiceAgree = 'yes'
>     }
> }
>
>
>
>
> On Tue, Feb 19, 2019 at 10:59 AM Alex Amato <aj...@google.com> wrote:
>
>> Is there some local step I should take to upgrade the plugin? I assumed
>> the correct version is pulled in through gradle.
>>
>>
>>
>> https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22
>>
>> Though does the use of apply False, not override my local version or
>> something?
>>
>> > Task :buildSrc:build UP-TO-DATE
>> FAILURE: Build failed with an exception.
>> * Where:
>> Initialization script
>> '/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
>> * What went wrong:
>> Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
>> > This version of Gradle requires version 2.0.2 of the build scan plugin
>> or later.
>>   Please see
>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>> more information.
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info or
>> --debug option to get more log output. Run with --scan to get full insights.
>> * Get more help at https://help.gradle.org
>> BUILD FAILED in 0s
>> This version of Gradle requires version 2.0.2 of the build scan plugin or
>> later.
>> Please see
>> https://gradle.com/scans/help/gradle-incompatible-plugin-version for
>> more information.
>>
>>
>>

Re: Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Posted by Alex Amato <aj...@google.com>.
My gradle knowledge is a bit limited, printing that file:

ajamato@ajamato-linux0:~/go/src/github.com/apache/beam$ cat
/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle
initscript {
    repositories {
        maven { url 'https://plugins.gradle.org/m2' }
    }
    dependencies {
        classpath 'com.gradle:build-scan-plugin:1.13.1'
    }
}
rootProject {
    apply plugin: com.gradle.scan.plugin.BuildScanPlugin
    buildScan {
        publishOnFailure()
        termsOfServiceUrl = 'https://gradle.com/terms-of-service'
        termsOfServiceAgree = 'yes'
    }
}




On Tue, Feb 19, 2019 at 10:59 AM Alex Amato <aj...@google.com> wrote:

> Is there some local step I should take to upgrade the plugin? I assumed
> the correct version is pulled in through gradle.
>
>
>
> https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22
>
> Though does the use of apply False, not override my local version or
> something?
>
> > Task :buildSrc:build UP-TO-DATE
> FAILURE: Build failed with an exception.
> * Where:
> Initialization script
> '/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
> * What went wrong:
> Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
> > This version of Gradle requires version 2.0.2 of the build scan plugin
> or later.
>   Please see
> https://gradle.com/scans/help/gradle-incompatible-plugin-version for more
> information.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> BUILD FAILED in 0s
> This version of Gradle requires version 2.0.2 of the build scan plugin or
> later.
> Please see
> https://gradle.com/scans/help/gradle-incompatible-plugin-version for more
> information.
>
>
>

Re: Build Error This version of Gradle requires version 2.0.2 of the build scan plugin or later.

Posted by Michael Luckey <ad...@gmail.com>.
You seem to have a private buildScan.gradle in

 Initialization script
'/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10

This is of course not managed by beam repo. So unfortunately you have to
update that yourself.

hth,

michel

On Tue, Feb 19, 2019 at 7:59 PM Alex Amato <aj...@google.com> wrote:

> Is there some local step I should take to upgrade the plugin? I assumed
> the correct version is pulled in through gradle.
>
>
>
> https://github.com/apache/beam/blob/6ce9701dff711906e09eb163eeb7bdde47220c08/build.gradle#L22
>
> Though does the use of apply False, not override my local version or
> something?
>
> > Task :buildSrc:build UP-TO-DATE
> FAILURE: Build failed with an exception.
> * Where:
> Initialization script
> '/usr/local/google/home/ajamato/.gradle/init.d/buildScan.gradle' line: 10
> * What went wrong:
> Failed to apply plugin [class 'com.gradle.scan.plugin.BuildScanPlugin']
> > This version of Gradle requires version 2.0.2 of the build scan plugin
> or later.
>   Please see
> https://gradle.com/scans/help/gradle-incompatible-plugin-version for more
> information.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full insights.
> * Get more help at https://help.gradle.org
> BUILD FAILED in 0s
> This version of Gradle requires version 2.0.2 of the build scan plugin or
> later.
> Please see
> https://gradle.com/scans/help/gradle-incompatible-plugin-version for more
> information.
>
>
>