Skip to content

Commit 6ca3d30

Browse files
committed
fix(abg): use correct coordinates in generated maven metadata file
1 parent 3cb3b7e commit 6ca3d30

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,15 +1,12 @@
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.Instant
56
import java.time.ZoneId
67
import java.time.format.DateTimeFormatter
78

8-
internal suspend fun buildMavenMetadataFile(
9-
owner: String,
10-
name: String,
11-
githubToken: String,
12-
): String {
9+
internal suspend fun ActionCoords.buildMavenMetadataFile(githubToken: String): String {
1310
val lastUpdated =
1411
DateTimeFormatter
1512
.ofPattern("yyyyMMddHHmmss")
@@ -23,7 +20,7 @@ internal suspend fun buildMavenMetadataFile(
2320
<?xml version="1.0" encoding="UTF-8"?>
2421
<metadata>
2522
<groupId>$owner</groupId>
26-
<artifactId>${name.replace("__", "/")}</artifactId>
23+
<artifactId>$name</artifactId>
2724
<versioning>
2825
<latest>$newest</latest>
2926
<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
)

0 commit comments

Comments
 (0)