Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Upgrading to Arrow v2 #269

Merged
merged 5 commits into from
Dec 23, 2024
Merged

Upgrading to Arrow v2 #269

merged 5 commits into from
Dec 23, 2024

Conversation

Kantis
Copy link
Member

@Kantis Kantis commented Dec 7, 2024

Updates:

  • Arrow to 2.0.0
  • Kotlin to 2.1.0
  • Gradle to 8.11

Fixes kotest/kotest#4541

Migrates Gradle build to use default KMP target hierarchy template
@nomisRev I hope I got everything right w/ Resources, but I'm very uncertain.

💀 Goners 💀

  • Validated
  • Tuple9-12
  • SetterLaws
  • MonoidLaws
  • Eval
  • Endo
  • Const
  • Semigroup

@Kantis Kantis force-pushed the arrow-v2 branch 3 times, most recently from 5839704 to c3a3c3f Compare December 7, 2024 15:01
Example of warning:

>  > Configure project :kotest-assertions-arrow-fx-coroutines
>  w: A compileOnly dependency is used in targets: Kotlin/JS.
>  Dependencies:
>      - io.arrow-kt:arrow-fx-coroutines:2.0.0 (source sets: jsMain)
>
>  Using compileOnly dependencies in these targets is not currently supported, because compileOnly dependencies must be present during the compilation of projects that depend on this project.
>
>  To ensure consistent compilation behaviour, compileOnly dependencies should be exposed as api dependencies.
>
>  Example:
>
>      kotlin {
>          sourceSets {
>              nativeMain {
>                  dependencies {
>                      compileOnly("org.example:lib:1.2.3")
>                      // additionally add the compileOnly dependency as an api dependency:
>                      api("org.example:lib:1.2.3")
>                  }
>              }
>          }
>      }
>
>  This warning can be suppressed in gradle.properties:
>
>      kotlin.suppressGradlePluginWarnings=IncorrectCompileOnlyDependencyWarning
@Kantis Kantis requested a review from nomisRev December 7, 2024 15:47
@Kantis Kantis marked this pull request as ready for review December 7, 2024 16:14
@Kantis Kantis changed the title WIP migrating to Arrow v2 Upgrading to Arrow v2 Dec 7, 2024
Copy link
Member

@sksamuel sksamuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job

@hugomd hugomd mentioned this pull request Dec 15, 2024
6 tasks
@sFreezer
Copy link

Can anyone give an update, here ? Would really like to use this

@Kantis Kantis merged commit 8fa66cb into master Dec 23, 2024
1 check passed
@Kantis Kantis deleted the arrow-v2 branch December 23, 2024 10:51
@Kantis
Copy link
Member Author

Kantis commented Dec 23, 2024

@sFreezer I'll put 2.0.0 out there today

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kotest-extensions-arrow compatibility with Arrow 2
3 participants