diff --git a/build.gradle b/build.gradle index 1c69acd8..b9049c4f 100644 --- a/build.gradle +++ b/build.gradle @@ -85,10 +85,34 @@ task sourcesJar(type: Jar, dependsOn: classes) { from sourceSets.main.allSource } +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + jar { from "LICENSE" } +artifacts { + archives sourcesJar + archives javadocJar +} + +install { + repositories.mavenInstaller { + pom.project { + licenses { + license { + name 'MIT License' + url 'https://raw.githubusercontent.com/paulevsGitch/BCLib/main/LICENSE' + distribution 'repo' + } + } + } + } +} + // configure the maven publication //publishing { // publications {