Skip to content

Commit

Permalink
chore: adjust project config for Kotlin 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs committed May 26, 2024
1 parent 53aef5a commit d3dd59f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 39 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ captures
local.properties
xcuserdata
kotlin-js-store
.kotlin
11 changes: 4 additions & 7 deletions android-tests/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
alias(libs.plugins.compose.compiler)
}

val androidMinSdk: Int by rootProject.extra
Expand Down Expand Up @@ -39,14 +40,10 @@ android {
kotlinOptions {
jvmTarget = "11"
}
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
composeCompiler {
enableStrongSkippingMode = true
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.nexus.publish)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.kotlinter)
Expand Down
5 changes: 5 additions & 0 deletions convention-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ dependencies {
name = "compose-gradle-plugin",
version = libs.findVersion("jetbrains-compose").get().requiredVersion,
)
implementation(
group = "org.jetbrains.kotlin.plugin.compose",
name = "org.jetbrains.kotlin.plugin.compose.gradle.plugin",
version = libs.findVersion("kotlin").get().requiredVersion,
)
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("org.jetbrains.kotlin.plugin.compose")
}

val baseName: String by extra
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ android-library = { id = "com.android.library", version.ref = "android-gradle-pl
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
jetbrains-kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrains-compose" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
ben-manes-versions = "com.github.ben-manes.versions:0.51.0"
nexus-publish = "io.github.gradle-nexus.publish-plugin:2.0.0"
kotlinter = "org.jmailen.kotlinter:4.3.0"
8 changes: 0 additions & 8 deletions reveal-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
}

dependencies {
Expand Down
8 changes: 0 additions & 8 deletions reveal-compat-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ android {
freeCompilerArgs += "-Xexplicit-api=strict"
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}

publishing {
singleVariant("release") {
withSourcesJar()
Expand Down
8 changes: 0 additions & 8 deletions reveal-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
}

dependencies {
Expand Down
8 changes: 0 additions & 8 deletions reveal-shapes/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ android {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
}
}

dependencies {
Expand Down

0 comments on commit d3dd59f

Please sign in to comment.