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

Tags

  • security

Source

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

Usage

This recipe has no required configuration options and can be activated directly after taking a dependency on org.openrewrite:rewrite-gradle:7.27.1 in your build file:
Gradle
Maven
build.gradle
plugins {
id("org.openrewrite.rewrite") version("5.26.1")
}
rewrite {
activeRecipe("org.openrewrite.gradle.security.UseHttpsForRepositories")
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite:rewrite-gradle:7.27.1")
}
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.gradle.security.UseHttpsForRepositories</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite</groupId>
<artifactId>rewrite-gradle</artifactId>
<version>7.27.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Recipes can also be activated directly from the command line by adding the argument -Drewrite.activeRecipesorg.openrewrite.gradle.security.UseHttpsForRepositories
Last modified 13h ago
Export as PDF
Copy link