diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 696777e..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,28 +0,0 @@ -defaults: &defaults - working_directory: ~/repo - docker: - - image: openjdk:8-jdk - environment: - JVM_OPTS: -Xmx2048m - GRADLE_OPTS: -Xmx1536m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false - -version: 2 -jobs: - build: - <<: *defaults - steps: - - checkout - - run: - name: Execute Gradle - command: | - ./gradlew build -x jsIrBrowserTest -x jsLegacyBrowserTest --no-daemon - -workflows: - version: 2 - build: - jobs: - - build: - context: Sonatype - filters: - tags: - only: /.*/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..82fc2ad --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + # Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies. + # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md + - name: Setup Gradle + uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0 + + - name: Build with Gradle Wrapper + run: ./gradlew build diff --git a/cobalt.core/src/commonMain/kotlin/org/hexworks/cobalt/databinding/api/extension/Properties.kt b/cobalt.core/src/commonMain/kotlin/org/hexworks/cobalt/databinding/api/extension/Properties.kt index 305cb33..d26a71f 100644 --- a/cobalt.core/src/commonMain/kotlin/org/hexworks/cobalt/databinding/api/extension/Properties.kt +++ b/cobalt.core/src/commonMain/kotlin/org/hexworks/cobalt/databinding/api/extension/Properties.kt @@ -28,8 +28,8 @@ import kotlin.jvm.JvmOverloads @JvmOverloads fun T.toProperty( validator: PropertyValidator = { _, _ -> true }, - optionalName: String? = null, -): Property = DefaultProperty(this, optionalName, validator) + name: String? = null, +): Property = DefaultProperty(this, name, validator) // Iterable / Collection @@ -37,64 +37,64 @@ fun T.toProperty( @JvmOverloads fun Iterable.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): ListProperty = DefaultListProperty(this.toPersistentList(), optionalName, validator) + name: String? = null, +): ListProperty = DefaultListProperty(this.toPersistentList(), name, validator) @JvmName("toCollectionProperty") @JvmOverloads fun Collection.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): ListProperty = DefaultListProperty(this.toPersistentList(), optionalName, validator) + name: String? = null, +): ListProperty = DefaultListProperty(this.toPersistentList(), name, validator) // List @JvmName("toListProperty") @JvmOverloads fun List.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): ListProperty = DefaultListProperty(this.toPersistentList(), optionalName, validator) + name: String? = null, +): ListProperty = DefaultListProperty(this.toPersistentList(), name, validator) @JvmName("toPropertyListProperty") @JvmOverloads fun > List.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): ListProperty = DefaultPropertyListProperty(this.toPersistentList(), optionalName, validator) + name: String? = null, +): ListProperty = DefaultPropertyListProperty(this.toPersistentList(), name, validator) // Map @JvmName("toMapProperty") @JvmOverloads fun Map.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): MapProperty = DefaultMapProperty(this.toPersistentMap(), optionalName, validator) + name: String? = null, +): MapProperty = DefaultMapProperty(this.toPersistentMap(), name, validator) @JvmName("toPropertyMapProperty") @JvmOverloads fun > Map.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): MapProperty = DefaultPropertyMapProperty(this.toPersistentMap(), optionalName, validator) + name: String? = null, +): MapProperty = DefaultPropertyMapProperty(this.toPersistentMap(), name, validator) @JvmName("toSetProperty") @JvmOverloads fun Set.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): SetProperty = DefaultSetProperty(this.toPersistentSet(), optionalName, validator) + name: String? = null, +): SetProperty = DefaultSetProperty(this.toPersistentSet(), name, validator) @JvmName("toPropertySetProperty") @JvmOverloads fun > Set.toProperty( validator: PropertyValidator> = { _, _ -> true }, - optionalName: String? = null, -): SetProperty = DefaultPropertySetProperty(this.toPersistentSet(), optionalName, validator) + name: String? = null, +): SetProperty = DefaultPropertySetProperty(this.toPersistentSet(), name, validator) /** * Creates a new [InternalProperty] from the given object of type [T]. */ internal fun T.toInternalProperty( validator: PropertyValidator = { _, _ -> true }, - optionalName: String? = null, -): InternalProperty = DefaultProperty(this, optionalName, validator) + name: String? = null, +): InternalProperty = DefaultProperty(this, name, validator) diff --git a/gradle.properties b/gradle.properties index 751a57e..403e47c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=org.hexworks.cobalt -version=2023.1.0-RELEASE +version=2024.1.0-RELEASE kotlin.mpp.stability.nowarn=true kotlin.js.compiler=both