Skip to content
Snippets Groups Projects
Commit 3c172ad5 authored by dgelessus's avatar dgelessus
Browse files

Use Gradle standard sources/javadoc jars instead of custom ones

parent 8c91c433
Branches
Tags
No related merge requests found
......@@ -46,6 +46,11 @@ dependencies {
testImplementation(group: 'junit', name: 'junit', version: '4.12')
}
java {
withSourcesJar()
withJavadocJar()
}
jacoco {
toolVersion = "0.8.6"
reportsDir = file("$buildDir/customJacocoReportDir")
......@@ -82,20 +87,6 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
sign configurations.archives
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
uploadArchives {
repositories {
mavenDeployer {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment