Is there a canonical way to declare a license as part of Gradle build files, in a similar way how I can add a
<licenses> tag to maven POMs? In particular, I’m looking for a solution that is independent of any Gradle plugins (like POM export), and that can be queried programmatically e.g. via the tooling API.
Of course, I could simply add a
LICENSE net to my root
build.gradle file. I was just wondering whether there is also some dedicated meta-data field for this, to e.g. put the concise SPDX identifier in, instead of having to parse the