mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Resolve range versions for plug-ins too.
Fixes https://github.com/cbeust/kobalt/issues/277
This commit is contained in:
parent
e67e783742
commit
4a1f12b6b3
1 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,12 @@ class DependencyManager @Inject constructor(val executors: KobaltExecutors, val
|
||||||
/**
|
/**
|
||||||
* Create an IClasspathDependency from a Maven id.
|
* Create an IClasspathDependency from a Maven id.
|
||||||
*/
|
*/
|
||||||
override fun createMaven(id: String) : IClasspathDependency = aether.create(id)
|
override fun createMaven(id: String) : IClasspathDependency=
|
||||||
|
if (KobaltAether.isRangeVersion(id)) {
|
||||||
|
Kobalt.INJECTOR.getInstance(KobaltAether::class.java).resolve(id).dependency
|
||||||
|
} else {
|
||||||
|
aether.create(id)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an IClasspathDependency from a path.
|
* Create an IClasspathDependency from a path.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue