How to setup Gradle publish task user credentials with GitLab CI secret variables? I am using gradle maven publish plugin, and here is snippet from build.gradle
you can use environment variables directly to set gradle properties, see full documentation here.
in your case set artifactUser and artifactPass as env variables (best as secrect ones).
artifactUser
artifactPass