Reland "Reland "[Metadata] Update kotlin-metadata-jvm to version 0.6.0""

This reverts commit b648a4bf7396ae06bc3db8da76cb6854a167d3b7.

Reland "[Metadata] Add tests for missing rewrite of context receivers"

This reverts commit c0cf35dddaab57b1d89f9fed95311270dab0ddd7.

Bug: b/266682027
Change-Id: Iefbaf9e98b3fa6d78090cd70e580d35835646f3e
diff --git a/build.gradle b/build.gradle
index a3021ec..870b615 100644
--- a/build.gradle
+++ b/build.gradle
@@ -44,8 +44,8 @@
     mockitoVersion = '2.10.0'
     // The kotlin version is only here to specify the kotlin language level,
     // all kotlin compilations are done in tests.
-    kotlinVersion = '1.6.0'
-    kotlinExtMetadataJVMVersion = '0.5.0'
+    kotlinVersion = '1.8.0'
+    kotlinExtMetadataJVMVersion = '0.6.0'
     smaliVersion = '2.2b4'
     errorproneVersion = '2.3.2'
     testngVersion = '6.10'
@@ -286,7 +286,7 @@
     main17Implementation group: 'org.ow2.asm', name: 'asm-tree', version: asmVersion
     main17Implementation group: 'org.ow2.asm', name: 'asm-analysis', version: asmVersion
     main17Implementation group: 'org.ow2.asm', name: 'asm-util', version: asmVersion
-    
+
     examplesTestNGRunnerCompile group: 'org.testng', name: 'testng', version: testngVersion
 
     testCompile sourceSets.examples.output