Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working with Gradle 7.0 #60

Closed
1 of 2 tasks
donbeave opened this issue Apr 11, 2021 · 32 comments
Closed
1 of 2 tasks

Plugin not working with Gradle 7.0 #60

donbeave opened this issue Apr 11, 2021 · 32 comments

Comments

@donbeave
Copy link

I'm submitting a ...

  • bug report
  • feature request

What is the current behavior?

../gradlew clean allureReport

> Task :tailrocks-payment-api-test:allureReport FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':tailrocks-payment-api-test:allureReport' (type 'AllureReport').
  - Type 'AllureReport' property 'clean' has redundant getters: 'getClean()' and 'isClean()'.

    Reason: Boolean property 'clean' has both an `is` and a `get` getter.

    Possible solutions:
      1. Remove one of the getters.
      2. Annotate one of the getters with @Internal.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#redundant_getters for more details about this problem.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 618ms
3 actionable tasks: 1 executed, 2 up-to-date

Please tell us about your environment:

Allure version 2.13.9
Test framework junit5
Generate report using allure-gradle@2.8.1
@patrykks
Copy link

patrykks commented Apr 15, 2021

This not the only problem. Plugin is using for example testCompile keyword which was removed in Gradle 7.0. Details: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html#sec:configuration_removal

Is this project still supported/maintained? In few months this issue will be blocker for all users that would like to use Gradle in version >=7.0. Gradle in 7.0 brings important features such as support for Java 16 or native support for new generation of MAC processors.

@patrykks
Copy link

patrykks commented Apr 22, 2021

Are community contributions into this repository allowed? :)

@vlsi
Copy link
Contributor

vlsi commented Apr 27, 2021

This PR adds Gradle 7.0 compatibility: #61

Please feel free to try it and provide feedback

@Ankhell
Copy link

Ankhell commented May 20, 2021

This not the only problem. Plugin is using for example testCompile keyword which was removed in Gradle 7.0. Details: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html#sec:configuration_removal

Is this project still supported/maintained? In few months this issue will be blocker for all users that would like to use Gradle in version >=7.0. Gradle in 7.0 brings important features such as support for Java 16 or native support for new generation of MAC processors.

This one is not a blocker, actually, you can use

    allure {
        configuration = "testImplementation"
    }

@Ankhell
Copy link

Ankhell commented May 20, 2021

This PR adds Gradle 7.0 compatibility: #61

Please feel free to try it and provide feedback

Unfortunately jitpack fails to build it :(

image
Jitpack log

graddle.settings.kts config that I used

    resolutionStrategy {
        eachPlugin {
            if(requested.id.toString() == "io.qameta.allure")
                useModule("com.github.vlsi:allure-gradle:facelift-SNAPSHOT")
        }
    }
    repositories {
        mavenLocal()
        gradlePluginPortal()
        mavenCentral()
        jcenter()
        maven { setUrl("https://jitpack.io") }
    }
    ```

@vlsi
Copy link
Contributor

vlsi commented May 20, 2021

Thanks. I've pushed a fix in cb07f41

@cheparsky
Copy link

Why did you downgrade Gradle to 6.9?

We use the last version of Gradle, will it be compatible and fix the problem?

@ranamanas
Copy link

I tried with Gradle 7.1.1 and i see the same error -

  • What went wrong:
    A problem was found with the configuration of task ':allureAggregatedReport' (type 'AllureReport').
    • In plugin 'io.qameta.allure' type 'io.qameta.allure.gradle.task.AllureReport' property 'clean' has redundant getters: 'getClean()' and 'isClean()'.

      Reason: Boolean property 'clean' has both an is and a get getter.

      Possible solutions:

      1. Remove one of the getters.
      2. Annotate one of the getters with @internal.

@KroArtem
Copy link

KroArtem commented Aug 5, 2021

@vlsi , do you by accident know whether there are plans on releasing a new version?

@martenhellmann
Copy link

Could you please publish/build a new release from the current state. Last published release is from 2019. Thank you!

@KroArtem
Copy link

@baev , @eroshenkoam , currently this is a blocker to use gradle 7, is there any chance for new version?

@pandoras-toolbox
Copy link

We are also waiting for a bug fix. Or is there a workaround so that we can used Gradle 7 with Allure?

@nareshiot
Copy link

We have recently upgraded to Gradle 7 and with the above mentioned issue unable to generate the Allure report. Is there any release scheduled to resolve this issue? Or please suggest if there are any workaround to make it work with Gradle 7 version.

@alexsirko
Copy link

alexsirko commented Aug 31, 2021

@baev @eroshenkoam Looks like a lot of people are anticipating a new release :) It would be very good to have at least a bit of backwards communication ;)

@szczebel
Copy link

szczebel commented Sep 7, 2021

+1 to bump up priority of Gradle 7.x support

@mformetal
Copy link

Any idea when this may happen? Would love to use AGP 7.0 in my project with this plugin.

@admizh
Copy link

admizh commented Sep 14, 2021

summon nobody, seems like need create fork

@KroArtem
Copy link

During umoney meetup (https://youtu.be/s-cXhMcYwQM) @eroshenkoam said they'll have a look at this issue together with @baev but still no activity. It does look very impolite to promise something and do nothing, though 😞

@eroshenkoam
Copy link
Member

Screenshot 2021-09-20 at 23 13 53

It's almost done)

@eroshenkoam
Copy link
Member

Waiting for approval)

@KroArtem
Copy link

Nice to hear!

@vlsi
Copy link
Contributor

vlsi commented Sep 22, 2021

Looks like the plugins have been approved for the Gradle Plugin Portal: https://plugins.gradle.org/search?term=io.qameta.allure

@eroshenkoam
Copy link
Member

eroshenkoam commented Sep 23, 2021

Screenshot 2021-09-23 at 13 12 58

Gradle miss `allure-base` plugin, to we need to wait until it will be approved.

Same commit's:
https://github.com/allure-framework/allure-gradle/actions/runs/1254218491
https://github.com/allure-framework/allure-gradle/actions/runs/1265320157

But allure-base plugin missing in 2.9.0

@eroshenkoam
Copy link
Member

ty, fixed in 2.9.3

@davidmoshal
Copy link

Problem still exists with Grade 7.2
Pity, the Node JS reporter works nicely.
Guess it's not that well maintained?

@vlsi
Copy link
Contributor

vlsi commented Nov 24, 2021

@suchitra-srinivasan
Copy link

suchitra-srinivasan commented Apr 11, 2022

Some problems were found with the configuration of task ':allureAggregatedReport' (type 'AllureReport'). In plugin 'io.qameta.allure' type 'io.qameta.allure.gradle.task.AllureReport' property 'clean' has redundant getters: 'getClean()' and 'isClean()'.

Gradle version: 7.4.2. Seems like latest version of gradle has trouble generating allure report

@zatolokinboris
Copy link

Столкнулся с той же проблемой, при обновлении проекта командой разработки на 7.4.2 отвалился allure. Есть ли примерное понимания когда будет исправлена проблема?

@vlsi
Copy link
Contributor

vlsi commented Jun 27, 2022

@zatolokinboris , давно исправлено уже. Какая у вас версия плагина?

@zatolokinboris
Copy link

zatolokinboris commented Jun 27, 2022

А! Я ошибся с версией плагина самого аллюра! Вот оно что! Спасибо!

@unickq
Copy link

unickq commented Jun 30, 2022

Gradle 7.4.2

plugins {
  id 'io.qameta.allure' version '2.10.0'
}

allure {
  version = '2.18.1'
}

./gradlew allureServe --info

Task :tests:allureServe NO-SOURCE
Skipping task ':tests:allureServe' as it has no source files and no previous output files.
:tests:allureServe (Thread[Execution worker for ':',5,main]) completed. Took 0.0 secs.
producer locations for task group 0 (Thread[Execution worker for ':',5,main]) started.
producer locations for task group 0 (Thread[Execution worker for ':',5,main]) completed. Took 0.0 secs.

Update from gradle 6. Missing source files?

@vlsi
Copy link
Contributor

vlsi commented Jun 30, 2022

Have you tried ./gradlew allureServe --depends-on-tests?

@unickq , please do not add issues as comments to an old issue. It triggers excessive notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests