Skip to content

Commit

Permalink
UPDATE_KOTLIN_VERSION: 2.0.0-dev-9013
Browse files Browse the repository at this point in the history
  • Loading branch information
neetopia committed Dec 19, 2023
1 parent 7f854b8 commit eaeafc7
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 24 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ subprojects {
}

tasks.withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
javaCompiler.set(
javaToolchains.compilerFor {
languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class SourceSetConfigurationsTest {
val baseVariant = (this as com.android.build.gradle.internal.api.BaseVariantImpl)
val variantData = baseVariant::class.java.getMethod("getVariantData").invoke(baseVariant)
as com.android.build.gradle.internal.variant.BaseVariantData
variantData.extraGeneratedSourceFolders.forEach {
variantData.extraGeneratedSourceFoldersOnlyInModel.forEach {
println("SRC:" + it.relativeTo(buildDir).path)
}
variantData.allPreJavacGeneratedBytecode.forEach {
Expand Down Expand Up @@ -238,21 +238,6 @@ class SourceSetConfigurationsTest {
it.path.contains("ksp")
}
).containsExactly(
SourceFolder(
"debug", "SRC:generated/ksp/debug/java"
),
SourceFolder(
"release", "SRC:generated/ksp/release/java"
),
SourceFolder(
"debugAndroidTest", "SRC:generated/ksp/debugAndroidTest/java"
),
SourceFolder(
"debugUnitTest", "SRC:generated/ksp/debugUnitTest/java"
),
SourceFolder(
"releaseUnitTest", "SRC:generated/ksp/releaseUnitTest/java"
),
SourceFolder(
"debug", "SRC:generated/ksp/debug/kotlin"
),
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copied from kotlinc
org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx2200m -Dfile.encoding=UTF-8

kotlinBaseVersion=2.0.0-dev-7674
agpBaseVersion=7.0.0
kotlinBaseVersion=2.0.0-dev-9013
agpBaseVersion=7.2.0
intellijVersion=213.7172.25
junitVersion=4.13.1
junit5Version=5.8.2
junitPlatformVersion=1.8.2
googleTruthVersion=1.1

aaKotlinBaseVersion=2.0.0-dev-7674
aaKotlinBaseVersion=2.0.0-dev-9013
aaIntellijVersion=213.7172.25
aaGuavaVersion=29.0-jre
aaAsmVersion=9.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.google.devtools.ksp.test
import org.gradle.testkit.runner.GradleRunner
import org.gradle.testkit.runner.TaskOutcome
import org.junit.Assert
import org.junit.Assume
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
Expand All @@ -18,6 +19,7 @@ class MultiplatformIT(useKSP2: Boolean) {

@Test
fun testJVM() {
Assume.assumeFalse(System.getProperty("os.name").startsWith("mac", ignoreCase = true))
val gradleRunner = GradleRunner.create().withProjectDir(project.root)

val resultCleanBuild =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ import org.jetbrains.kotlin.cli.common.config.addKotlinSourceRoot
import org.jetbrains.kotlin.cli.common.config.addKotlinSourceRoots
import org.jetbrains.kotlin.cli.common.config.kotlinSourceRoots
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreApplicationEnvironmentMode
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreProjectEnvironment
import org.jetbrains.kotlin.cli.jvm.compiler.computeDefaultRootModules
import org.jetbrains.kotlin.cli.jvm.compiler.createSourceFilesFromSourceRoots
Expand Down Expand Up @@ -160,8 +161,7 @@ class KotlinSymbolProcessing(
StandaloneProjectFactory.createProjectEnvironment(
projectDisposable,
applicationDisposable,
false,
classLoader = MockProject::class.java.classLoader
KotlinCoreApplicationEnvironmentMode.Production
)

val application: Application = kotlinCoreProjectEnvironment.environment.application
Expand Down
2 changes: 2 additions & 0 deletions kotlin-analysis-api/testData/parent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
// parent of Enum: Enum<(RGB..RGB?)>
// parent of Enum<(RGB..RGB?)>: RGB
// parent of RGB: File: B.java
// parent of RGB: synthetic constructor for RGB
// parent of synthetic constructor for RGB: RGB
// parent of R: RGB
// parent of G: RGB
// parent of B: RGB
Expand Down
1 change: 1 addition & 0 deletions kotlin-analysis-api/testData/signatureMapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
// intParam: I
// <init>: (I)V
// LJavaEnum;
// <init>: ()V
// VAL1: LJavaEnum;
// VAL2: LJavaEnum;
// DEFAULT: LJavaEnum;
Expand Down

0 comments on commit eaeafc7

Please sign in to comment.