diff --git a/Readme.md b/Readme.md index 9876659..1dbf862 100644 --- a/Readme.md +++ b/Readme.md @@ -4,7 +4,7 @@ [![jCenter](https://img.shields.io/badge/Apache-2.0-green.svg )](https://github.com/Foso/KotlinReactNativeMpp/blob/master/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) -[![jCenter](https://img.shields.io/badge/Kotlin-1.8.0-green.svg +[![jCenter](https://img.shields.io/badge/Kotlin-1.8.10-green.svg )](https://github.com/Foso/Sheasy/blob/master/LICENSE) @@ -14,21 +14,21 @@ 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.

- +

### Show some :heart: and star the repo to support the project -[![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_) +[![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_) ## Usage > :information_source: Please be aware that the Kotlin Compiler still doesn’t have any stable API and there is no -> backwards compatibility guaranteed. Kotlin versions above 1.8.0 can have a totally different API. +> backwards compatibility guaranteed. Kotlin versions above 1.8.10 can have a totally different API. -* Inside the project folder run ` ./gradlew clean build` +* Inside the project folder run `./gradlew clean build` 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. diff --git a/build.gradle.kts b/build.gradle.kts index 7fe7eb3..6dfd725 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ buildscript { } } plugins { - id("org.jetbrains.kotlin.multiplatform") version "1.8.0" apply false + id("org.jetbrains.kotlin.multiplatform") version "1.8.10" apply false } apply(plugin = "compiler.gradleplugin.helloworld") diff --git a/compiler-plugin/build.gradle.kts b/compiler-plugin/build.gradle.kts index 4bd9213..9f2196a 100644 --- a/compiler-plugin/build.gradle.kts +++ b/compiler-plugin/build.gradle.kts @@ -2,8 +2,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - kotlin("jvm") version("1.8.0") - kotlin("kapt") version("1.8.0") + kotlin("jvm") version("1.8.10") + kotlin("kapt") version("1.8.10") id("com.vanniktech.maven.publish") version("0.23.1") `maven-publish` signing @@ -30,7 +30,7 @@ val autoService = "1.0.1" dependencies { compileOnly("com.google.auto.service:auto-service:$autoService") kapt("com.google.auto.service:auto-service:$autoService") - compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.0") + compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.10") testImplementation("dev.zacsweers.kctfork:core:0.2.1") testImplementation("junit:junit:4.13.2") testImplementation("com.google.truth:truth:1.1.3") @@ -113,3 +113,4 @@ tasks.withType>().configureEach { compilerOptions.freeCompilerArgs.add("-opt-in=org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi") } +//./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" diff --git a/gradle-plugin/build.gradle.kts b/gradle-plugin/build.gradle.kts index 54dcff3..3b16d6f 100644 --- a/gradle-plugin/build.gradle.kts +++ b/gradle-plugin/build.gradle.kts @@ -1,6 +1,6 @@ plugins { - kotlin("jvm") version("1.8.0") - kotlin("kapt") version("1.8.0") + kotlin("jvm") version("1.8.10") + kotlin("kapt") version("1.8.10") id("java-gradle-plugin") `maven-publish` } @@ -19,7 +19,7 @@ allprojects { } } dependencies { - implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.0") + implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.10") } gradlePlugin { diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 07aa7c8..e62756c 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -1,5 +1,5 @@ plugins { - id("org.jetbrains.kotlin.multiplatform") version "1.8.0" + id("org.jetbrains.kotlin.multiplatform") version "1.8.10" } apply(plugin = "compiler.gradleplugin.helloworld") diff --git a/lib/src/jvmMain/kotlin/sample/SampleJvm.kt b/lib/src/jvmMain/kotlin/sample/SampleJvm.kt index 6e47c9f..2771286 100644 --- a/lib/src/jvmMain/kotlin/sample/SampleJvm.kt +++ b/lib/src/jvmMain/kotlin/sample/SampleJvm.kt @@ -8,3 +8,6 @@ actual object Platform { actual val name: String = "JVM" } +fun main() { + +} \ No newline at end of file