Package org.openrewrite.gradle
Class RecipeDependenciesExtension
java.lang.Object
org.openrewrite.gradle.RecipeDependenciesExtension
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeDependenciesExtension(org.gradle.api.artifacts.ConfigurationContainer configurationContainer, org.gradle.api.artifacts.dsl.DependencyHandler dependencyHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidparserClasspath(String dependencyNotation) voidparserClasspath(String sourceSetName, String dependencyNotation) Add a dependency to the parser classpath for a specific source set.voidtestParserClasspath(String dependencyNotation)
-
Constructor Details
-
RecipeDependenciesExtension
@Inject public RecipeDependenciesExtension(org.gradle.api.artifacts.ConfigurationContainer configurationContainer, org.gradle.api.artifacts.dsl.DependencyHandler dependencyHandler)
-
-
Method Details
-
parserClasspath
-
testParserClasspath
-
parserClasspath
Add a dependency to the parser classpath for a specific source set. This is useful for custom source sets not covered by the convenience methods above.- Parameters:
sourceSetName- the name of the source set (e.g., "customTest", "functionalTest")dependencyNotation- the dependency notation (e.g., "org.example:library:1.0.0")
-