Skip to content

Commit

Permalink
solve issue with wrong configuration name
Browse files Browse the repository at this point in the history
  • Loading branch information
m-raab committed Aug 27, 2019
1 parent eaf2bfe commit bcacac5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/kotlin/com/intershop/gradle/icm/ICMBuildPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -42,9 +43,11 @@ class ICMBuildPlugin : Plugin<Project> {
)

// 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)
Expand Down

0 comments on commit bcacac5

Please sign in to comment.