Skip to content

Commit

Permalink
Add Spring Boot and Protobuf configuration names
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed May 4, 2023
1 parent db78039 commit cb6e3c3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ public open class JakartaEeMigrationExtension(
{ it.runtimeOnlyConfigurationName },
{ it.runtimeClasspathConfigurationName },
)

private val SPRING_BOOT_CONFIGURATION_NAMES = listOf(
"developmentOnly",
"productionRuntime",
"processAotClasspath",
"processTestAotClasspath")
}

private val configuredCapabilities = AtomicBoolean()
Expand Down Expand Up @@ -101,6 +107,13 @@ public open class JakartaEeMigrationExtension(
}
}
}
project.configurations.configureEach {configuration ->
if (SPRING_BOOT_CONFIGURATION_NAMES.contains(configuration.name)) {
migrate(configuration)
} else if (configuration.name.endsWith("ProtoPath")) {
migrate(configuration)
}
}
}

/**
Expand Down

0 comments on commit cb6e3c3

Please sign in to comment.