change http to https urls when downloading license files

This commit is contained in:
Martin Lippert
2019-04-30 15:34:12 +02:00
parent f52500144b
commit ddf9c93ca9
4 changed files with 68 additions and 4 deletions

View File

@@ -69,7 +69,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<version>1.20</version>
<executions>
<execution>
<id>download-licenses</id>
@@ -79,6 +79,22 @@
</goals>
</execution>
</executions>
<configuration>
<licenseUrlReplacements>
<licenseUrlReplacement>
<regexp>http://(.*)</regexp>
<replacement>https://$1</replacement>
</licenseUrlReplacement>
</licenseUrlReplacements>
<licenseContentSanitizers>
<licenseContentSanitizer>
<id>all-http</id>
<urlRegexp>http(.*)</urlRegexp>
<contentRegexp>http://(.*)</contentRegexp>
<contentReplacement>https://$1</contentReplacement>
</licenseContentSanitizer>
</licenseContentSanitizers>
</configuration>
</plugin>
<plugin>

View File

@@ -92,7 +92,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<version>1.20</version>
<executions>
<execution>
<id>download-licenses</id>
@@ -102,6 +102,22 @@
</goals>
</execution>
</executions>
<configuration>
<licenseUrlReplacements>
<licenseUrlReplacement>
<regexp>http://(.*)</regexp>
<replacement>https://$1</replacement>
</licenseUrlReplacement>
</licenseUrlReplacements>
<licenseContentSanitizers>
<licenseContentSanitizer>
<id>all-http</id>
<urlRegexp>http(.*)</urlRegexp>
<contentRegexp>http://(.*)</contentRegexp>
<contentReplacement>https://$1</contentReplacement>
</licenseContentSanitizer>
</licenseContentSanitizers>
</configuration>
</plugin>
<plugin>

View File

@@ -112,7 +112,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<version>1.20</version>
<executions>
<execution>
<id>download-licenses</id>
@@ -122,6 +122,22 @@
</goals>
</execution>
</executions>
<configuration>
<licenseUrlReplacements>
<licenseUrlReplacement>
<regexp>http://(.*)</regexp>
<replacement>https://$1</replacement>
</licenseUrlReplacement>
</licenseUrlReplacements>
<licenseContentSanitizers>
<licenseContentSanitizer>
<id>all-http</id>
<urlRegexp>http(.*)</urlRegexp>
<contentRegexp>http://(.*)</contentRegexp>
<contentReplacement>https://$1</contentReplacement>
</licenseContentSanitizer>
</licenseContentSanitizers>
</configuration>
</plugin>
<plugin>

View File

@@ -172,7 +172,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.17</version>
<version>1.20</version>
<executions>
<execution>
<id>download-licenses</id>
@@ -182,6 +182,22 @@
</goals>
</execution>
</executions>
<configuration>
<licenseUrlReplacements>
<licenseUrlReplacement>
<regexp>http://(.*)</regexp>
<replacement>https://$1</replacement>
</licenseUrlReplacement>
</licenseUrlReplacements>
<licenseContentSanitizers>
<licenseContentSanitizer>
<id>all-http</id>
<urlRegexp>http(.*)</urlRegexp>
<contentRegexp>http://(.*)</contentRegexp>
<contentReplacement>https://$1</contentReplacement>
</licenseContentSanitizer>
</licenseContentSanitizers>
</configuration>
</plugin>
<plugin>