Skip to content

Commit

Permalink
chore: Move to Kotlin 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Virelion committed Jul 30, 2023
1 parent cf2a358 commit 82ce14e
Show file tree
Hide file tree
Showing 14 changed files with 258 additions and 201 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}

plugins {
kotlin("multiplatform") version "1.7.10" apply false
kotlin("multiplatform") version "1.9.0" apply false
id("org.jlleitschuh.gradle.ktlint") version "10.3.0" apply false
id("com.gradle.plugin-publish") version "1.1.0" apply false
id("nebula.release") version "13.2.1"
Expand Down
2 changes: 1 addition & 1 deletion buildata-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ val kspVersion: String by project
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("gradle-plugin-api"))
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0")
implementation("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:$kspVersion")
compileOnly("com.google.auto.service:auto-service:1.0.1")
kapt("com.google.auto.service:auto-service:1.0.1")
Expand Down
1 change: 0 additions & 1 deletion buildata-ksp-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ repositories {
val kspVersion: String by project

dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("compiler-embeddable"))
implementation("com.google.devtools.ksp:symbol-processing-api:$kspVersion")
compileOnly("com.google.auto.service:auto-service:1.0.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ value class StringNamePathIdentifier(
}

private fun KSAnnotation.getFirstParamOfAnnotationAsString(): String? {
return arguments.firstOrNull()?.value?.safeAs<String>()
return arguments.firstOrNull()?.value as? String
}

private fun KSAnnotation.getFirstListElementOfAnnotationAsString(): String? {
return arguments.firstOrNull()?.value?.safeAs<List<String>>()?.firstOrNull()
return (arguments.firstOrNull()?.value as? List<String>)?.firstOrNull()
}

override fun toString(): String {
Expand Down
8 changes: 2 additions & 6 deletions buildata-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
kotlin("multiplatform")
`maven-publish`
id("org.jlleitschuh.gradle.ktlint")
id("org.jetbrains.dokka") version "1.8.10"
id("org.jetbrains.dokka") version "1.8.20"
signing
}

Expand Down Expand Up @@ -133,7 +133,7 @@ kotlin {
}
}

val androidTest by getting {
val androidUnitTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
Expand Down Expand Up @@ -200,9 +200,6 @@ afterEvaluate {
apply(from = "$rootDir/gradle/pom.gradle.kts")
val configurePOM: ((MavenPublication, Project) -> Unit) by extra

this.forEach {
logger.warn(it.name)
}
this.getByName<MavenPublication>("androidRelease") {
configurePOM(this, project)
}
Expand All @@ -219,7 +216,6 @@ fun Project.configureAndroid() {

configure<LibraryExtension> {
namespace = "io.github.virelion"
buildToolsVersion = "29.0.2"
compileSdkVersion = "android-29"

defaultConfig {
Expand Down
2 changes: 0 additions & 2 deletions buildata-runtime/src/androidMain/AndroidManifest.xml

This file was deleted.

3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
group=io.github.virelion
version=0.0.0-SNAPSHOT

kspVersion= 1.8.20-RC2-1.0.9
kspVersion= 1.9.0-1.0.12

kotlin.native.ignoreDisabledTargets=true
kotlin.mpp.enableGranularSourceSetsMetadata=true

org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m
4 changes: 2 additions & 2 deletions integration-test-project/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ buildscript {
google()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath("com.android.tools.build:gradle:8.1.0")
}
}

plugins {
val kotlinVersion = "1.8.20"
val kotlinVersion = "1.9.0"
kotlin("multiplatform") version kotlinVersion apply false
kotlin("jvm") version kotlinVersion apply false
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
Expand Down
Binary file modified integration-test-project/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sat Jul 20 17:41:23 CEST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-all.zip
Loading

0 comments on commit 82ce14e

Please sign in to comment.