From cad5984daeb959adaf913184142e50d66ef96469 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 11 Aug 2016 21:25:54 -0800 Subject: [PATCH] Warnings. --- .../kotlin/com/beust/kobalt/maven/aether/Aether.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt index 1b812529..a2406324 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt @@ -39,11 +39,11 @@ import java.util.* import java.util.concurrent.Future enum class Scope(val scope: String, val dependencyLambda: (Project) -> List) { - COMPILE(JavaScopes.COMPILE, { project : Project -> project.compileDependencies }), - PROVIDED(JavaScopes.PROVIDED, { project : Project -> project.compileProvidedDependencies }), - SYSTEM(JavaScopes.SYSTEM, { project : Project -> emptyList() }), - RUNTIME(JavaScopes.RUNTIME, { project : Project -> project.compileRuntimeDependencies }), - TEST(JavaScopes.TEST, { project : Project -> project.testDependencies }) + COMPILE(JavaScopes.COMPILE, Project::compileDependencies), + PROVIDED(JavaScopes.PROVIDED, Project::compileProvidedDependencies), + SYSTEM(JavaScopes.SYSTEM, { project -> emptyList() }), + RUNTIME(JavaScopes.RUNTIME, Project::compileRuntimeDependencies), + TEST(JavaScopes.TEST, Project::testDependencies) ; companion object { @@ -134,7 +134,7 @@ class KobaltAether @Inject constructor (val settings: KobaltSettings, val aether } @Singleton -class Aether(localRepo: File, val settings: KobaltSettings, val eventBus: EventBus) { +class Aether(localRepo: File, val settings: KobaltSettings, eventBus: EventBus) { private val system = Booter.newRepositorySystem() private val session = Booter.newRepositorySystemSession(system, localRepo, settings, eventBus) // private val classpathFilter = Scopes.toFilter(Scopes.COMPILE, Scopes.TEST)