diff --git a/patches/0003-Remove-the-POM-was-generated-by-Reposilite-descripti.patch b/patches/0003-Remove-the-POM-was-generated-by-Reposilite-descripti.patch new file mode 100644 index 0000000..3ac9366 --- /dev/null +++ b/patches/0003-Remove-the-POM-was-generated-by-Reposilite-descripti.patch @@ -0,0 +1,39 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: noeppi_noeppi +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 + $artifactId + $version +- POM was generated by Reposilite + + """.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() { + com.dzikoysk + reposilite + 3.0.1 +- POM was generated by Reposilite + + """.trimIndent() + ) +@@ -362,6 +361,7 @@ internal class MavenFacadeTest : MavenSpecification() { + assertThat(metadataBody).contains("3.0.0") + assertThat(metadataBody).contains("3.0.1") + assertThat(metadataBody).contains("" + ZonedDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMM"))) ++ assertThat(metadataBody).doesNotContain("\r\n") + } + + } diff --git a/upstream b/upstream index 686c592..229b751 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 686c592f09b8c32097e7a6ab230af4cbf62a9d33 +Subproject commit 229b751a40b111875f51813a8d4615416992b2c1