Skip to content

Commit

Permalink
Update Kotlin to 1.9.20
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWoodworth committed Nov 2, 2023
1 parent 52313e1 commit 04eebaf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.benwoodworth.parameterize/parameterize)](https://search.maven.org/search?q=g:com.benwoodworth.parameterize)
[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.benwoodworth.parameterize/parameterize?server=https%3A%2F%2Fs01.oss.sonatype.org)](https://s01.oss.sonatype.org/content/repositories/snapshots/com/benwoodworth/parameterize/)
[![KDoc](https://img.shields.io/badge/api-KDoc-blue)](https://benwoodworth.github.io/parameterize)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Slack channel](https://img.shields.io/badge/chat-slack-blue.svg?logo=slack)](https://kotlinlang.slack.com/messages/parameterize/)

Parameterize is a multiplatform Kotlin library that brings a concise syntax for parameterizing code.
Expand Down Expand Up @@ -89,7 +89,7 @@ fun int_should_not_equal_a_different_int() = parameterize {
// build.gradle.kts

plugins {
kotlin("jvm") version "1.9.10" // or kotlin("multiplatform"), etc.
kotlin("jvm") version "1.9.20" // or kotlin("multiplatform"), etc.
}

repositories {
Expand Down
15 changes: 11 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import org.gradle.kotlin.dsl.support.uppercaseFirstChar
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.plugin.KotlinTargetWithTests

plugins {
kotlin("multiplatform") version "1.9.0"
kotlin("multiplatform") version "1.9.20"
id("parameterize.library-conventions")
}

repositories {
mavenCentral()
}

@OptIn(ExperimentalKotlinGradlePluginApi::class)
kotlin {
explicitApi()
targetHierarchy.default()

jvm {
compilations.all {
Expand Down Expand Up @@ -50,6 +47,16 @@ kotlin {
watchosDeviceArm64()
mingwX64()

targets.configureEach {
compilations.configureEach {
compilerOptions.configure {
if (name == "test") {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}
}

sourceSets {
all {
languageSettings.optIn("kotlin.contracts.ExperimentalContracts")
Expand Down

0 comments on commit 04eebaf

Please sign in to comment.