Skip to content

Commit 32ce48b

Browse files
committed
fix(abg): use correct coordinates in generated maven metadata file
1 parent 71fcf1a commit 32ce48b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/MavenMetadataBuilding.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package io.github.typesafegithub.workflows.mavenbinding
22

3+
import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCoords
34
import io.github.typesafegithub.workflows.shared.internal.fetchAvailableVersions
45
import java.time.format.DateTimeFormatter
56

6-
internal suspend fun buildMavenMetadataFile(
7-
owner: String,
8-
name: String,
9-
githubToken: String,
10-
): String {
7+
internal suspend fun ActionCoords.buildMavenMetadataFile(githubToken: String): String {
118
val availableMajorVersions =
129
fetchAvailableVersions(owner = owner, name = name.substringBefore("__"), githubToken = githubToken)
1310
.filter { it.isMajorVersion() }
@@ -20,7 +17,7 @@ internal suspend fun buildMavenMetadataFile(
2017
<?xml version="1.0" encoding="UTF-8"?>
2118
<metadata>
2219
<groupId>$owner</groupId>
23-
<artifactId>${name.replace("__", "/")}</artifactId>
20+
<artifactId>$name</artifactId>
2421
<versioning>
2522
<latest>$newest</latest>
2623
<release>$newest</release>

maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/PackageArtifactsBuilding.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package io.github.typesafegithub.workflows.mavenbinding
33
import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCoords
44

55
suspend fun ActionCoords.buildPackageArtifacts(githubToken: String): Map<String, String> {
6-
val mavenMetadata = buildMavenMetadataFile(owner = owner, name = name, githubToken = githubToken)
6+
val mavenMetadata = buildMavenMetadataFile(githubToken = githubToken)
77
return mapOf(
88
"maven-metadata.xml" to mavenMetadata,
99
"maven-metadata.xml.md5" to mavenMetadata.md5Checksum(),

0 commit comments

Comments
 (0)