I am using shadowJar in my java project. I would like to push the outcome into artifactory.
My gradle script look like this, I am not sure how to connect the dots:>
Have you looked at the Artifactory Gradle Plugin? This can help you with what you need, resolving and deploying artifacts from and to Artifactory.
You can publish using the plugin by omitting the 'artifactory' plugin from a project that does not publish anything. Note that this does not apply to the root project that contains the convention object, and so, requires the plugin to be applied. Activate the corresponding artifactoryPublish Gradle task manually for each project to which you wish to apply the plugin. For example in our Gradle project example you can run: ./gradlew clean api:artifactoryPublish shared:artifactoryPublish