java-tutorials/gradle/greeting-library/bin/greeter/GreetingFormatter.groovy

11 lines
190 B
Groovy

package greeter
import groovy.transform.CompileStatic
@CompileStatic
class GreetingFormatter{
static String greeting(final String name) {
"Hello, ${name.capitalize()}"
}
}