Gradle plugin to ease defining project metadata:
- module name
- readable name
- url, docUrl
- organization
- license
- developers
- issue management
- github
plugins {
id("io.github.sgtsilvio.gradle.metadata") version "0.6.0"
}
metadata {
moduleName.set("org.example.library")
readableName.set("Example library")
license {
apache2()
}
organization {
name.set("Example Org")
url.set("https://www.example.org")
}
developers {
register("jdoe") {
fullName.set("John Doe")
email.set("[email protected]")
}
}
github {
org.set("example")
pages()
issues()
}
}
- Gradle 6.6 or higher
maven-publish
: automatically configures pom metadatabiz.aQute.bnd.builder
: automatically configures meta-inf metadatajava-gradle-plugin
: automatically configures Gradle plugin metadata