Update build.gradle

This commit is contained in:
Aleksey 2021-05-25 17:17:21 +03:00
parent 397f24a3f3
commit 6a8cd69697

View file

@ -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 {