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

plugin is incompatible with settings repositories #176

Open
jbb01 opened this issue Oct 2, 2024 · 1 comment
Open

plugin is incompatible with settings repositories #176

jbb01 opened this issue Oct 2, 2024 · 1 comment

Comments

@jbb01
Copy link

jbb01 commented Oct 2, 2024

When declaring repositories in the dependencyResolutionManagement block in the settings file and setting the repositoryMode to RepositoriesMode.FAIL_ON_PROJECT_REPOS the build will fail with an exception.

An exception occurred applying plugin request [id: 'edu.sc.seis.launch4j', version: '3.0.6']
> Failed to apply plugin 'edu.sc.seis.launch4j'.
   > Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by plugin 'edu.sc.seis.launch4j'

This seems to be caused by the plugin configuring maven central as the default repository when no project repositories are configured, see

if (project.repositories.isEmpty()) {
project.logger.debug("Adding the mavenCentral repository to retrieve the $LAUNCH4J_PLUGIN_NAME files.")
project.repositories.mavenCentral()
}

@TheBoegl
Copy link
Owner

TheBoegl commented Oct 8, 2024

Let's see if we find a solution to this. @jbb01 feel free to create a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants