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 ->
emptyElement("artifact") {
val sourcesArtifactName = jarFile.name
.substringBeforeLast("-")
.substringBeforeLast("-")
val sourcesArtifactName = jarFile.name.substringBefore("-$version")
attributes(
"name" to sourcesArtifactName,
"type" to "jar",