Skip to content

Commit

Permalink
Update Kotlin Metadata dependency to 2.0.0-Beta5
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 673971090
  • Loading branch information
bcorso authored and Dagger Team committed Sep 13, 2024
1 parent 4941926 commit cb32cf1
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 26 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ maven_install(
"org.jetbrains.kotlin:kotlin-compiler-embeddable:%s" % KOTLIN_VERSION,
"org.jetbrains.kotlin:kotlin-daemon-embeddable:%s" % KOTLIN_VERSION,
"org.jetbrains.kotlin:kotlin-stdlib:%s" % KOTLIN_VERSION,
"org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.6.2",
"org.jetbrains.kotlin:kotlin-metadata-jvm:2.0.0-Beta5",
"org.jspecify:jspecify:1.0.0",
"org.mockito:mockito-core:2.28.2",
"org.pantsbuild:jarjar:1.7.2",
Expand Down
2 changes: 1 addition & 1 deletion java/dagger/hilt/processor/internal/kotlin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ java_library(
"//third_party/java/javapoet",
"//third_party/java/jsr305_annotations",
"//third_party/java/jsr330_inject",
"//third_party/kotlin/kotlin_metadata_jvm",
"@maven//:org_jetbrains_kotlin_kotlin_stdlib",
"@maven//:org_jetbrains_kotlinx_kotlinx_metadata_jvm",
],
)
22 changes: 11 additions & 11 deletions java/dagger/hilt/processor/internal/kotlin/KotlinMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package dagger.hilt.processor.internal.kotlin;

import static dagger.internal.codegen.extension.DaggerStreams.toImmutableMap;
import static kotlinx.metadata.Flag.ValueParameter.DECLARES_DEFAULT_VALUE;
import static kotlin.metadata.Flag.ValueParameter.DECLARES_DEFAULT_VALUE;

import androidx.room.compiler.processing.XAnnotation;
import androidx.room.compiler.processing.XFieldElement;
Expand All @@ -38,16 +38,16 @@
import java.util.function.Function;
import javax.annotation.Nullable;
import kotlin.Metadata;
import kotlinx.metadata.Flag;
import kotlinx.metadata.KmClass;
import kotlinx.metadata.KmConstructor;
import kotlinx.metadata.KmFunction;
import kotlinx.metadata.KmProperty;
import kotlinx.metadata.jvm.JvmExtensionsKt;
import kotlinx.metadata.jvm.JvmFieldSignature;
import kotlinx.metadata.jvm.JvmMetadataUtil;
import kotlinx.metadata.jvm.JvmMethodSignature;
import kotlinx.metadata.jvm.KotlinClassMetadata;
import kotlin.metadata.Flag;
import kotlin.metadata.KmClass;
import kotlin.metadata.KmConstructor;
import kotlin.metadata.KmFunction;
import kotlin.metadata.KmProperty;
import kotlin.metadata.jvm.JvmExtensionsKt;
import kotlin.metadata.jvm.JvmFieldSignature;
import kotlin.metadata.jvm.JvmMetadataUtil;
import kotlin.metadata.jvm.JvmMethodSignature;
import kotlin.metadata.jvm.KotlinClassMetadata;

/** Data class of a TypeElement and its Kotlin metadata. */
@AutoValue
Expand Down
2 changes: 1 addition & 1 deletion java/dagger/internal/codegen/kotlin/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ java_library(
"//third_party/java/javapoet",
"//third_party/java/jsr305_annotations",
"//third_party/java/jsr330_inject",
"//third_party/kotlin/kotlin_metadata_jvm",
"@maven//:org_jetbrains_kotlin_kotlin_stdlib",
"@maven//:org_jetbrains_kotlinx_kotlinx_metadata_jvm",
],
)
20 changes: 10 additions & 10 deletions java/dagger/internal/codegen/kotlin/KotlinMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
import java.util.function.Function;
import javax.annotation.Nullable;
import kotlin.Metadata;
import kotlinx.metadata.Flag;
import kotlinx.metadata.KmClass;
import kotlinx.metadata.KmConstructor;
import kotlinx.metadata.KmFunction;
import kotlinx.metadata.KmProperty;
import kotlinx.metadata.jvm.JvmExtensionsKt;
import kotlinx.metadata.jvm.JvmFieldSignature;
import kotlinx.metadata.jvm.JvmMetadataUtil;
import kotlinx.metadata.jvm.JvmMethodSignature;
import kotlinx.metadata.jvm.KotlinClassMetadata;
import kotlin.metadata.Flag;
import kotlin.metadata.KmClass;
import kotlin.metadata.KmConstructor;
import kotlin.metadata.KmFunction;
import kotlin.metadata.KmProperty;
import kotlin.metadata.jvm.JvmExtensionsKt;
import kotlin.metadata.jvm.JvmFieldSignature;
import kotlin.metadata.jvm.JvmMetadataUtil;
import kotlin.metadata.jvm.JvmMethodSignature;
import kotlin.metadata.jvm.KotlinClassMetadata;

/** Data class of a TypeElement and its Kotlin metadata. */
@AutoValue
Expand Down
2 changes: 1 addition & 1 deletion java/dagger/spi/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ gen_maven_artifact(
# util/deploy-dagger.sh
shaded_deps = [
"//third_party/java/auto:common",
"@maven//:org_jetbrains_kotlinx_kotlinx_metadata_jvm",
"//third_party/kotlin/kotlin_metadata_jvm",
"//java/dagger/internal/codegen/xprocessing:xprocessing-jar",
],
)
22 changes: 22 additions & 0 deletions third_party/kotlin/kotlin_metadata_jvm/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2024 The Dagger Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# BUILD rules for https://github.com/square/kotlinpoet

package(default_visibility = ["//:src"])

alias(
name = "kotlin_metadata_jvm",
actual = "@maven//:org_jetbrains_kotlin_kotlin_metadata_jvm",
)
2 changes: 1 addition & 1 deletion tools/maven/maven.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ load(":pom_file.bzl", "pom_file")

SHADED_MAVEN_DEPS = [
"com.google.auto:auto-common",
"org.jetbrains.kotlinx:kotlinx-metadata-jvm",
"org.jetbrains.kotlin:kotlin-metadata-jvm",
]

def dagger_pom_file(name, targets, artifact_name, artifact_id, packaging = None, **kwargs):
Expand Down

0 comments on commit cb32cf1

Please sign in to comment.