Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: arrow-kt/arrow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.3
Choose a base ref
...
head repository: arrow-kt/arrow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.4
Choose a head ref

Commits on Sep 29, 2022

  1. Copy the full SHA
    0c2de60 View commit details
  2. Fix typo (#2824)

    valery1707 authored Sep 29, 2022
    Copy the full SHA
    e94fc4d View commit details

Commits on Oct 3, 2022

  1. Make the server disconnect test more general (#2822)

    Turns out on Windows the JVM throws a more general exception
    (SocketException) than on Mac when the server disconnects.
    
    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    lukasz-kalnik-gcx and nomisRev authored Oct 3, 2022
    Copy the full SHA
    336692d View commit details

Commits on Oct 4, 2022

  1. Copy the full SHA
    0813110 View commit details

Commits on Oct 5, 2022

  1. Improve Either.getOrHandle() docs (#2833)

    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    lukasz-kalnik-gcx and nomisRev authored Oct 5, 2022
    Copy the full SHA
    65cab36 View commit details

Commits on Oct 7, 2022

  1. Copy the full SHA
    a71588d View commit details
  2. Arrow Fx: deprecate Platform#composeError, never and unit() (#2837)

    * Deprecate some niche apis
    
    * Revert unrelated changes
    nomisRev authored Oct 7, 2022
    Copy the full SHA
    ebd3406 View commit details

Commits on Oct 13, 2022

  1. Copy the full SHA
    8340c83 View commit details

Commits on Oct 17, 2022

  1. Refactor - #2812 sequence separate performance (#2818)

    * Refactor: Use fold to separate Sequence of Either
    * Refactor: Use fold to separate Sequence of Validated
    * Feature: Add tests for separating Either & Validated
    
    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    Co-authored-by: Imran Malic Settuba <46971368+i-walker@users.noreply.github.com>
    3 people authored Oct 17, 2022
    Copy the full SHA
    336c501 View commit details
  2. Copy the full SHA
    96c774a View commit details

Commits on Nov 17, 2022

  1. Resource API deprecation, and preparation for 2.x.x. & back port impr…

    …ovements (#2847)
    
    * Backport changes Arrow 2.x.x to 1.x.x
    
    * apiDump
    
    * Install Watch simulator
    
    * Only install watch on macos
    
    * Fix XCode version
    nomisRev authored Nov 17, 2022
    Copy the full SHA
    8389426 View commit details
  2. introduce iterable.toNonEmptyListOrNone() (#2843)

    * introduce iterable.toNonEmptyListOrNone
    
    * update .api file
    
    Co-authored-by: Alejandro Serrano <trupill@gmail.com>
    myuwono and serras authored Nov 17, 2022
    Copy the full SHA
    a9c8dcc View commit details
  3. [PROPOSAL] Either API deprecation, and preparation for 2.x.x (#2830)

    Co-authored-by: Imran Malic Settuba <46971368+i-walker@users.noreply.github.com>
    Co-authored-by: Alejandro Serrano <trupill@gmail.com>
    3 people authored Nov 17, 2022
    Copy the full SHA
    cf0add9 View commit details
  4. Copy the full SHA
    f8ca4af View commit details
  5. Weaken Either monoid dependencies to only require a semigroup on left (

    …#2845)
    
    * Weaken Either monoid dependencies to require only a semigroup on left
    
    * Update API files
    
    Co-authored-by: Michael Mroz <admin@heretic.software>
    Co-authored-by: Alejandro Serrano <trupill@gmail.com>
    3 people authored Nov 17, 2022
    Copy the full SHA
    0bb0973 View commit details
  6. Copy the full SHA
    b608a05 View commit details

Commits on Nov 26, 2022

  1. Bump Gradle to 7.6

    nomisRev committed Nov 26, 2022
    Copy the full SHA
    5e29756 View commit details

Commits on Nov 29, 2022

  1. Copy the full SHA
    1b335d3 View commit details

Commits on Dec 4, 2022

  1. Update various versions (#2852)

    * Update various versions
    * Update ResourceTest
    * Fix compile error in arrow-continuations
    * Remove 'lock' from TVar
    * Replace global TVar counter with random value
    * Downgrade Gradle version (because of https://youtrack.jetbrains.com/issue/KT-54634)
    * Rewrite Flow time based tests to runTest
    * Fine-tune jvmargs, inspired by Stately, Splitties, SqlDelight & Kotest
    * Split macOS into two jobs and --in-parallel
    * Split ubuntu in separate steps
    
    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    Co-authored-by: serras <serras@users.noreply.github.com>
    3 people authored Dec 4, 2022
    Copy the full SHA
    3964b18 View commit details
  2. Copy the full SHA
    be63562 View commit details

Commits on Dec 5, 2022

  1. Add CyclicBarrier (#2857)

    * Remove @throws CountDownLatch
    nomisRev authored Dec 5, 2022
    Copy the full SHA
    5f17a0b View commit details

Commits on Dec 9, 2022

  1. Copy the full SHA
    a8e9b73 View commit details
  2. Setup Kover as test coverage tool (#2793)

    Signed-off-by: MarkMarkyMarkus <morofreestyle@gmail.com>
    Co-authored-by: Alejandro Serrano <trupill@gmail.com>
    Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
    3 people authored Dec 9, 2022
    Copy the full SHA
    93f0731 View commit details

Commits on Dec 10, 2022

  1. Copy the full SHA
    745dc5e View commit details
  2. Revert "Replace TOKEN_GITHUB_ACTION with GITHUB_TOKEN"

    This reverts commit 745dc5e.
    nomisRev committed Dec 10, 2022
    Copy the full SHA
    38d6c74 View commit details

Commits on Dec 12, 2022

  1. Copy the full SHA
    1d8ba60 View commit details
  2. MPP No Trace (#2869)

    nomisRev authored Dec 12, 2022
    Copy the full SHA
    99e50bd View commit details
Showing with 3,077 additions and 1,754 deletions.
  1. +17 −13 .github/workflows/generate-alpha-tag.yaml
  2. +17 −13 .github/workflows/generate-tag.yaml
  3. +14 −16 .github/workflows/publish.yml
  4. +121 −27 .github/workflows/pull_request.yml
  5. +5 −81 arrow-libs/core/arrow-continuations/src/commonTest/kotlin/generic/TestSuite.kt
  6. +2 −2 ...fit/src/test/kotlin/arrow/retrofit/adapter/either/networkhandling/NetworkEitherCallAdapterTest.kt
  7. +18 −4 arrow-libs/core/arrow-core/api/arrow-core.api
  8. +2 −1 arrow-libs/core/arrow-core/knit.properties
  9. +15 −0 arrow-libs/core/arrow-core/knit.test.template
  10. +461 −254 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt
  11. +1 −1 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Ior.kt
  12. +11 −18 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/NonEmptyList.kt
  13. +14 −10 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Sequence.kt
  14. +3 −1 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/continuations/Effect.kt
  15. +0 −1 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/continuations/EffectScope.kt
  16. +9 −5 arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/typeclasses/Monoid.kt
  17. +97 −88 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/EitherTest.kt
  18. +26 −1 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/NonEmptyListTest.kt
  19. +26 −0 arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/SequenceKTest.kt
  20. +5 −0 ...w-libs/core/arrow-core/src/jsMain/kotlin/arrow/core/continuations/CancellationExceptionNoTrace.kt
  21. +16 −0 ...-libs/core/arrow-core/src/jvmMain/kotlin/arrow/core/continuations/CancellationExceptionNoTrace.kt
  22. +9 −11 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-34.kt
  23. +5 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-35.kt
  24. +5 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-36.kt
  25. +5 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-37.kt
  26. +4 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-38.kt
  27. +4 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-39.kt
  28. +5 −7 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-41.kt
  29. +7 −5 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-42.kt
  30. +3 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-43.kt
  31. +8 −0 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-44.kt
  32. +0 −8 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-45.kt
  33. +5 −5 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-46.kt
  34. +2 −3 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-47.kt
  35. +5 −8 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-48.kt
  36. +8 −11 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-49.kt
  37. +12 −6 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-50.kt
  38. +6 −7 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-51.kt
  39. +6 −3 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-52.kt
  40. +4 −8 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-53.kt
  41. +13 −0 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-either-54.kt
  42. +3 −4 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-nonemptylist-06.kt
  43. +45 −0 arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/test/EitherKnitTest.kt
  44. +5 −0 ...bs/core/arrow-core/src/nativeMain/kotlin/arrow/core/continuations/CancellationExceptionNoTrace.kt
  45. +58 −1 arrow-libs/fx/arrow-fx-coroutines/api/arrow-fx-coroutines.api
  46. +1 −1 arrow-libs/fx/arrow-fx-coroutines/build.gradle.kts
  47. +131 −52 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/CircuitBreaker.kt
  48. +44 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/CountDownLatch.kt
  49. +52 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/CyclicBarrier.kt
  50. +17 −6 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Platform.kt
  51. +1 −1 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Race3.kt
  52. +520 −197 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/Resource.kt
  53. +8 −2 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/builders.kt
  54. +48 −0 ...w-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/continuations/resource.kt
  55. +8 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonMain/kotlin/arrow/fx/coroutines/predef.kt
  56. +7 −4 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/BracketCaseTest.kt
  57. +55 −9 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/CircuitBreakerTest.kt
  58. +79 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/CountDownLatchSpec.kt
  59. +84 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/CyclicBarrierSpec.kt
  60. +119 −0 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/FlowTest.kt
  61. +2 −2 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ParTraverseTest.kt
  62. +18 −14 arrow-libs/fx/arrow-fx-coroutines/src/commonTest/kotlin/arrow/fx/coroutines/ResourceTest.kt
  63. +160 −32 arrow-libs/fx/arrow-fx-coroutines/src/jvmMain/kotlin/arrow/fx/coroutines/ResourceExtensions.kt
  64. +3 −131 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/arrow/fx/coroutines/FlowJvmTest.kt
  65. +0 −5 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-01.kt
  66. +21 −9 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-02.kt
  67. +26 −20 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-03.kt
  68. +24 −12 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-04.kt
  69. +26 −18 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-05.kt
  70. +7 −22 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-06.kt
  71. +16 −22 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-07.kt
  72. +26 −12 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-08.kt
  73. +28 −6 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-09.kt
  74. +9 −17 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-10.kt
  75. +5 −22 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-11.kt
  76. +8 −13 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-12.kt
  77. +31 −0 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-13.kt
  78. +31 −0 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-14.kt
  79. +12 −10 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resourceextensions-01.kt
  80. +7 −7 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resourceextensions-02.kt
  81. +7 −7 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resourceextensions-03.kt
  82. +8 −8 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resourceextensions-04.kt
  83. +14 −0 arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resourceextensions-05.kt
  84. +7 −29 arrow-libs/fx/arrow-fx-stm/src/commonMain/kotlin/arrow/fx/stm/TVar.kt
  85. +3 −1 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/STMTest.kt
  86. +0 −83 arrow-libs/fx/arrow-fx-stm/src/commonTest/kotlin/arrow/fx/stm/TVarTest.kt
  87. +2 −0 arrow-libs/gradle/test-coverage.gradle
  88. +1 −2 arrow-libs/optics/arrow-optics-ksp-plugin/src/main/kotlin/arrow/optics/plugin/OpticsProcessor.kt
  89. +1 −1 arrow-libs/optics/arrow-optics-ksp-plugin/src/main/kotlin/arrow/optics/plugin/internals/processor.kt
  90. +5 −0 arrow-libs/optics/arrow-optics-ksp-plugin/src/test/kotlin/arrow/optics/plugin/Compilation.kt
  91. +16 −0 arrow-libs/optics/arrow-optics-ksp-plugin/src/test/kotlin/arrow/optics/plugin/DSLTests.kt
  92. +2 −2 arrow-site/docs/docs/lens/README.md
  93. +31 −0 build.gradle.kts
  94. +0 −1 gradle.properties
  95. +14 −12 gradle/libs.versions.toml
  96. BIN gradle/wrapper/gradle-wrapper.jar
  97. +1 −1 gradle/wrapper/gradle-wrapper.properties
  98. +6 −0 gradlew
  99. +8 −6 gradlew.bat
  100. +209 −307 kotlin-js-store/yarn.lock
  101. +1 −1 settings.gradle.kts
30 changes: 17 additions & 13 deletions .github/workflows/generate-alpha-tag.yaml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ on:
- main

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xmx5g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx5g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"

jobs:
build:
@@ -19,18 +19,25 @@ jobs:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Gradle build
uses: gradle/gradle-build-action@v2.2.0
- name: compileKotlin
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace build "-Psemver.stage=alpha"
arguments: compileKotlin

- name: Stop Gradle daemons
run: ./gradlew --stop
- name: compileTestKotlin
uses: gradle/gradle-build-action@v2
with:
arguments: compileTestKotlin

- name: check
uses: gradle/gradle-build-action@v2
with:
arguments: check "-Psemver.stage=alpha"

generate-alpha-tag:
runs-on: ubuntu-latest
@@ -46,18 +53,15 @@ jobs:
token: ${{ secrets.TOKEN_GITHUB_ACTION }}

- name: Set up Java
uses: actions/setup-java@v3.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Generate Tag
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace createSemverTag "-Psemver.stage=alpha"
arguments: createSemverTag "-Psemver.stage=alpha"

- name: Push
run: git push --follow-tags

- name: Stop Gradle daemons
run: ./gradlew --stop
30 changes: 17 additions & 13 deletions .github/workflows/generate-tag.yaml
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ on:
- 'auto'

env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xmx5g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx5g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"

jobs:
build:
@@ -39,18 +39,25 @@ jobs:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Gradle build
uses: gradle/gradle-build-action@v2.2.0
- name: compileKotlin
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace build "-Psemver.scope=${{ github.event.inputs.scope }}" "-Psemver.stage=${{ github.event.inputs.stage }}"
arguments: compileKotlin

- name: Stop Gradle daemons
run: ./gradlew --stop
- name: compileTestKotlin
uses: gradle/gradle-build-action@v2
with:
arguments: compileTestKotlin

- name: check
uses: gradle/gradle-build-action@v2
with:
arguments: check "-Psemver.scope=${{ github.event.inputs.scope }}" "-Psemver.stage=${{ github.event.inputs.stage }}"

generate-tag:
runs-on: ubuntu-latest
@@ -66,18 +73,15 @@ jobs:
token: ${{ secrets.TOKEN_GITHUB_ACTION }}

- name: Set up Java
uses: actions/setup-java@v3.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Generate Tag
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace createSemverTag "-Psemver.scope=${{ github.event.inputs.scope }}" "-Psemver.stage=${{ github.event.inputs.stage }}"
arguments: createSemverTag "-Psemver.scope=${{ github.event.inputs.scope }}" "-Psemver.stage=${{ github.event.inputs.stage }}"

- name: Push
run: git push --follow-tags

- name: Stop Gradle daemons
run: ./gradlew --stop
30 changes: 14 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ on:

env:
BASEDIR: ${{github.workspace}}/arrow-libs
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dorg.gradle.jvmargs="-Xmx5g -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx5g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PWD: ${{ secrets.SONATYPE_PWD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
@@ -30,51 +30,52 @@ env:

jobs:
publish:
timeout-minutes: 150
timeout-minutes: 90
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3.4.0
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Build
uses: gradle/gradle-build-action@v2.2.0
- name: assemble
uses: gradle/gradle-build-action@v2
with:
arguments: assemble -Pkotlin.mpp.enableCompatibilityMetadataVariant=true --full-stacktrace
arguments: assemble -Pkotlin.mpp.enableCompatibilityMetadataVariant=true

- name: Get Arrow version
id: version
run: echo "::set-output name=arrow::$(head -n 1 build/semver/version.txt)"

- name: Upload reports
uses: actions/upload-artifact@v3.1.0
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-${{ matrix.os }}'
path: '**/build/reports/**'

- name: Publish alpha/beta/rc version
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
if: |
contains(steps.version.outputs.arrow, 'alpha') ||
contains(steps.version.outputs.arrow, 'beta') ||
contains(steps.version.outputs.arrow, 'rc')
with:
arguments: --full-stacktrace -Pkotlin.mpp.enableCompatibilityMetadataVariant=true publishToSonatype closeAndReleaseSonatypeStagingRepository
arguments: -Pkotlin.mpp.enableCompatibilityMetadataVariant=true publishToSonatype closeAndReleaseSonatypeStagingRepository

- name: Publish final version
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
if: |
!contains(steps.version.outputs.arrow, 'alpha') &&
!contains(steps.version.outputs.arrow, 'beta') &&
!contains(steps.version.outputs.arrow, 'rc')
with:
arguments: --full-stacktrace -Pkotlin.mpp.enableCompatibilityMetadataVariant=true publishToSonatype closeSonatypeStagingRepository
arguments: -Pkotlin.mpp.enableCompatibilityMetadataVariant=true publishToSonatype closeSonatypeStagingRepository

- name: Prepare environment
working-directory: arrow-site
@@ -85,9 +86,9 @@ jobs:
bundle install --gemfile Gemfile
- name: Create API doc
uses: gradle/gradle-build-action@v2.2.0
uses: gradle/gradle-build-action@v2
with:
arguments: --full-stacktrace -Pkotlin.mpp.enableCompatibilityMetadataVariant=true dokkaGfm
arguments: -Pkotlin.mpp.enableCompatibilityMetadataVariant=true dokkaGfm

- name: Build release directory (/docs)
working-directory: arrow-site
@@ -158,6 +159,3 @@ jobs:
with:
name: logs
path: arrow-libs/logs.

- name: Stop Gradle daemons
run: ./gradlew -Pkotlin.mpp.enableCompatibilityMetadataVariant=true --stop
Loading