Design Partners
Use HTTPS for repositories
** org.openrewrite.maven.security.UseHttpsForRepositories** Use HTTPS for repository urls

Tags

  • security
  • CWE-829

Source

  • groupId: org.openrewrite
  • artifactId: rewrite-maven
  • version: 7.27.1

Usage

This recipe has no required configuration parameters and comes from a rewrite core library. It can be activated directly without adding any dependencies.
Gradle
Maven
build.gradle
plugins {
id("org.openrewrite.rewrite") version("5.26.1")
}
rewrite {
activeRecipe("org.openrewrite.maven.security.UseHttpsForRepositories")
}
repositories {
mavenCentral()
}
pom.xml
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>4.31.1</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.maven.security.UseHttpsForRepositories</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</project>
Recipes can also be activated directly from the command line by adding the argument -Drewrite.activeRecipesorg.openrewrite.maven.security.UseHttpsForRepositories
Last modified 13h ago
Export as PDF
Copy link