File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed
docs/topics/multiplatform Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,10 @@ kotlin {
91
91
kotlin {
92
92
jvm {
93
93
val main by compilations.getting {
94
- compilerOptions.configure {
95
- jvmTarget.set(JvmTarget .JVM_1_8 )
94
+ compileTaskProvider.configure {
95
+ compilerOptions {
96
+ jvmTarget.set(JvmTarget .JVM_1_8 )
97
+ }
96
98
}
97
99
}
98
100
}
@@ -106,8 +108,10 @@ kotlin {
106
108
kotlin {
107
109
jvm {
108
110
compilations.main {
109
- compilerOptions.configure {
110
- jvmTarget = JvmTarget.JVM_1_8
111
+ compileTaskProvider.configure {
112
+ compilerOptions {
113
+ jvmTarget = JvmTarget.JVM_1_8
114
+ }
111
115
}
112
116
}
113
117
}
Original file line number Diff line number Diff line change @@ -729,9 +729,11 @@ A compilation has the following parameters:
729
729
kotlin {
730
730
jvm {
731
731
val main by compilations.getting {
732
- compilerOptions.configure {
733
- // Set up the Kotlin compiler options for the 'main' compilation:
734
- jvmTarget.set(JvmTarget .JVM_1_8 )
732
+ compileTaskProvider.configure {
733
+ compilerOptions {
734
+ // Set up the Kotlin compiler options for the 'main' compilation:
735
+ jvmTarget.set(JvmTarget .JVM_1_8 )
736
+ }
735
737
}
736
738
737
739
compileKotlinTask // get the Kotlin task 'compileKotlinJvm'
@@ -754,9 +756,13 @@ kotlin {
754
756
``` groovy
755
757
kotlin {
756
758
jvm {
757
- compilations.main.compilerOptions.configure {
758
- // Setup the Kotlin compiler options for the 'main' compilation:
759
- jvmTarget = JvmTarget.JVM_1_8
759
+ compilations.main {
760
+ compileTaskProvider.configure {
761
+ compilerOptions {
762
+ // Setup the Kotlin compiler options for the 'main' compilation:
763
+ jvmTarget = JvmTarget.JVM_1_8
764
+ }
765
+ }
760
766
}
761
767
762
768
compilations.main.compileKotlinTask // get the Kotlin task 'compileKotlinJvm'
You can’t perform that action at this time.
0 commit comments