mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Evaluate variables in version tags.
This commit is contained in:
parent
901dbd1b95
commit
a3c9792c12
3 changed files with 44 additions and 26 deletions
|
@ -22,7 +22,7 @@ class DownloadTest @Inject constructor(
|
|||
val depFactory: DepFactory,
|
||||
val localRepo: LocalRepo,
|
||||
val mdFactory: MavenDependency.IFactory,
|
||||
val finderFactory: RepoFinderCallable.IFactory,
|
||||
val dependencyManager: DependencyManager,
|
||||
val executors: KobaltExecutors) : KobaltTest() {
|
||||
private var executor: ExecutorService by Delegates.notNull()
|
||||
|
||||
|
@ -165,5 +165,13 @@ class DownloadTest @Inject constructor(
|
|||
// Assert.assertEquals(results.size, 1)
|
||||
// Assert.assertEquals(results[0].version, "1.1.0")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun variablesShouldBeExpanded() {
|
||||
val dep = dependencyManager.createMaven("org.mapdb:mapdb:3.0.0-M3")
|
||||
val closure = dependencyManager.transitiveClosure(listOf(dep))
|
||||
val d = closure.filter { it.id.contains("eclipse-collections-api")}
|
||||
Assert.assertEquals(d.size, 1)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue