Skip to content

Commit

Permalink
Merge branch 'main' into serras/core-pattern-match
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Oct 2, 2024
2 parents 3615561 + 2363757 commit 39257bc
Show file tree
Hide file tree
Showing 109 changed files with 2,140 additions and 1,359 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/githubpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
java-version: 17

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/arrow-2' }}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a href="https://arrow-kt.io" title="Arrow website"><img src="https://arrow-kt.io/img/arrow-brand.svg" width="200" alt=""></a>

[![Maven Central](https://img.shields.io/maven-central/v/io.arrow-kt/arrow-core?color=4caf50&label=latest%20release)](https://maven-badges.herokuapp.com/maven-central/io.arrow-kt/arrow-core)
[![Maven Central](https://img.shields.io/maven-central/v/io.arrow-kt/arrow-core?color=4caf50&label=latest%20release)](https://central.sonatype.com/search?q=g:io.arrow-kt)
[![Kotlin version](https://img.shields.io/badge/Kotlin-1.8.10-blue)](https://kotlinlang.org/docs/whatsnew18.html)

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
Expand Down
25 changes: 15 additions & 10 deletions arrow-libs/core/arrow-annotations/api/arrow-annotations.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@
// - Show declarations: true

// Library unique name: <io.arrow-kt:arrow-annotations>
open annotation class arrow.optics/optics : kotlin/Annotation { // arrow.optics/optics|null[0]
constructor <init>(kotlin/Array<arrow.optics/OpticsTarget> = ...) // arrow.optics/optics.<init>|<init>(kotlin.Array<arrow.optics.OpticsTarget>){}[0]

final val targets // arrow.optics/optics.targets|{}targets[0]
final fun <get-targets>(): kotlin/Array<arrow.optics/OpticsTarget> // arrow.optics/optics.targets.<get-targets>|<get-targets>(){}[0]
}

open annotation class arrow/synthetic : kotlin/Annotation { // arrow/synthetic|null[0]
constructor <init>() // arrow/synthetic.<init>|<init>(){}[0]
}

final enum class arrow.optics/OpticsTarget : kotlin/Enum<arrow.optics/OpticsTarget> { // arrow.optics/OpticsTarget|null[0]
enum entry DSL // arrow.optics/OpticsTarget.DSL|null[0]
enum entry ISO // arrow.optics/OpticsTarget.ISO|null[0]
enum entry LENS // arrow.optics/OpticsTarget.LENS|null[0]
enum entry OPTIONAL // arrow.optics/OpticsTarget.OPTIONAL|null[0]
enum entry PRISM // arrow.optics/OpticsTarget.PRISM|null[0]
final fun valueOf(kotlin/String): arrow.optics/OpticsTarget // arrow.optics/OpticsTarget.valueOf|valueOf#static(kotlin.String){}[0]
final fun values(): kotlin/Array<arrow.optics/OpticsTarget> // arrow.optics/OpticsTarget.values|values#static(){}[0]

final val entries // arrow.optics/OpticsTarget.entries|#static{}entries[0]
final fun <get-entries>(): kotlin.enums/EnumEntries<arrow.optics/OpticsTarget> // arrow.optics/OpticsTarget.entries.<get-entries>|<get-entries>#static(){}[0]
}
open annotation class arrow.optics/optics : kotlin/Annotation { // arrow.optics/optics|null[0]
constructor <init>(kotlin/Array<arrow.optics/OpticsTarget> = ...) // arrow.optics/optics.<init>|<init>(kotlin.Array<arrow.optics.OpticsTarget>){}[0]
final val targets // arrow.optics/optics.targets|{}targets[0]
final fun <get-targets>(): kotlin/Array<arrow.optics/OpticsTarget> // arrow.optics/optics.targets.<get-targets>|<get-targets>(){}[0]
}
open annotation class arrow/synthetic : kotlin/Annotation { // arrow/synthetic|null[0]
constructor <init>() // arrow/synthetic.<init>|<init>(){}[0]

final fun valueOf(kotlin/String): arrow.optics/OpticsTarget // arrow.optics/OpticsTarget.valueOf|valueOf#static(kotlin.String){}[0]
final fun values(): kotlin/Array<arrow.optics/OpticsTarget> // arrow.optics/OpticsTarget.values|values#static(){}[0]
}
10 changes: 10 additions & 0 deletions arrow-libs/core/arrow-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@file:Suppress("DSL_SCOPE_VIOLATION")

import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion


plugins {
id(libs.plugins.kotlin.multiplatform.get().pluginId)
alias(libs.plugins.arrowGradleConfig.kotlin)
Expand Down Expand Up @@ -31,4 +35,10 @@ kotlin {
}
}
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
(project.rootProject.properties["kotlin_language_version"] as? String)?.also { languageVersion = KotlinVersion.fromVersion(it) }
(project.rootProject.properties["kotlin_api_version"] as? String)?.also { apiVersion = KotlinVersion.fromVersion(it) }
}
}
34 changes: 22 additions & 12 deletions arrow-libs/core/arrow-atomic/api/arrow-atomic.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,29 @@
// Library unique name: <io.arrow-kt:arrow-atomic>
final class <#A: kotlin/Any?> arrow.atomic/Atomic { // arrow.atomic/Atomic|null[0]
constructor <init>(#A) // arrow.atomic/Atomic.<init>|<init>(1:0){}[0]

final fun compareAndSet(#A, #A): kotlin/Boolean // arrow.atomic/Atomic.compareAndSet|compareAndSet(1:0;1:0){}[0]
final fun get(): #A // arrow.atomic/Atomic.get|get(){}[0]
final fun getAndSet(#A): #A // arrow.atomic/Atomic.getAndSet|getAndSet(1:0){}[0]
final fun set(#A) // arrow.atomic/Atomic.set|set(1:0){}[0]
}

final class arrow.atomic/AtomicBoolean { // arrow.atomic/AtomicBoolean|null[0]
constructor <init>(kotlin/Boolean) // arrow.atomic/AtomicBoolean.<init>|<init>(kotlin.Boolean){}[0]

final var value // arrow.atomic/AtomicBoolean.value|{}value[0]
final fun <get-value>(): kotlin/Boolean // arrow.atomic/AtomicBoolean.value.<get-value>|<get-value>(){}[0]
final fun <set-value>(kotlin/Boolean) // arrow.atomic/AtomicBoolean.value.<set-value>|<set-value>(kotlin.Boolean){}[0]

final fun compareAndSet(kotlin/Boolean, kotlin/Boolean): kotlin/Boolean // arrow.atomic/AtomicBoolean.compareAndSet|compareAndSet(kotlin.Boolean;kotlin.Boolean){}[0]
final fun get(): kotlin/Boolean // arrow.atomic/AtomicBoolean.get|get(){}[0]
final fun getAndSet(kotlin/Boolean): kotlin/Boolean // arrow.atomic/AtomicBoolean.getAndSet|getAndSet(kotlin.Boolean){}[0]
final fun set(kotlin/Boolean) // arrow.atomic/AtomicBoolean.set|set(kotlin.Boolean){}[0]
final var value // arrow.atomic/AtomicBoolean.value|{}value[0]
final fun <get-value>(): kotlin/Boolean // arrow.atomic/AtomicBoolean.value.<get-value>|<get-value>(){}[0]
final fun <set-value>(kotlin/Boolean) // arrow.atomic/AtomicBoolean.value.<set-value>|<set-value>(kotlin.Boolean){}[0]
}

final class arrow.atomic/AtomicInt { // arrow.atomic/AtomicInt|null[0]
constructor <init>(kotlin/Int) // arrow.atomic/AtomicInt.<init>|<init>(kotlin.Int){}[0]

final fun addAndGet(kotlin/Int): kotlin/Int // arrow.atomic/AtomicInt.addAndGet|addAndGet(kotlin.Int){}[0]
final fun compareAndSet(kotlin/Int, kotlin/Int): kotlin/Boolean // arrow.atomic/AtomicInt.compareAndSet|compareAndSet(kotlin.Int;kotlin.Int){}[0]
final fun decrementAndGet(): kotlin/Int // arrow.atomic/AtomicInt.decrementAndGet|decrementAndGet(){}[0]
Expand All @@ -33,8 +39,10 @@ final class arrow.atomic/AtomicInt { // arrow.atomic/AtomicInt|null[0]
final fun incrementAndGet(): kotlin/Int // arrow.atomic/AtomicInt.incrementAndGet|incrementAndGet(){}[0]
final fun set(kotlin/Int) // arrow.atomic/AtomicInt.set|set(kotlin.Int){}[0]
}

final class arrow.atomic/AtomicLong { // arrow.atomic/AtomicLong|null[0]
constructor <init>(kotlin/Long) // arrow.atomic/AtomicLong.<init>|<init>(kotlin.Long){}[0]

final fun addAndGet(kotlin/Long): kotlin/Long // arrow.atomic/AtomicLong.addAndGet|addAndGet(kotlin.Long){}[0]
final fun compareAndSet(kotlin/Long, kotlin/Long): kotlin/Boolean // arrow.atomic/AtomicLong.compareAndSet|compareAndSet(kotlin.Long;kotlin.Long){}[0]
final fun decrementAndGet(): kotlin/Long // arrow.atomic/AtomicLong.decrementAndGet|decrementAndGet(){}[0]
Expand All @@ -43,6 +51,17 @@ final class arrow.atomic/AtomicLong { // arrow.atomic/AtomicLong|null[0]
final fun incrementAndGet(): kotlin/Long // arrow.atomic/AtomicLong.incrementAndGet|incrementAndGet(){}[0]
final fun set(kotlin/Long) // arrow.atomic/AtomicLong.set|set(kotlin.Long){}[0]
}

final var arrow.atomic/value // arrow.atomic/value|@arrow.atomic.Atomic<0:0>{0§<kotlin.Any?>}value[0]
final fun <#A1: kotlin/Any?> (arrow.atomic/Atomic<#A1>).<get-value>(): #A1 // arrow.atomic/value.<get-value>|<get-value>@arrow.atomic.Atomic<0:0>(){0§<kotlin.Any?>}[0]
final fun <#A1: kotlin/Any?> (arrow.atomic/Atomic<#A1>).<set-value>(#A1) // arrow.atomic/value.<set-value>|<set-value>@arrow.atomic.Atomic<0:0>(0:0){0§<kotlin.Any?>}[0]
final var arrow.atomic/value // arrow.atomic/value|@arrow.atomic.AtomicInt{}value[0]
final fun (arrow.atomic/AtomicInt).<get-value>(): kotlin/Int // arrow.atomic/value.<get-value>|<get-value>@arrow.atomic.AtomicInt(){}[0]
final fun (arrow.atomic/AtomicInt).<set-value>(kotlin/Int) // arrow.atomic/value.<set-value>|<set-value>@arrow.atomic.AtomicInt(kotlin.Int){}[0]
final var arrow.atomic/value // arrow.atomic/value|@arrow.atomic.AtomicLong{}value[0]
final fun (arrow.atomic/AtomicLong).<get-value>(): kotlin/Long // arrow.atomic/value.<get-value>|<get-value>@arrow.atomic.AtomicLong(){}[0]
final fun (arrow.atomic/AtomicLong).<set-value>(kotlin/Long) // arrow.atomic/value.<set-value>|<set-value>@arrow.atomic.AtomicLong(kotlin.Long){}[0]

final inline fun (arrow.atomic/AtomicBoolean).arrow.atomic/getAndUpdate(kotlin/Function1<kotlin/Boolean, kotlin/Boolean>): kotlin/Boolean // arrow.atomic/getAndUpdate|getAndUpdate@arrow.atomic.AtomicBoolean(kotlin.Function1<kotlin.Boolean,kotlin.Boolean>){}[0]
final inline fun (arrow.atomic/AtomicBoolean).arrow.atomic/loop(kotlin/Function1<kotlin/Boolean, kotlin/Unit>): kotlin/Nothing // arrow.atomic/loop|loop@arrow.atomic.AtomicBoolean(kotlin.Function1<kotlin.Boolean,kotlin.Unit>){}[0]
final inline fun (arrow.atomic/AtomicBoolean).arrow.atomic/tryUpdate(kotlin/Function1<kotlin/Boolean, kotlin/Boolean>): kotlin/Boolean // arrow.atomic/tryUpdate|tryUpdate@arrow.atomic.AtomicBoolean(kotlin.Function1<kotlin.Boolean,kotlin.Boolean>){}[0]
Expand Down Expand Up @@ -71,12 +90,3 @@ final inline fun <#A: kotlin/Any?> (arrow.atomic/Atomic<#A>).arrow.atomic/update
final inline fun <#A: kotlin/Any?> (arrow.atomic/AtomicBoolean).arrow.atomic/update(kotlin/Function1<kotlin/Boolean, kotlin/Boolean>, kotlin/Function2<kotlin/Boolean, kotlin/Boolean, #A>): #A // arrow.atomic/update|update@arrow.atomic.AtomicBoolean(kotlin.Function1<kotlin.Boolean,kotlin.Boolean>;kotlin.Function2<kotlin.Boolean,kotlin.Boolean,0:0>){0§<kotlin.Any?>}[0]
final inline fun <#A: kotlin/Any?> (arrow.atomic/AtomicInt).arrow.atomic/update(kotlin/Function1<kotlin/Int, kotlin/Int>, kotlin/Function2<kotlin/Int, kotlin/Int, #A>): #A // arrow.atomic/update|update@arrow.atomic.AtomicInt(kotlin.Function1<kotlin.Int,kotlin.Int>;kotlin.Function2<kotlin.Int,kotlin.Int,0:0>){0§<kotlin.Any?>}[0]
final inline fun <#A: kotlin/Any?> (arrow.atomic/AtomicLong).arrow.atomic/update(kotlin/Function1<kotlin/Long, kotlin/Long>, kotlin/Function2<kotlin/Long, kotlin/Long, #A>): #A // arrow.atomic/update|update@arrow.atomic.AtomicLong(kotlin.Function1<kotlin.Long,kotlin.Long>;kotlin.Function2<kotlin.Long,kotlin.Long,0:0>){0§<kotlin.Any?>}[0]
final var arrow.atomic/value // arrow.atomic/value|@arrow.atomic.Atomic<0:0>{0§<kotlin.Any?>}value[0]
final fun <#A1: kotlin/Any?> (arrow.atomic/Atomic<#A1>).<get-value>(): #A1 // arrow.atomic/value.<get-value>|<get-value>@arrow.atomic.Atomic<0:0>(){0§<kotlin.Any?>}[0]
final fun <#A1: kotlin/Any?> (arrow.atomic/Atomic<#A1>).<set-value>(#A1) // arrow.atomic/value.<set-value>|<set-value>@arrow.atomic.Atomic<0:0>(0:0){0§<kotlin.Any?>}[0]
final var arrow.atomic/value // arrow.atomic/value|@arrow.atomic.AtomicInt{}value[0]
final fun (arrow.atomic/AtomicInt).<get-value>(): kotlin/Int // arrow.atomic/value.<get-value>|<get-value>@arrow.atomic.AtomicInt(){}[0]
final fun (arrow.atomic/AtomicInt).<set-value>(kotlin/Int) // arrow.atomic/value.<set-value>|<set-value>@arrow.atomic.AtomicInt(kotlin.Int){}[0]
final var arrow.atomic/value // arrow.atomic/value|@arrow.atomic.AtomicLong{}value[0]
final fun (arrow.atomic/AtomicLong).<get-value>(): kotlin/Long // arrow.atomic/value.<get-value>|<get-value>@arrow.atomic.AtomicLong(){}[0]
final fun (arrow.atomic/AtomicLong).<set-value>(kotlin/Long) // arrow.atomic/value.<set-value>|<set-value>@arrow.atomic.AtomicLong(kotlin.Long){}[0]
7 changes: 7 additions & 0 deletions arrow-libs/core/arrow-atomic/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@file:Suppress("DSL_SCOPE_VIOLATION")

import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -48,6 +49,12 @@ kotlin {
}
}
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
(project.rootProject.properties["kotlin_language_version"] as? String)?.also { languageVersion = KotlinVersion.fromVersion(it) }
(project.rootProject.properties["kotlin_api_version"] as? String)?.also { apiVersion = KotlinVersion.fromVersion(it) }
}
}

tasks.withType<Test>().configureEach {
Expand Down
4 changes: 0 additions & 4 deletions arrow-libs/core/arrow-autoclose/api/arrow-autoclose.api
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ public final class arrow/AutoCloseScopeKt {
public static final fun autoCloseScope (Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
}

public final class arrow/AutoCloseableExtensionsKt {
public static final fun install (Larrow/AutoCloseScope;Ljava/lang/AutoCloseable;)Ljava/lang/AutoCloseable;
}

public final class arrow/DefaultAutoCloseScope : arrow/AutoCloseScope {
public fun <init> ()V
public fun autoClose (Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
Expand Down
3 changes: 3 additions & 0 deletions arrow-libs/core/arrow-autoclose/api/arrow-autoclose.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ abstract interface arrow/AutoCloseScope { // arrow/AutoCloseScope|null[0]
abstract fun <#A1: kotlin/Any?> autoClose(kotlin/Function0<#A1>, kotlin/Function2<#A1, kotlin/Throwable?, kotlin/Unit>): #A1 // arrow/AutoCloseScope.autoClose|autoClose(kotlin.Function0<0:0>;kotlin.Function2<0:0,kotlin.Throwable?,kotlin.Unit>){0§<kotlin.Any?>}[0]
open fun <#A1: kotlin/AutoCloseable> install(#A1): #A1 // arrow/AutoCloseScope.install|install(0:0){0§<kotlin.AutoCloseable>}[0]
}

final class arrow/DefaultAutoCloseScope : arrow/AutoCloseScope { // arrow/DefaultAutoCloseScope|null[0]
constructor <init>() // arrow/DefaultAutoCloseScope.<init>|<init>(){}[0]

final fun <#A1: kotlin/Any?> autoClose(kotlin/Function0<#A1>, kotlin/Function2<#A1, kotlin/Throwable?, kotlin/Unit>): #A1 // arrow/DefaultAutoCloseScope.autoClose|autoClose(kotlin.Function0<0:0>;kotlin.Function2<0:0,kotlin.Throwable?,kotlin.Unit>){0§<kotlin.Any?>}[0]
final fun close(kotlin/Throwable?): kotlin/Nothing? // arrow/DefaultAutoCloseScope.close|close(kotlin.Throwable?){}[0]
}

final fun (kotlin/Throwable).arrow/throwIfFatal(): kotlin/Throwable // arrow/throwIfFatal|throwIfFatal@kotlin.Throwable(){}[0]
final inline fun <#A: kotlin/Any?> arrow/autoCloseScope(kotlin/Function1<arrow/AutoCloseScope, #A>): #A // arrow/autoCloseScope|autoCloseScope(kotlin.Function1<arrow.AutoCloseScope,0:0>){0§<kotlin.Any?>}[0]
8 changes: 8 additions & 0 deletions arrow-libs/core/arrow-autoclose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@file:Suppress("DSL_SCOPE_VIOLATION")

import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile


Expand Down Expand Up @@ -42,6 +44,12 @@ kotlin {
}
}
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
(project.rootProject.properties["kotlin_language_version"] as? String)?.also { languageVersion = KotlinVersion.fromVersion(it) }
(project.rootProject.properties["kotlin_api_version"] as? String)?.also { apiVersion = KotlinVersion.fromVersion(it) }
}
}

// enables context receivers for Jvm Tests
Expand Down
1 change: 0 additions & 1 deletion arrow-libs/core/arrow-autoclose/knit.code.include
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package ${knit.package}.${knit.name}

import arrow.AutoCloseScope
import arrow.autoCloseScope
import arrow.install

public class Scanner(
private val path: String,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package arrow.autocloseable.examples.exampleAutocloseable01

import arrow.AutoCloseScope
import arrow.autoCloseScope
import arrow.install

public class Scanner(
private val path: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package arrow.autocloseable.examples.exampleAutocloseable02

import arrow.AutoCloseScope
import arrow.autoCloseScope
import arrow.install

public class Scanner(
private val path: String,
Expand Down
Loading

0 comments on commit 39257bc

Please sign in to comment.