Skip to content

Commit

Permalink
Ensure all repositories defined for the build are accessed over https.
Browse files Browse the repository at this point in the history
  • Loading branch information
darranl committed Apr 11, 2019
1 parent 9b1cdaf commit 61e59fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
<!-- maven-enforcer-plugin -->
<maven.min.version>3.2.5</maven.min.version>
<jdk.min.version>${maven.compiler.argument.source}</jdk.min.version>
<insecure.repositories>ERROR</insecure.repositories>

<!-- maven-idea-plugin & maven-eclipse-plugin -->
<downloadSources>true</downloadSources>
Expand Down Expand Up @@ -695,6 +696,11 @@
</goals>
<configuration>
<rules>
<bannedRepositories>
<level>${insecure.repositories}</level>
<bannedRepositories>http://*</bannedRepositories>
<bannedPluginRepositories>http://*</bannedPluginRepositories>
</bannedRepositories>
<requireJavaVersion>
<message>To build this project JDK ${jdk.min.version} (or greater) is required. Please install it.</message>
<version>${jdk.min.version}</version>
Expand Down

0 comments on commit 61e59fe

Please sign in to comment.