Add license header

Apache 2.0

Adds license headers to Java source files when missing. Does not override existing license headers.

org.openrewrite.java.AddLicenseHeader

Required

The license header text without the block comment. May contain ${CURRENT_YEAR} property.

mod run . --recipe=org.openrewrite.java.AddLicenseHeader \ -P licenseText='Copyright ${CURRENT_YEAR} the original author or authors...'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.