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 compatible with Configuration cache #23

Open
BigMichi1 opened this issue Feb 23, 2021 · 2 comments
Open

Plugin not compatible with Configuration cache #23

BigMichi1 opened this issue Feb 23, 2021 · 2 comments

Comments

@BigMichi1
Copy link

we tried to evaluate the build with the new configuration cache that is provided by Gradle but Gradle is complaining that this plugin is not compatible

michaelcramer@p52:~/dev/git/notifier$ ./gradlew --configuration-cache clean
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: clean

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

1 problem was found storing the configuration cache.
- Plugin 'fr.jcgay.gradle-notifier': registration of listener on 'Gradle.addBuildListener' is unsupported
  See https://docs.gradle.org/6.7/userguide/configuration_cache.html#config_cache:requirements:build_listeners

See the complete report at file:///home/michaelcramer/dev/git/notifier/build/reports/configuration-cache/c3su8mnjl6k6r7icz7nkjnl02/configuration-cache-report.html
> Listener registration 'Gradle.addBuildListener' by build 'notifier' is unsupported.

* 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 13s
1 actionable task: 1 up-to-date
Configuration cache entry discarded with 1 problem.

i used that build.gradle file

plugins {
    id 'java'
    id "fr.jcgay.gradle-notifier" version "3.0.0"
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}

test {
    useJUnitPlatform()
}

ref: https://docs.gradle.org/current/userguide/configuration_cache.html

@jcgay
Copy link
Owner

jcgay commented Feb 25, 2021

Thx!

I will have a look to use newer API 😇

@jcgay
Copy link
Owner

jcgay commented Mar 14, 2021

It seems that I will need to change how I read system properties : https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:requirements:undeclared_sys_prop_read

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

2 participants