diff --git a/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfilePublishGradlePlugin.groovy b/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfilePublishGradlePlugin.groovy index 8ee4968d..5e6c831f 100644 --- a/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfilePublishGradlePlugin.groovy +++ b/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfilePublishGradlePlugin.groovy @@ -37,7 +37,6 @@ import static org.gradle.api.plugins.BasePlugin.BUILD_GROUP * @author Graeme Rocher * @since 3.1 */ -@CompileStatic class GrailsProfilePublishGradlePlugin extends GrailsPublishGradlePlugin { @Override diff --git a/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy b/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy index fccf10b6..8dea8917 100644 --- a/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy +++ b/src/main/groovy/org/grails/gradle/plugin/publishing/GrailsPublishGradlePlugin.groovy @@ -383,7 +383,7 @@ Note: if project properties are used, the properties must be defined prior to ap } } - private void addMavenPublishValidations(Project project, def mavenPublishUrl) { + protected void addMavenPublishValidations(Project project, def mavenPublishUrl) { project.plugins.withId(MAVEN_PUBLISH_PLUGIN_ID) { TaskProvider publishTask = project.tasks.named("publish") @@ -416,7 +416,7 @@ Note: if project properties are used, the properties must be defined prior to ap 'plugin' } - private validateProjectState(Project project) { + protected validateProjectState(Project project) { if (!project.components) { throw new RuntimeException("Cannot apply Grails Publish Plugin. Project ${project.name} does not have any components to publish.") }