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

gradle should run the full qualified task ‘’artifactoryPublish’’ #52

Open
ixchelruiz opened this issue Jan 20, 2022 · 2 comments · Fixed by #54
Open

gradle should run the full qualified task ‘’artifactoryPublish’’ #52

ixchelruiz opened this issue Jan 20, 2022 · 2 comments · Fixed by #54
Assignees
Labels
bug Something isn't working

Comments

@ixchelruiz
Copy link

Describe the bug
bi gradle report back conflicts with the task invocation ‘’artifactoryPublish’.’ I suggest not invoking the Task ‘aP’ instead use the full qualified name.

To Reproduce
https://github.com/jreleaser/jreleaser.git
gradle build
bi gradle build

Expected behavior
gradle successfully builds the project

➜  jreleaser git:(main) ✗ git remote -v 
origin	https://github.com/jreleaser/jreleaser.git (fetch) 
origin	https://github.com/jreleaser/jreleaser.git (push) 
➜  jreleaser git:(main) ✗ gm build 
Using gradle at '/Users/ixchelruiz/Projects/oss/jreleaser/jreleaser/gradlew' to run buildFile '/Users/ixchelruiz/Projects/oss/jreleaser/jreleaser/build.gradle': 
Starting a Gradle Daemon (subsequent builds will be faster) 
[versioning] WARNING - the working copy has unstaged or uncommitted changes. 
[build-enforcer] Invalid bytecodeVersion for jackson-core-2.13.1.jar (com.fasterxml.jackson.core:jackson-core:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-databind-2.13.1.jar (com.fasterxml.jackson.core:jackson-databind:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-dataformat-cbor-2.13.1.jar (com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-dataformat-toml-2.13.1.jar (com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-dataformat-yaml-2.13.1.jar (com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
 
> Task :jreleaser-templates:test 
✔ Test org.jreleaser.templates.VersionDecoratingWriterTest [Tests: 2/2/0/0] [Time: 0,391 s] 
✔ Test Gradle Test Run :jreleaser-templates:test [Tests: 2/2/0/0] 
 
> Task :mail-java-sdk:test 
✔ Test org.jreleaser.sdk.mail.MessageMailCommandTest [Tests: 1/1/0/0] [Time: 1,582 s] 
✔ Test Gradle Test Run :mail-java-sdk:test [Tests: 1/1/0/0] 
 
> Task :twitter-java-sdk:test 
✔ Test org.jreleaser.sdk.twitter.UpdateStatusTwitterCommandTest [Tests: 2/2/0/0] [Time: 9,486 s] 
✔ Test Gradle Test Run :twitter-java-sdk:test [Tests: 2/2/0/0] 
 
> Task :sdkman-java-sdk:test 
✔ Test org.jreleaser.sdk.sdkman.MinorReleaseSdkmanCommandTest [Tests: 2/2/0/0] [Time: 10,038 s] 
✔ Test org.jreleaser.sdk.sdkman.MajorReleaseSdkmanCommandTest [Tests: 2/2/0/0] [Time: 0,375 s] 
✔ Test org.jreleaser.sdk.sdkman.AnnounceSdkmanCommandTest [Tests: 2/2/0/0] [Time: 0,187 s] 
✔ Test org.jreleaser.sdk.sdkman.DefaultSdkmanCommandTest [Tests: 2/2/0/0] [Time: 0,180 s] 
✔ Test org.jreleaser.sdk.sdkman.ReleaseSdkmanCommandTest [Tests: 4/4/0/0] [Time: 0,455 s] 
 
> Task :slack-java-sdk:test 
✔ Test org.jreleaser.sdk.slack.SlackMessageTest [Tests: 2/2/0/0] [Time: 10,370 s] 
✔ Test Gradle Test Run :slack-java-sdk:test [Tests: 2/2/0/0] 
 
> Task :sdkman-java-sdk:test 
✔ Test Gradle Test Run :sdkman-java-sdk:test [Tests: 12/12/0/0] 
 
> Task :jreleaser-gradle-plugin:compileGroovy 
WARNING: An illegal reflective access operation has occurred 
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/ixchelruiz/.gradle/wrapper/dists/gradle-6.9-bin/2ecsmyp3bolyybemj56vfn4mt/gradle-6.9/lib/groovy-all-1.3-2.5.12.jar) to method java.util.AbstractCollection.hugeCapacity(int) 
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass 
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations 
WARNING: All illegal access operations will be denied in a future release 
 
> Task :zulip-java-sdk:test 
✔ Test org.jreleaser.sdk.zulip.ZulipMessageTest [Tests: 2/2/0/0] [Time: 6,432 s] 
✔ Test Gradle Test Run :zulip-java-sdk:test [Tests: 2/2/0/0] 
 
> Task :jreleaser-model:test 
✔ Test org.jreleaser.model.PlatformTest [Tests: 4/4/0/0] [Time: 0,345 s] 
✔ Test Gradle Test Run :jreleaser-model:test [Tests: 4/4/0/0] 
 
> Task :jreleaser-gradle-plugin:groovydoc 
Trying to override old definition of task fileScanner 
 
-------------------------------------------------------------------- 
43 projects                                      CONF        EXEC    
-------------------------------------------------------------------- 
: .................................. SUCCESS [  0,230 s] [  0,002 s]  
:artifactory-java-sdk .............. SUCCESS [  0,016 s] [  0,228 s]  
:codeberg-java-sdk ................. SUCCESS [  0,014 s] [  0,195 s]  
:disco-java-sdk .................... SUCCESS [  0,031 s] [  0,346 s]  
:discord-java-sdk .................. SUCCESS [  0,008 s] [  0,156 s]  
:genericgit-java-sdk ............... SUCCESS [  0,011 s] [  0,139 s]  
:git-sdk ........................... SUCCESS [  0,010 s] [  0,229 s]  
:gitea-java-sdk .................... SUCCESS [  0,023 s] [  0,217 s]  
:github-java-sdk ................... SUCCESS [  0,013 s] [  0,133 s]  
:gitlab-java-sdk ................... SUCCESS [  0,007 s] [  0,167 s]  
:gitter-java-sdk ................... SUCCESS [  0,008 s] [  0,134 s]  
:google-chat-java-sdk .............. SUCCESS [  0,009 s] [  0,114 s]  
:http-upload-java-sdk .............. SUCCESS [  0,009 s] [  0,161 s]  
:java-sdk-commons .................. SUCCESS [  0,012 s] [  0,201 s]  
:jdks-gradle-plugin ................ SUCCESS [  0,155 s] [  0,257 s]  
:jdks-maven-plugin ................. SUCCESS [  0,234 s] [  0,284 s]  
:jreleaser ......................... SUCCESS [  0,115 s] [ 21,023 s]  
:jreleaser-ant-tasks ............... SUCCESS [  0,032 s] [  5,029 s]  
:jreleaser-assemblers .............. SUCCESS [  0,010 s] [  0,083 s]  
:jreleaser-config-json ............. SUCCESS [  0,009 s] [  0,130 s]  
:jreleaser-config-toml ............. SUCCESS [  0,011 s] [  0,100 s]  
:jreleaser-config-yaml ............. SUCCESS [  0,014 s] [  0,107 s]  
:jreleaser-engine .................. SUCCESS [  0,010 s] [  0,197 s]  
:jreleaser-gradle-plugin ........... SUCCESS [  0,028 s] [ 33,230 s]  
:jreleaser-maven-plugin ............ SUCCESS [  0,057 s] [  0,407 s]  
:jreleaser-model ................... SUCCESS [  0,016 s] [ 25,310 s]  
:jreleaser-templates ............... SUCCESS [  0,022 s] [  5,900 s]  
:jreleaser-tool-provider ........... SUCCESS [  0,240 s] [ 01:13  m]  
:jreleaser-tools ................... SUCCESS [  0,016 s] [  0,123 s]  
:jreleaser-utils ................... SUCCESS [  0,013 s] [  0,367 s]  
:jreleaser-workflow ................ SUCCESS [  0,012 s] [  0,142 s]  
:mail-java-sdk ..................... SUCCESS [  0,011 s] [  6,855 s]  
:mastodon-java-sdk ................. SUCCESS [  0,009 s] [  0,067 s]  
:mattermost-java-sdk ............... SUCCESS [  0,006 s] [  0,135 s]  
:s3-java-sdk ....................... SUCCESS [  0,013 s] [  0,291 s]  
:sdkman-java-sdk ................... SUCCESS [  0,009 s] [ 17,177 s]  
:slack-java-sdk .................... SUCCESS [  0,008 s] [ 16,624 s]  
:teams-java-sdk .................... SUCCESS [  0,007 s] [  0,083 s]  
:telegram-java-sdk ................. SUCCESS [  0,007 s] [  0,095 s]  
:tool-sdk .......................... SUCCESS [  0,011 s] [  0,190 s]  
:twitter-java-sdk .................. SUCCESS [  0,012 s] [ 15,586 s]  
:webhooks-java-sdk ................. SUCCESS [  0,008 s] [  0,055 s]  
:zulip-java-sdk .................... SUCCESS [  0,008 s] [ 12,831 s]  
-------------------------------------------------------------------- 
43 projects executed 
-------------------------------------------------------------------- 
 
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. 
Use '--warning-mode all' to show the individual deprecation warnings. 
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 
 
BUILD SUCCESSFUL in 1m 44s 
415 actionable tasks: 40 executed, 375 up-to-date 
➜  jreleaser git:(main) ✗ ./bi gradle build 
[Info] Running gradle... 
[Info] Running gradle command: /Users/ixchelruiz/.sdkman/candidates/gradle/current/bin/gradle --init-script /Users/ixchelruiz/.build-info/gradle/4.26.0/gradle.init aP 
[versioning] WARNING - the working copy has unstaged or uncommitted changes. 
[build-enforcer] Invalid bytecodeVersion for jackson-core-2.13.1.jar (com.fasterxml.jackson.core:jackson-core:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-databind-2.13.1.jar (com.fasterxml.jackson.core:jackson-databind:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-dataformat-cbor-2.13.1.jar (com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-dataformat-toml-2.13.1.jar (com.fasterxml.jackson.dataformat:jackson-dataformat-toml:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
[build-enforcer] Invalid bytecodeVersion for jackson-dataformat-yaml-2.13.1.jar (com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.1) : META-INF/versions/11/module-info.class: expected 55, but was 53 
 
FAILURE: Build failed with an exception. 
 
* What went wrong: 
Task 'aP' is ambiguous in root project 'jreleaser'. Candidates are: 'activeProfiles', 'artifactoryPublish'. 
 
* Try: 
Run gradle tasks to get a list of available tasks. 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 7.0. 
Use '--warning-mode all' to show the individual deprecation warnings. 
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 
 
BUILD FAILED in 8s 
exit status 1 
@ixchelruiz ixchelruiz added the bug Something isn't working label Jan 20, 2022
@asafgabai asafgabai self-assigned this Jan 23, 2022
@asafgabai asafgabai linked a pull request Jan 23, 2022 that will close this issue
3 tasks
@asafgabai
Copy link
Collaborator

@ixchelruiz Thanks for reporting this. A fix for this issue was merged to the dev branch.
I'll update here when it's released.

@asafgabai
Copy link
Collaborator

@ixchelruiz The fix was released in build-info-go v1.0.1. We'd appreciate your feedback on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants