Skip to content

Commit

Permalink
Provide default for kapt language version (#1015)
Browse files Browse the repository at this point in the history
Otherwise the zip() operator will never compute

<!--
  ⬆ Put your description above this! ⬆

  Please be descriptive and detailed.
  
Please read our [Contributing
Guidelines](https://github.com/tinyspeck/foundry/blob/main/.github/CONTRIBUTING.md)
and [Code of Conduct](https://slackhq.github.io/code-of-conduct).

Don't worry about deleting this, it's not visible in the PR!
-->
  • Loading branch information
ZacSweers authored Oct 8, 2024
1 parent e53f1b3 commit a0f7c37
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ internal object KgpTasks {
project.tasks.withType(KaptGenerateStubsTask::class.java).configureEach {
compilerOptions {
val zipped =
foundryProperties.kotlinProgressive.zip(foundryProperties.kaptLanguageVersion) {
progressive,
kaptLanguageVersion ->
foundryProperties.kotlinProgressive.zip(
foundryProperties.kaptLanguageVersion.orElse(KotlinVersion.DEFAULT)
) { progressive, kaptLanguageVersion ->
if (kaptLanguageVersion != KotlinVersion.DEFAULT) {
false
} else {
Expand Down

0 comments on commit a0f7c37

Please sign in to comment.