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

Unable to redefine maven publish repository url without adding again username and password #35

Open
saugereau opened this issue Sep 2, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@saugereau
Copy link
Contributor

I would like to setup specific snapshot and releases repositories that are different from template in JavaPlugin.kt

url = uri("$publishingBaseUrl${if (projectVersion.endsWith("-SNAPSHOT")) "snapshots" else "releases"}/")

define in build.gradle this section

publishing {
  repositories {
    maven {
      url = "${publishingBaseUrl}${project.version.endsWith('-SNAPSHOT') ? 'my-snapshots' : 'my-releases'}/"
    }
  }
}

override all configuration and user and password are no more defined.
Maybe can we add some other properties to allow to define our specific snapshot and releases repository name used in the url ?

@saugereau saugereau added the enhancement New feature or request label Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant