Build: Fix idea sources jar ivy for -EAP-SNAPSHOT versions

This commit is contained in:
Vyacheslav Gerasimov
2020-02-11 19:04:17 +03:00
parent 6d23e50142
commit 695558465d
+1 -4
View File
@@ -373,10 +373,7 @@ fun writeIvyXml(
sourcesJar.forEach { jarFile -> sourcesJar.forEach { jarFile ->
emptyElement("artifact") { emptyElement("artifact") {
val sourcesArtifactName = jarFile.name val sourcesArtifactName = jarFile.name.substringBefore("-$version")
.substringBeforeLast("-")
.substringBeforeLast("-")
attributes( attributes(
"name" to sourcesArtifactName, "name" to sourcesArtifactName,
"type" to "jar", "type" to "jar",