diff --git a/src/main/groovy/nebula/plugin/publishing/ivy/IvyCompileOnlyPlugin.groovy b/src/main/groovy/nebula/plugin/publishing/ivy/IvyCompileOnlyPlugin.groovy index db42008f..99f9fe2e 100644 --- a/src/main/groovy/nebula/plugin/publishing/ivy/IvyCompileOnlyPlugin.groovy +++ b/src/main/groovy/nebula/plugin/publishing/ivy/IvyCompileOnlyPlugin.groovy @@ -21,6 +21,7 @@ import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.XmlProvider import org.gradle.api.plugins.JavaBasePlugin +import org.gradle.api.plugins.JavaPlugin import org.gradle.api.publish.PublicationContainer import org.gradle.api.publish.PublishingExtension import org.gradle.api.publish.ivy.IvyModuleDescriptorSpec @@ -39,7 +40,7 @@ class IvyCompileOnlyPlugin implements Plugin { project.plugins.apply IvyBasePublishPlugin PublishingExtension publishing = project.extensions.getByType(PublishingExtension) - project.plugins.withType(JavaBasePlugin) { JavaBasePlugin javaBasePlugin -> + project.plugins.withType(JavaPlugin) { JavaPlugin javaBasePlugin -> publishing.publications(new Action() { @Override