Skip to content

Commit

Permalink
Fix dependabot snapshot repository bug
Browse files Browse the repository at this point in the history
  • Loading branch information
charphi committed Oct 12, 2023
1 parent cea3486 commit 753f699
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
<version>3.6.0</version>
</requireMavenVersion>
<requireNoRepositories>
<allowedRepositories>central</allowedRepositories>
<allowSnapshotRepositories>true</allowSnapshotRepositories>
</requireNoRepositories>
<requirePluginVersions/>
Expand Down Expand Up @@ -550,7 +551,16 @@
</profile>
</profiles>

<!-- Custom repositories: order matters! -->
<!-- Maven Central is enforced at top to prevent dependabot to use snapshots as releases -->
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jdemetra-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
Expand Down

0 comments on commit 753f699

Please sign in to comment.