Skip to content

Commit

Permalink
Fix profile publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Dec 24, 2024
1 parent 5da451e commit ab03691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<? extends Task> publishTask = project.tasks.named("publish")

Expand Down Expand Up @@ -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.")
}
Expand Down

0 comments on commit ab03691

Please sign in to comment.