Commit 03e81b8 1 parent 8924329 commit 03e81b8 Copy full SHA for 03e81b8
File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -189,26 +189,28 @@ kotlin {
189
189
}
190
190
}
191
191
192
+ val java9 by sourceSets.creating {
193
+ java.srcDir(" src/jvmMain/java9" )
194
+ compileClasspath = objects.fileCollection()
195
+ .from(configurations.named(" jvmCompileClasspath" ))
196
+ }
197
+
192
198
tasks {
193
- val compileModuleInfo by registering(JavaCompile ::class ) {
194
- classpath = objects.fileCollection()
195
- .from(configurations.named(" jvmCompileClasspath" ))
199
+ val compileJava9Java by getting(JavaCompile ::class ) {
196
200
val compileKotlinJvm = named<KotlinCompile >(" compileKotlinJvm" )
197
201
dependsOn(compileKotlinJvm)
198
202
options.compilerArgumentProviders.plusAssign(
199
203
CommandLineArgumentProvider {
200
204
listOf (" --patch-module" , " okio=${compileKotlinJvm.get().destinationDirectory.get().asFile.absolutePath} " )
201
205
},
202
206
)
203
- destinationDirectory = layout.buildDirectory.dir(" classes/java/moduleInfo" )
204
207
options.release = 9
205
- source(layout.projectDirectory.dir(" src/jvmMain/java" ))
206
208
}
207
209
208
210
val jvmJar by getting(Jar ::class ) {
209
211
// BundleTaskConvention() crashes unless there's a 'main' source set.
210
212
sourceSets.create(SourceSet .MAIN_SOURCE_SET_NAME )
211
- from(compileModuleInfo ) {
213
+ from(compileJava9Java ) {
212
214
into(" META-INF/versions/9" )
213
215
}
214
216
val bndConvention = BundleTaskConvention (this )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments