Skip to content

Commit b13af85

Browse files
committed
update to Kotlin 1.8.10
1 parent c929aa7 commit b13af85

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

Readme.md

Lines changed: 5 additions & 5 deletions
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.0-green.svg
7+
[![jCenter](https://img.shields.io/badge/Kotlin-1.8.10-green.svg
88
)](https://github.com/Foso/Sheasy/blob/master/LICENSE)
99

1010

@@ -14,21 +14,21 @@
1414
This is an example project that shows how to create a Kotlin Compiler Plugin. At compile time a gradle plugin will trigger the compiler plugin. The plugin will print "Hello from" and the name of the file that is being compiled, as a compiler warning to the terminal log.
1515

1616
<p>
17-
<img src ="https://raw.githubusercontent.com/Foso/JK_KotlinCompilerPluginHelloWorld/master/docs/screenshot.png" />
17+
<img src ="https://raw.githubusercontent.com/Foso/KotlinCompilerPluginExample/master/docs/screenshot.png" />
1818

1919
</p>
2020

2121
### Show some :heart: and star the repo to support the project
2222

23-
[![GitHub stars](https://img.shields.io/github/stars/Foso/JK_KotlinCompilerPluginHelloWorld.svg?style=social&label=Star)](https://github.com/Foso/JK_KotlinCompilerPluginHelloWorld) [![GitHub forks](https://img.shields.io/github/forks/Foso/JK_KotlinCompilerPluginHelloWorld.svg?style=social&label=Fork)](https://github.com/Foso/JK_KotlinCompilerPluginHelloWorld/fork) [![GitHub watchers](https://img.shields.io/github/watchers/Foso/JK_KotlinCompilerPluginHelloWorld.svg?style=social&label=Watch)](https://github.com/Foso/JK_KotlinCompilerPluginHelloWorld) [![Twitter Follow](https://img.shields.io/twitter/follow/jklingenberg_.svg?style=social)](https://twitter.com/jklingenberg_)
23+
[![GitHub stars](https://img.shields.io/github/stars/Foso/KotlinCompilerPluginExample.svg?style=social&label=Star)](https://github.com/Foso/KotlinCompilerPluginExample) [![GitHub forks](https://img.shields.io/github/forks/Foso/KotlinCompilerPluginExample.svg?style=social&label=Fork)](https://github.com/Foso/KotlinCompilerPluginExample/fork) [![GitHub watchers](https://img.shields.io/github/watchers/Foso/KotlinCompilerPluginExample.svg?style=social&label=Watch)](https://github.com/Foso/KotlinCompilerPluginExample) [![Twitter Follow](https://img.shields.io/twitter/follow/jklingenberg_.svg?style=social)](https://twitter.com/jklingenberg_)
2424

2525

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.0 can have a totally different API.
29+
> backwards compatibility guaranteed. Kotlin versions above 1.8.10 can have a totally different API.
3030
31-
* Inside the project folder run ` ./gradlew clean build`
31+
* Inside the project folder run `./gradlew clean build`
3232

3333
The plugin is only active when the build cache is changed. This is why you need to run "clean" before building, when you want to see the log output again.
3434

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
}
1414
}
1515
plugins {
16-
id("org.jetbrains.kotlin.multiplatform") version "1.8.0" apply false
16+
id("org.jetbrains.kotlin.multiplatform") version "1.8.10" apply false
1717
}
1818
apply(plugin = "compiler.gradleplugin.helloworld")
1919

compiler-plugin/build.gradle.kts

Lines changed: 4 additions & 3 deletions
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.0")
6-
kotlin("kapt") version("1.8.0")
5+
kotlin("jvm") version("1.8.10")
6+
kotlin("kapt") version("1.8.10")
77
id("com.vanniktech.maven.publish") version("0.23.1")
88
`maven-publish`
99
signing
@@ -30,7 +30,7 @@ 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.0")
33+
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.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")
@@ -113,3 +113,4 @@ tasks.withType<KotlinCompilationTask<*>>().configureEach {
113113
compilerOptions.freeCompilerArgs.add("-opt-in=org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi")
114114
}
115115

116+
//./gradlew clean :lib:compileKotlinJvm --no-daemon -Dorg.gradle.debug=true -Dkotlin.compiler.execution.strategy="in-process" -Dkotlin.daemon.jvm.options="-Xdebug,-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n"

gradle-plugin/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
kotlin("jvm") version("1.8.0")
3-
kotlin("kapt") version("1.8.0")
2+
kotlin("jvm") version("1.8.10")
3+
kotlin("kapt") version("1.8.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.0")
22+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.10")
2323
}
2424

2525
gradlePlugin {

lib/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id("org.jetbrains.kotlin.multiplatform") version "1.8.0"
2+
id("org.jetbrains.kotlin.multiplatform") version "1.8.10"
33
}
44
apply(plugin = "compiler.gradleplugin.helloworld")
55

lib/src/jvmMain/kotlin/sample/SampleJvm.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ actual object Platform {
88
actual val name: String = "JVM"
99
}
1010

11+
fun main() {
12+
13+
}

0 commit comments

Comments
 (0)