mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Build fix.
This commit is contained in:
parent
620def64fa
commit
4f84b8df9a
3 changed files with 98 additions and 89 deletions
|
@ -1,9 +1,13 @@
|
|||
package com.beust.kobalt.misc
|
||||
|
||||
import com.beust.kobalt.TestModule
|
||||
import com.beust.kobalt.internal.KobaltSettings
|
||||
import com.beust.kobalt.internal.KobaltSettingsXml
|
||||
import com.beust.kobalt.maven.DependencyManager
|
||||
import com.beust.kobalt.maven.LocalRepo
|
||||
import com.beust.kobalt.maven.aether.Booter
|
||||
import com.beust.kobalt.maven.aether.KobaltAether
|
||||
import com.google.common.eventbus.EventBus
|
||||
import com.google.inject.Inject
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.eclipse.aether.artifact.DefaultArtifact
|
||||
|
@ -23,10 +27,14 @@ class AetherTest {
|
|||
@Inject
|
||||
lateinit var dependencyManager: DependencyManager
|
||||
|
||||
@Inject
|
||||
lateinit var localRepo: LocalRepo
|
||||
|
||||
@Test
|
||||
fun aetherShouldNotIncludeOptionalDependencies() {
|
||||
val system = Booter.newRepositorySystem()
|
||||
val session = Booter.newRepositorySystemSession(system)
|
||||
val session = Booter.newRepositorySystemSession(system,
|
||||
localRepo.localRepo, KobaltSettings(KobaltSettingsXml()), EventBus())
|
||||
val artifact = DefaultArtifact("com.squareup.retrofit2:converter-jackson:jar:2.1.0")
|
||||
|
||||
val collectRequest = CollectRequest().apply {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue