File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
import com.squareup.workflow1.buildsrc.iosWithSimulatorArm64
2
2
import kotlinx.benchmark.gradle.JvmBenchmarkTarget
3
- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
+ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
4
4
5
5
plugins {
6
6
`kotlin- multiplatform`
@@ -13,10 +13,14 @@ kotlin {
13
13
jvm {
14
14
compilations {
15
15
val main by getting
16
- val workflowNode by creating {
16
+
17
+ create(" workflowNode" ) {
18
+ val workflowNodeCompilation: KotlinJvmCompilation = this
17
19
kotlinOptions {
18
- val compileKotlinJvm: KotlinCompile by tasks
19
- freeCompilerArgs + = " -Xfriend-paths=${compileKotlinJvm.destinationDirectory} "
20
+ // Associating compilations allows us to access declarations with `internal` visibility.
21
+ // It's the new version of the "-Xfriend-paths=___" compiler argument.
22
+ // https://youtrack.jetbrains.com/issue/KTIJ-7662/IDE-support-internal-visibility-introduced-by-associated-compilations
23
+ workflowNodeCompilation.associateWith(main)
20
24
}
21
25
defaultSourceSet {
22
26
dependencies {
Original file line number Diff line number Diff line change
1
+ :workflow-core
2
+ com.squareup.okio:okio-jvm:3.0.0
3
+ com.squareup.okio:okio:3.0.0
1
4
net.sf.jopt-simple:jopt-simple:5.0.4
2
5
org.apache.commons:commons-math3:3.2
6
+ org.jetbrains.kotlin:kotlin-bom:1.6.21
3
7
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21
4
8
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21
5
9
org.jetbrains.kotlin:kotlin-stdlib:1.6.21
6
10
org.jetbrains.kotlinx:kotlinx-benchmark-runtime-jvm:0.4.2
7
11
org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.4.2
12
+ org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4
13
+ org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4
14
+ org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4
8
15
org.jetbrains:annotations:13.0
9
16
org.openjdk.jmh:jmh-core:1.34
You can’t perform that action at this time.
0 commit comments