Skip to content

Commit

Permalink
fix(abg): use correct coordinates in generated POM file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Sep 10, 2024
1 parent 37375d9 commit 4152d29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ internal const val LATEST_RELASED_LIBRARY_VERSION = "3.0.0"

internal fun ActionCoords.buildPomFile(): String {
val nameForRepo = name.substringBefore("__")
val nameForDisplay = name.replace("__", "/")
return """
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>$owner</groupId>
<artifactId>$name</artifactId>
<version>$version</version>
<name>$name</name>
<description>Auto-generated binding for $owner/$name@$version.</description>
<name>$nameForDisplay</name>
<description>Auto-generated binding for $owner/$nameForDisplay@$version.</description>
<url>https://github.com/$owner/$nameForRepo</url>
<scm>
<connection>scm:git:git://github.com/$owner/$nameForRepo.git/</connection>
Expand Down

0 comments on commit 4152d29

Please sign in to comment.