Skip to content

Commit

Permalink
iterate over all configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-lapin committed May 6, 2022
1 parent 6bb9111 commit b9c64b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NAPT

[![Plugin](https://img.shields.io/badge/gradle%20plugin-v1.11-blue)](https://plugins.gradle.org/plugin/com.sergei-lapin.napt)
[![Plugin](https://img.shields.io/badge/gradle%20plugin-v1.13-blue)](https://plugins.gradle.org/plugin/com.sergei-lapin.napt)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## What is it?
Expand Down
2 changes: 1 addition & 1 deletion plugins/gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {
}

group = "com.sergei-lapin.napt"
version = "1.12"
version = "1.13"

java {
toolchain {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class NaptGradlePlugin : Plugin<Project> {

private fun Project.insertCompilerPluginDependency() {
val compilerPluginDependency = dependencies.create(CompilerPlugin)
configurations.whenObjectAdded { configuration ->
configurations.all { configuration ->
if (configuration.name.contains(AnnotationProcessor, ignoreCase = true)) {
configuration.dependencies.add(compilerPluginDependency)
}
Expand Down

0 comments on commit b9c64b0

Please sign in to comment.