Skip to content

Commit

Permalink
Remove redundant apply
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisGabin committed Aug 6, 2023
1 parent 027a29c commit ff4545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-logic/src/main/kotlin/ConsumeGeneratedConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.gradle.kotlin.dsl.dependencies

fun Project.consumeGeneratedConfig(fromProject: ProjectDependency, fromConfiguration: String, forTask: TaskProvider<*>) {

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
val configurationName = "generatedConfigFor${forTask.name.replaceFirstChar { it.titlecase() }}"
val generatedConfig = configurations.create(configurationName).apply {
val generatedConfig = configurations.create(configurationName) {
isCanBeConsumed = false
isCanBeResolved = true
}
Expand Down

0 comments on commit ff4545c

Please sign in to comment.