From 6a8cd696975f1b01ed6389837ad4ae943e49baed Mon Sep 17 00:00:00 2001 From: Aleksey Date: Tue, 25 May 2021 17:17:21 +0300 Subject: [PATCH] Update build.gradle --- build.gradle | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 {