Created
April 8, 2021 14:51
-
-
Save dyno/a2466964670d880e302031b24838bd0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task rewriteMavenPom(type: Copy) { | |
from file("$buildDir/publications/maven/pom-default.xml") | |
into file("$buildDir/libs/") | |
rename("pom-default.xml", "${jar.archiveFileName.get()}.pom.xml") | |
filter { it.replaceAll('_%%', '_' + scalaSuffix).replaceAll('%scala-version%', scalaVersion) } | |
dependsOn(jar, generatePomFileForMavenPublication) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment