From 3f825a433158e73e0455a01e40e7629bd8a20e9a Mon Sep 17 00:00:00 2001 From: Jared Date: Wed, 15 Jun 2022 20:37:09 +0200 Subject: [PATCH] Include LICENSE in the built artifacts --- build.gradle | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index c15265c..a05ca66 100644 --- a/build.gradle +++ b/build.gradle @@ -7,6 +7,9 @@ subprojects { java.withJavadocJar() jar { + from(rootProject.file("LICENSE")) { + rename { "${it}_${mod_name}" } + } manifest { attributes([ 'Specification-Title' : mod_name, @@ -22,7 +25,13 @@ subprojects { ]) } } - + + sourcesJar { + from(rootProject.file("LICENSE")) { + rename { "${it}_${mod_name}" } + } + } + repositories { mavenCentral() @@ -37,7 +46,6 @@ subprojects { url = 'https://maven.blamejared.com' } } - tasks.withType(JavaCompile).configureEach {