GoogleContainerTools / jib-extensions

Apache License 2.0
118 stars 35 forks source link

Document Kotlin usage #40

Closed chanseokoh closed 4 years ago

chanseokoh commented 4 years ago

Fixes #35.

Kotlin users need to specify the org.gradle.api.Action type for pluginExtension.configuration.

      pluginExtension {
        implementation = "com.google.cloud.tools.jib.gradle.extension.layerfilter.JibLayerFilterExtension"
        configuration(Action<com.google.cloud.tools.jib.gradle.extension.layerfilter.Configuration> {
          filters {
            filter {

This is not worse than Maven, where they have to do a similar thing:

      <pluginExtension>
        <implementation>com.google.cloud.tools.jib.maven.extension.ownership.JibOwnershipExtension</implementation>
        <configuration implementation="com.google.cloud.tools.jib.maven.extension.ownership.Configuration">
          <rules>
            <rule>