PluginX Resolver automatically resolves and injects Gradle plugin classpath dependencies based on the pluginManagement.resolutionStrategy.
plugins {
id("io.github.neallon.pluginx.resolver") version "1.1.0"
}- Automatically detects plugin ID and version in
pluginManagement. - Resolves plugin POM from any custom Maven repository.
- Extracts and injects plugin
classpathdependencies intobuildscript. - Reduces manual
classpathmaintenance for custom plugins.
pluginManagement {
repositories {
maven { url = uri("https://your.custom.repo") }
}
resolutionStrategy {
eachPlugin {
// PluginX Resolver will handle classpath resolution
}
}
}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
}The plugin reads repositories from Gradle properties files with the following naming conventions:
hfx.<repoId>.repo.url- Repository URLhfx.<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
- Plugin ID:
io.github.neallon.pluginx.resolver - Implementation Class:
io.hfx.pluginx.resolver.PluginResolverPlugin - Website: https://github.com/neallon/pluginx-resolver
- VCS: https://github.com/neallon/pluginx-resolver.git
- Tags: gradle, plugin, classpath, resolver, dependency, auto, injection, pluginManagement
Licensed under the Apache 2.0 License.