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

butlerPush Exception #13

Open
bthomas2622 opened this issue Jun 1, 2021 · 4 comments
Open

butlerPush Exception #13

bthomas2622 opened this issue Jun 1, 2021 · 4 comments

Comments

@bthomas2622
Copy link

task (butlerPushWindows, type: org.mini2Dx.butler.task.PushTask) {
	binDirectory = "./build/jpackage/libgdx-cicd-testing"
	channel = "windows"
}

Every time I try to run my Butler Push task it fails with following exception:

> Task :lwjgl3:butlerPushWindows FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Some problems were found with the configuration of task ':lwjgl3:butlerPushWindows' (type 'PushTask').
  - Type 'PushTask' field 'binDirectory' without corresponding getter has been annotated with @Input.

    Reason: Annotations on fields are only used if there's a corresponding getter for the field.

    Possible solutions:
      1. Add a getter for field 'binDirectory'.
      2. Remove the annotations on 'binDirectory'.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
  - Type 'PushTask' field 'channel' without corresponding getter has been annotated with @Input.

    Reason: Annotations on fields are only used if there's a corresponding getter for the field.

    Possible solutions:
      1. Add a getter for field 'channel'.
      2. Remove the annotations on 'channel'.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#ignored_annotations_on_field 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

My butlerLogin and butlerUpdate gradle tasks succeed. It seems to have something to do with fact that I am running latest Gradle 7.0.2 are there any compatibility issues I can overcome? I've combed through google searches and it seems like this might only be a warning? But if so I can't tell why task failing.

Thanks for help!

@tomcashman
Copy link
Contributor

Looks like a compatibility issue with Gradle 7. Though it seems to be suggesting the solution. I won't get a chance to implement and test for a few weeks, have an upcoming gold master deadline 😓 Happy to review a PR if you resolve in the meantime.

@bthomas2622
Copy link
Author

No worries! I will see if I can find some time for a PR. The weird thing is I still can't tell if it's just a warning or the thing causing push to fail.

@videogreg93
Copy link

Any news on this? I just updated to Gradle 7 and am getting the same issue.

@tomcashman
Copy link
Contributor

The latest commit supports Gradle 7.5.1.

If you'd like to test, clone the repo and run

.\gradlew publishToMavenLocal

Then update your plugin version to 2.1.0

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

3 participants