Skip to content

Commit

Permalink
Fix publishing of the documentation artifact under jpro-media subpr…
Browse files Browse the repository at this point in the history
…oject
  • Loading branch information
besidev committed Oct 24, 2023
1 parent 63851c7 commit 0e5950b
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions jpro-media/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ test {
onlyIf { !Boolean.getBoolean("ciTest") }
}

tasks.register('renameReadme', Copy) {
from 'README.md'
into layout.buildDirectory.dir('docs')
rename 'README.md', 'DOCUMENTATION.md'

doLast {
println("Renamed README.md to DOCUMENTATION.md")
}
}

javadoc {
options {
encoding = 'UTF-8'
Expand All @@ -60,8 +50,6 @@ javadoc {
}
}

javadocJar.dependsOn renameReadme

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down Expand Up @@ -89,3 +77,11 @@ publishing {
}
}
}

tasks.register('renameReadme', Copy) {
from 'README.md'
into layout.buildDirectory.dir('docs')
rename 'README.md', 'DOCUMENTATION.md'
}

javadocJar.dependsOn renameReadme

0 comments on commit 0e5950b

Please sign in to comment.