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
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,11 @@ dependencies { ...@@ -46,6 +46,11 @@ dependencies {
testImplementation(group: 'junit', name: 'junit', version: '4.12') testImplementation(group: 'junit', name: 'junit', version: '4.12')
} }
java {
withSourcesJar()
withJavadocJar()
}
jacoco { jacoco {
toolVersion = "0.8.6" toolVersion = "0.8.6"
reportsDir = file("$buildDir/customJacocoReportDir") reportsDir = file("$buildDir/customJacocoReportDir")
...@@ -82,20 +87,6 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword') ...@@ -82,20 +87,6 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
sign configurations.archives 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 { uploadArchives {
repositories { repositories {
mavenDeployer { mavenDeployer {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment