Skip to content
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

Build rules_kotlin using Kotlin 1.6 #626

Merged

Conversation

Bencodes
Copy link
Collaborator

@Bencodes Bencodes commented Nov 19, 2021

This PR also includes:

  • Updating Dagger for the entire project, including the example apps
  • Updating Anvil in the example apps
  • Removed -Xuse-experimental=kotlin.Experimental as -Xopt-in is now the default for 1.6.x
  • Building rules_kotlin against the latest 1.6.20 release
  • Making Kotlin 1.6 the default version

https://github.com/JetBrains/kotlin/releases/tag/v1.6.20

@Bencodes
Copy link
Collaborator Author

@restingbull restingbull self-assigned this Nov 19, 2021
@restingbull restingbull added the P1 label Nov 19, 2021
@Bencodes Bencodes force-pushed the build-rules_kotlin-using-kotlin-1.6 branch from 3bed8c8 to a91b668 Compare December 10, 2021 16:37
@Bencodes
Copy link
Collaborator Author

1.6.10-RC is out with some critical fixes that we need. Going to wait until that rolls out to merge this.

@nkoroste
Copy link
Collaborator

1.6.10-RC is out with some critical fixes that we need. Going to wait until that rolls out to merge this.

hopefully they land JetBrains/kotlin#4677 in there as well

@sfs
Copy link

sfs commented Dec 15, 2021

hopefully they land JetBrains/kotlin#4677 in there as well

Sorry, the PR was uploaded after the RC release and it didn't make it into 1.6.10. Does this issue affect you? I was hoping that nobody else was using ABI jars as dependencies in IntelliJ.

@Bencodes Bencodes force-pushed the build-rules_kotlin-using-kotlin-1.6 branch from ae40961 to ed2f8da Compare December 15, 2021 19:47
@Bencodes
Copy link
Collaborator Author

@sfs any idea when 1.6.20 will hit RC so that we can do another round of testing?

@Bencodes Bencodes force-pushed the build-rules_kotlin-using-kotlin-1.6 branch from 7ff9e6e to 9b28031 Compare January 21, 2022 17:17
@@ -38,6 +38,7 @@ public void testGeneratesAbiOnly() {
c.compileKotlin();
c.outputJdeps();
c.outputJavaJdeps();
c.outputJar();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, the skip-code-gen plugin gets added, which causes the new ABI compiler to short circuit and not output anything.

@Bencodes
Copy link
Collaborator Author

This is still blocked by the metadata fixes that will go out in 1.6.20. We can work around this if we need to by embedding the patched ABI gen compiler in here if needed.

@brettwooldridge
Copy link
Contributor

@Bencodes Kotlin v1.6.20 is out now.

@Bencodes Bencodes force-pushed the build-rules_kotlin-using-kotlin-1.6 branch from 86d3335 to f596f1e Compare April 13, 2022 03:12
@Bencodes Bencodes force-pushed the build-rules_kotlin-using-kotlin-1.6 branch from 01950b9 to dce2639 Compare April 14, 2022 17:46
@Bencodes
Copy link
Collaborator Author

@restingbull @nkoroste this should be good to merge now if you want to give it a once over.

@Bencodes
Copy link
Collaborator Author

I'll update the compose example after they update that with the latest Kotlin compatibility.

@restingbull restingbull merged commit 4f09106 into bazelbuild:master Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants