mauricebarnum commented on pull request #2817: URL: https://github.com/apache/bookkeeper/pull/2817#issuecomment-938047880
An alternative approach to generating JNI headers in a manner that the internal compiler will be aware of the dependencies: https://github.com/mauricebarnum/bookkeeper/commit/049a510b920aab3c7d22898a18596bd68f4e78fd ```diff diff --git a/circe-checksum/build.gradle b/circe-checksum/build.gradle index e581ae6c3..5e03ec932 100644 --- a/circe-checksum/build.gradle +++ b/circe-checksum/build.gradle @@ -28,18 +28,8 @@ dependencies { testImplementation depLibs.mockito } -task generateJniHeaders(type: JavaCompile) { - ext { - javahOutputDir = "$buildDir/javahGenerated" - } - classpath = sourceSets.main.compileClasspath - destinationDir file("${buildDir}/javahGenerated") - source = sourceSets.main.java - options.compilerArgs += [ - '-h', file("${buildDir}/javahGenerated"), - ] - - options.annotationProcessorPath = configurations.annotationProcessor +compileJava { + options.headerOutputDirectory = file("${buildDir}/javahGenerated") } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
