From bcacac5ab9db135690ebd0db108503b7ff0971d3 Mon Sep 17 00:00:00 2001 From: Matthias Raab Date: Tue, 27 Aug 2019 14:27:03 +0200 Subject: [PATCH] solve issue with wrong configuration name --- .../kotlin/com/intershop/gradle/icm/ICMBuildPlugin.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/intershop/gradle/icm/ICMBuildPlugin.kt b/src/main/kotlin/com/intershop/gradle/icm/ICMBuildPlugin.kt index c5ac6eb..7c3f9bb 100644 --- a/src/main/kotlin/com/intershop/gradle/icm/ICMBuildPlugin.kt +++ b/src/main/kotlin/com/intershop/gradle/icm/ICMBuildPlugin.kt @@ -20,6 +20,7 @@ import com.intershop.gradle.icm.extension.IntershopExtension import com.intershop.gradle.icm.tasks.CreateServerInfoProperties import org.gradle.api.Plugin import org.gradle.api.Project +import org.gradle.api.plugins.JavaPlugin /** * The main plugin class of this plugin. @@ -42,9 +43,11 @@ class ICMBuildPlugin : Plugin { ) // create configurations for ICM project - val dbinit = configurations.maybeCreate("dbinit") - dbinit.extendsFrom(configurations.getByName("Implementation")) - dbinit.setTransitive(false) + plugins.withType(JavaPlugin::class.java) { + val dbinit = configurations.maybeCreate("dbinit") + dbinit.extendsFrom(configurations.getByName("implementation")) + dbinit.setTransitive(false) + } val icmserver = configurations.maybeCreate("icmserver") icmserver.setTransitive(false)