-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the 'POM was generated by Reposilite' description from generat…
…ed POMs.
- Loading branch information
1 parent
4f0ac74
commit ae51720
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
patches/0003-Remove-the-POM-was-generated-by-Reposilite-descripti.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: noeppi_noeppi <[email protected]> | ||
Date: Wed, 22 May 2024 22:10:09 +0200 | ||
Subject: [PATCH] Remove the 'POM was generated by Reposilite' description from | ||
generated POMs. | ||
|
||
|
||
diff --git a/reposilite-backend/src/main/kotlin/com/reposilite/maven/MetadataService.kt b/reposilite-backend/src/main/kotlin/com/reposilite/maven/MetadataService.kt | ||
index 9e9d40779e4a145433907da2a2eccefd53a816b1..c759a3f2290e733d3d219c75d1750503e1d83943 100644 | ||
--- a/reposilite-backend/src/main/kotlin/com/reposilite/maven/MetadataService.kt | ||
+++ b/reposilite-backend/src/main/kotlin/com/reposilite/maven/MetadataService.kt | ||
@@ -97,7 +97,6 @@ internal class MetadataService(private val repositorySecurityProvider: Repositor | ||
<groupId>$groupId</groupId> | ||
<artifactId>$artifactId</artifactId> | ||
<version>$version</version> | ||
- <description>POM was generated by Reposilite</description> | ||
</project> | ||
""".trimIndent().trim().byteInputStream() | ||
) | ||
diff --git a/reposilite-backend/src/test/kotlin/com/reposilite/maven/MavenFacadeTest.kt b/reposilite-backend/src/test/kotlin/com/reposilite/maven/MavenFacadeTest.kt | ||
index e4309ef08b249934e1c99ed6f7c98c47df7766c0..d3fe6f0f0dcb002938dd37028c0d599d56ba6b25 100644 | ||
--- a/reposilite-backend/src/test/kotlin/com/reposilite/maven/MavenFacadeTest.kt | ||
+++ b/reposilite-backend/src/test/kotlin/com/reposilite/maven/MavenFacadeTest.kt | ||
@@ -346,7 +346,6 @@ internal class MavenFacadeTest : MavenSpecification() { | ||
<groupId>com.dzikoysk</groupId> | ||
<artifactId>reposilite</artifactId> | ||
<version>3.0.1</version> | ||
- <description>POM was generated by Reposilite</description> | ||
</project> | ||
""".trimIndent() | ||
) | ||
@@ -362,6 +361,7 @@ internal class MavenFacadeTest : MavenSpecification() { | ||
assertThat(metadataBody).contains("<version>3.0.0</version>") | ||
assertThat(metadataBody).contains("<version>3.0.1</version>") | ||
assertThat(metadataBody).contains("<lastUpdated>" + ZonedDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMM"))) | ||
+ assertThat(metadataBody).doesNotContain("\r\n") | ||
} | ||
|
||
} |