jdaugherty commented on code in PR #16433:
URL: https://github.com/apache/grails-core/pull/16433#discussion_r4145530033


##########
grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/commands/GrailsCliGradlePlugin.groovy:
##########
@@ -358,6 +360,22 @@ class GrailsCliGradlePlugin implements Plugin<Project> {
         dependency
     }
 
+    /**
+     * Returns the application main class for a task that runs against the 
application, or fails the task with
+     * an explanation when the project has none, as is the case for a plugin 
without an {@code Application} class.
+     *
+     * @param mainClass the main class found by the {@code findMainClass} task
+     * @param taskName the name of the task that requires the main class
+     * @return the name of the main class
+     */
+    static String requireMainClass(Provider<String> mainClass, String 
taskName) {

Review Comment:
   Should this be `@PackageScope`, otherwise it's part of our public API going 
forward.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to