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

Upgrading from 0.1.x to 0.2.x reports "Could not get unknown property 'me' for root project 'main'" #42

Open
centic9 opened this issue Jan 31, 2021 · 0 comments

Comments

@centic9
Copy link

centic9 commented Jan 31, 2021

We use japicmp in Apache POI for comparing APIs across releases.

When I try to upgrade from 0.1.2 to 0.2.9, I always get "Could not get unknown property 'me' for root project 'main'"

I have now narrowed down the build-file to a very simple one which still shows this error, so I don't see anything that I could adjust in the build-files.

What am I missing here?

My reproducing project only has a single build.gradle with the following contents:

plugins {
    id 'me.champeau.gradle.japicmp' version '0.2.9'
}

apply plugin: 'java'

sourceCompatibility = 1.8
targetCompatibility = 1.8

task(japicmp, type: me.champeau.gradle.ArtifactJapicmpTask, dependsOn: jar) {
}

Stacktrace is

Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'me' for root project 'main' of type org.gradle.api.Project.
        at org.gradle.internal.metaobject.AbstractDynamicObject.getMissingProperty(AbstractDynamicObject.java:85)
        at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.getMissingProperty(BasicScript.java:156)
        at org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:62)
        at org.gradle.groovy.scripts.BasicScript.getProperty(BasicScript.java:65)
        at build_d7kyjflcwiyjrkvon1xjy5su7.run(/tmp/test-japicmp/main/build.gradle:10)
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
        ... 119 more

Gradle version is 6.6.1

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

1 participant