-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76d3f5c
commit 1c1b02b
Showing
6 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
integration-testing/examples/compiler-plugin-resolution-bug/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
plugins { | ||
// this is necessary to avoid the plugins to be loaded multiple times | ||
// in each subproject's classloader | ||
alias(libs.plugins.kotlinMultiplatform) apply false | ||
} |
11 changes: 11 additions & 0 deletions
11
integration-testing/examples/compiler-plugin-resolution-bug/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kotlin.code.style=official | ||
|
||
#Gradle | ||
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M" | ||
|
||
|
||
#MPP | ||
kotlin.mpp.enableCInteropCommonization=true | ||
|
||
#Development | ||
development=true |
21 changes: 21 additions & 0 deletions
21
integration-testing/examples/compiler-plugin-resolution-bug/gradle/libs.versions.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[versions] | ||
junit = "4.13.2" | ||
kotlin = "1.9.22" | ||
atomicfu = "0.23.2" | ||
ktor = "2.3.8" | ||
logback = "1.5.0" | ||
|
||
[libraries] | ||
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } | ||
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" } | ||
junit = { group = "junit", name = "junit", version.ref = "junit" } | ||
logback = { module = "ch.qos.logback:logback-classic", version.ref = "logback" } | ||
ktor-server-core = { module = "io.ktor:ktor-server-core-jvm", version.ref = "ktor" } | ||
ktor-server-netty = { module = "io.ktor:ktor-server-netty-jvm", version.ref = "ktor" } | ||
ktor-server-tests = { module = "io.ktor:ktor-server-tests-jvm", version.ref = "ktor" } | ||
atomicfuGradlePlugin = { module = "org.jetbrains.kotlinx:atomicfu-gradle-plugin", version.ref = "atomicfu" } | ||
|
||
[plugins] | ||
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } | ||
ktor = { id = "io.ktor.plugin", version.ref = "ktor" } | ||
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" } |
22 changes: 22 additions & 0 deletions
22
integration-testing/examples/compiler-plugin-resolution-bug/settings.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
rootProject.name = "KotlinProject" | ||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | ||
|
||
pluginManagement { | ||
repositories { | ||
|
||
google() | ||
gradlePluginPortal() | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
} | ||
|
||
dependencyResolutionManagement { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
} | ||
|
||
include(":shared") |
22 changes: 22 additions & 0 deletions
22
integration-testing/examples/compiler-plugin-resolution-bug/shared/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
buildscript { | ||
dependencies { | ||
classpath(libs.atomicfuGradlePlugin) | ||
} | ||
} | ||
|
||
plugins { | ||
alias(libs.plugins.kotlinMultiplatform) | ||
} | ||
|
||
apply (plugin = "kotlinx-atomicfu") | ||
|
||
kotlin { | ||
|
||
jvm() | ||
|
||
sourceSets { | ||
commonMain.dependencies { | ||
// put your Multiplatform dependencies here | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...-testing/examples/compiler-plugin-resolution-bug/shared/src/commonMain/kotlin/Greeting.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Greeting { | ||
private val platform = "common" | ||
|
||
fun greet(): String { | ||
return "Hello, ${platform}!" | ||
} | ||
} |