-
Notifications
You must be signed in to change notification settings - Fork 233
Add experimental Build Tools API (BTAPI) for compilation #1325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add experimental Build Tools API (BTAPI) for compilation #1325
Conversation
2441efe
to
57e6805
Compare
The integration tests I believe are hung up on not having any reference to the Maven artifacts in Would look to the maintainers for guidance here. |
87c1775
to
e644ea7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add the [basic jvm smoke test].(https://github.com/bazelbuild/rules_kotlin/blob/master/src/test/kotlin/io/bazel/kotlin/builder/tasks/jvm/KotlinBuilderJvmBasicTest.java)
And an iteration to the integration tests to include a run with the flag true and false.
Just to keep us honest.
src/main/kotlin/io/bazel/kotlin/compiler/BuildToolsAPICompiler.kt
Outdated
Show resolved
Hide resolved
7351778
to
e2b170c
Compare
…1325) * Add experimental Build Tools API (BTAPI) for compilation * Provision build tools API with http_archive over Maven * Fixup maven_install * Add build tools api to the integration tests --------- Co-authored-by: Corbin McNeely-Smith <[email protected]>
…1325) * Add experimental Build Tools API (BTAPI) for compilation * Provision build tools API with http_archive over Maven * Fixup maven_install * Add build tools api to the integration tests --------- Co-authored-by: Corbin McNeely-Smith <[email protected]>
Enables opting in to building with the Build Tools API (BTAPI). A simpler subset of #1316
The default configuration for
CompilationService
lands in a similar invocation ofK2JVMCompiler
that the currentBazelK2JVMCompiler
does, so this should very much be a drop-in replacement.This approach still pins the BTAPI to
2.1.20
, which may result in issues when using a different version of Kotlin. If the BTAPI is never shipped along Kotlin itself and that is a problem, then we'll have to somehow tie the version in Maven to the Kotlin version.BTAPI References: