Skip to content

Commit f8adf4f

Browse files
committed
update to Kotlin 1.9.10
1 parent c92717a commit f8adf4f

File tree

7 files changed

+16
-22
lines changed

7 files changed

+16
-22
lines changed

Readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![jCenter](https://img.shields.io/badge/Apache-2.0-green.svg
55
)](https://github.com/Foso/KotlinReactNativeMpp/blob/master/LICENSE)
66
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
7-
[![jCenter](https://img.shields.io/badge/Kotlin-1.8.22-green.svg
7+
[![jCenter](https://img.shields.io/badge/Kotlin-1.9.10-green.svg
88
)](https://github.com/Foso/Sheasy/blob/master/LICENSE)
99

1010

@@ -26,7 +26,7 @@ This is an example project that shows how to create a Kotlin Compiler Plugin. At
2626
## Usage
2727

2828
> :information_source: Please be aware that the Kotlin Compiler still doesn’t have any stable API and there is no
29-
> backwards compatibility guaranteed. Kotlin versions above 1.8.22 can have a totally different API.
29+
> backwards compatibility guaranteed. Kotlin versions above 1.9.10 can have a totally different API.
3030
3131
* Inside the project folder run `./gradlew clean build`
3232

build.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.gradle.kotlin.dsl.libs
2+
13
buildscript {
24

35
repositories {
@@ -12,7 +14,7 @@ buildscript {
1214
}
1315
}
1416
plugins {
15-
id("org.jetbrains.kotlin.multiplatform") version "1.8.22" apply false
17+
id("org.jetbrains.kotlin.multiplatform") version libs.versions.kotlin apply false
1618
}
1719
apply(plugin = "compiler.gradleplugin.helloworld")
1820

compiler-plugin/build.gradle.kts

+4-14
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
22
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33

44
plugins {
5-
kotlin("jvm") version("1.8.22")
6-
kotlin("kapt") version("1.8.22")
5+
kotlin("jvm") version("1.9.10")
6+
kotlin("kapt") version("1.9.10")
77
id("com.vanniktech.maven.publish") version("0.23.1")
88
`maven-publish`
99
signing
@@ -30,28 +30,18 @@ val autoService = "1.0.1"
3030
dependencies {
3131
compileOnly("com.google.auto.service:auto-service:$autoService")
3232
kapt("com.google.auto.service:auto-service:$autoService")
33-
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.22")
33+
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.10")
3434
testImplementation("dev.zacsweers.kctfork:core:0.2.1")
3535
testImplementation("junit:junit:4.13.2")
3636
testImplementation("com.google.truth:truth:1.1.3")
3737
testImplementation(kotlin("reflect"))
3838

3939
}
4040

41-
tasks.register("sourcesJar", Jar::class) {
42-
group = "build"
43-
description = "Assembles Kotlin sources"
44-
45-
archiveClassifier.set("sources")
46-
from(sourceSets.main.get().allSource)
47-
dependsOn(tasks.classes)
48-
}
49-
5041
publishing {
5142
publications {
5243
create<MavenPublication>("default") {
5344
from(components["java"])
54-
artifact(tasks["sourcesJar"])
5545

5646
pom {
5747
name.set("compiler-plugin")
@@ -102,7 +92,7 @@ publishing {
10292

10393
java {
10494
toolchain {
105-
languageVersion.set(JavaLanguageVersion.of(11))
95+
languageVersion.set(JavaLanguageVersion.of(8))
10696
}
10797
}
10898

gradle-plugin/build.gradle.kts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
kotlin("jvm") version("1.8.22")
3-
kotlin("kapt") version("1.8.22")
2+
kotlin("jvm") version("1.9.10")
3+
kotlin("kapt") version("1.9.10")
44
id("java-gradle-plugin")
55
`maven-publish`
66
}
@@ -19,7 +19,7 @@ allprojects {
1919
}
2020
}
2121
dependencies {
22-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.22")
22+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.9.10")
2323
}
2424

2525
gradlePlugin {

gradle/libs.versions.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[versions]
2+
kotlin = "1.9.10"

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip

lib/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("org.jetbrains.kotlin.multiplatform") version "1.8.22"
2+
id("org.jetbrains.kotlin.multiplatform") version libs.versions.kotlin
33
}
44
apply(plugin = "compiler.gradleplugin.helloworld")
55

0 commit comments

Comments
 (0)