Actions is successful when trying to publish but packages doesn't get uploaded #51397
Unanswered
vatsanmadabushi-eaton
asked this question in
Packages
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Used the doc below to build a action that comes and publishes using Gradle 7.6. I am building 1 war file and there are no subprojects. The logs show that it was successfully but the publish step indicates that its up to update and doesn't do anything. I am new to Actions so building a Hello World in Java using Gradle and have added the publishing and artifactorypublish tasks. The same Gradle file (with URL and credential changes) does successfully upload a war file to Artifactory.
What am I missing?
URL: https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-gradle#publishing-packages-to-github-packages
below is the log dump of the publish step. I am not generating any pom file as I don't need to share these (Spring boot apps)
Run gradle/gradle-build-action@v2
Gradle setup only performed on first gradle-build-action step in workflow.
Provision Gradle 7.6
C:\Windows\system32\cmd.exe /D /S /C "C:\Users\runneradmin\gradle-installations\installs\gradle-7.6\bin\gradle.bat "-PappVersion=1.10-GITHUB-SNAPSHOT" publish"
Configure project :
Publication type 'build_7cjquwndr67lpxkokuojvjqc8$_run_closure6$_closure15' not supported in task ':artifactoryPublish'.
[build_7cjquwndr67lpxkokuojvjqc8$_run_closure2$_closure7$_closure10@5d2d19f7][0]Publication type 'build_7cjquwndr67lpxkokuojvjqc8$_run_closure6$_closure15' not supported in task ':artifactoryPublish'.
Cannot publish Ivy descriptor if ivyDescriptor not set in task ':artifactoryPublish' and task 'uploadArchives' does not exist.
Adding "apply plugin: 'java'" or any other plugin extending the 'base' pluginwill solve this issue.
Cannot publish pom for project ':' since it does not contain the Maven plugin install task and task ':artifactoryPublish' does not specify a custom pom path.
Publication type 'build_7cjquwndr67lpxkokuojvjqc8$_run_closure6$_closure15' not supported in task ':artifactoryPublish'.
Task :publish UP-TO-DATE
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1s
Beta Was this translation helpful? Give feedback.
All reactions