Skip to content

Repository files navigation

PluginX Resolver — Gradle Plugin Classpath Auto Resolver

Gradle Plugin Portal

PluginX Resolver automatically resolves and injects Gradle plugin classpath dependencies based on the pluginManagement.resolutionStrategy.


🔧 Plugin ID

plugins {
    id("io.github.neallon.pluginx.resolver") version "1.1.0"
}

✨ Features

  • Automatically detects plugin ID and version in pluginManagement.
  • Resolves plugin POM from any custom Maven repository.
  • Extracts and injects plugin classpath dependencies into buildscript.
  • Reduces manual classpath maintenance for custom plugins.

🧪 Usage Example

pluginManagement {
    repositories {
        maven { url = uri("https://your.custom.repo") }
    }
    resolutionStrategy {
        eachPlugin {
            // PluginX Resolver will handle classpath resolution
        }
    }
}

❌ Disable Automatic Repository Injection

By default, PluginX Resolver automatically injects repositories parsed from Gradle properties files (~/.gradle/gradle.properties and project gradle.properties) with keys like:

hfx.<repoId>.repo.url=
hfx.<repoId>.repo.user=
hfx.<repoId>.repo.password=

To disable this behavior, set in your settings.gradle.kts:

pluginxResolver {
    autoInjectRepositories = false
}

📋 Repository Properties Format

The plugin reads repositories from Gradle properties files with the following naming conventions:

  • hfx.<repoId>.repo.url - Repository URL
  • hfx.<repoId>.repo.user - Username for authentication (optional)
  • hfx.<repoId>.repo.password - Password for authentication (optional)
  • hfx.<repoId>.repo.allowInsecure - Whether to allow insecure HTTP protocol (optional, defaults true if URL starts with http)

Example:

hfx.myrepo.repo.url=https://my.repo.url/maven
hfx.myrepo.repo.user=yourUsername
hfx.myrepo.repo.password=yourPassword
hfx.myrepo.repo.allowInsecure=false

📎 Metadata


📄 License

Licensed under the Apache 2.0 License.

About

Automatically resolves and injects plugin classpath dependencies based on pluginManagement resolutionStrategy

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages