diff --git a/java/core/BUILD.bazel b/java/core/BUILD.bazel index d7d89c087f357..ba676c9c9987b 100644 --- a/java/core/BUILD.bazel +++ b/java/core/BUILD.bazel @@ -171,8 +171,8 @@ protobuf_java_library( proto_library( name = "java_features_proto", - srcs = ["src/main/java/com/google/protobuf/java_features.proto"], - strip_import_prefix = "/java/core/src/main/java/com", + srcs = ["src/main/resources/google/protobuf/java_features.proto"], + strip_import_prefix = "/java/core/src/main/resources", visibility = [ "//java/kotlin:__pkg__", "//java/kotlin-lite:__pkg__", @@ -184,7 +184,7 @@ proto_library( filegroup( name = "java_features_proto_srcs", - srcs = ["src/main/java/com/google/protobuf/java_features.proto"], + srcs = ["src/main/resources/google/protobuf/java_features.proto"], visibility = ["//pkg:__pkg__"], ) @@ -560,7 +560,7 @@ pkg_files( name = "dist_files", srcs = glob([ "src/main/java/com/google/protobuf/*.java", - "src/main/java/com/google/protobuf/*.proto", + "src/main/resources/google/protobuf/*.proto", "src/test/java/**/*.java", "src/test/proto/**/*.proto", ]) + [ diff --git a/java/core/generate-sources-build.xml b/java/core/generate-sources-build.xml index 4ffd4384dc416..7021aa8e2231d 100644 --- a/java/core/generate-sources-build.xml +++ b/java/core/generate-sources-build.xml @@ -5,7 +5,7 @@ - + diff --git a/java/core/pom.xml b/java/core/pom.xml index cdb9a113e9d52..43a22c557b7da 100644 --- a/java/core/pom.xml +++ b/java/core/pom.xml @@ -62,7 +62,7 @@ ${protobuf.java_source.dir} - main/java/com/google/protobuf/java_features.proto + google/protobuf/java_features.proto diff --git a/java/core/src/main/java/com/google/protobuf/java_features.proto b/java/core/src/main/resources/google/protobuf/java_features.proto similarity index 100% rename from java/core/src/main/java/com/google/protobuf/java_features.proto rename to java/core/src/main/resources/google/protobuf/java_features.proto diff --git a/java/kotlin-lite/generate-sources-build.xml b/java/kotlin-lite/generate-sources-build.xml index b8728e2df8df1..e15f169e310af 100644 --- a/java/kotlin-lite/generate-sources-build.xml +++ b/java/kotlin-lite/generate-sources-build.xml @@ -5,7 +5,7 @@ - + diff --git a/java/lite/generate-sources-build.xml b/java/lite/generate-sources-build.xml index b35bd63989bf5..f1dcadb15ce2c 100644 --- a/java/lite/generate-sources-build.xml +++ b/java/lite/generate-sources-build.xml @@ -5,7 +5,7 @@ - + diff --git a/java/lite/pom.xml b/java/lite/pom.xml index 3121dd8c1aeef..dc8eb8e610f94 100644 --- a/java/lite/pom.xml +++ b/java/lite/pom.xml @@ -61,7 +61,7 @@ ${protobuf.java_source.dir} - main/java/com/google/protobuf/java_features.proto + google/protobuf/java_features.proto diff --git a/java/pom.xml b/java/pom.xml index 2c017a3f08380..4a06bd80c84ae 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -33,7 +33,7 @@ ${project.basedir}/../.. ${protobuf.basedir}/src - ${protobuf.basedir}/java/core/src + ${protobuf.basedir}/java/core/src/main/resources ${protobuf.basedir}/protoc src/test/proto ${project.build.directory}/generated-sources diff --git a/src/google/protobuf/editions/golden/editions_transform_proto2.proto b/src/google/protobuf/editions/golden/editions_transform_proto2.proto index 0e538701b025b..260a8d26ae800 100644 --- a/src/google/protobuf/editions/golden/editions_transform_proto2.proto +++ b/src/google/protobuf/editions/golden/editions_transform_proto2.proto @@ -15,7 +15,7 @@ edition = "2023"; package protobuf_editions_test; import "net/proto/proto1_features.proto"; -import "third_party/java_src/protobuf/current/java/com/google/protobuf/java_features.proto"; +import "third_party/java/protobuf/java_features.proto"; import "google/protobuf/cpp_features.proto"; import "google/protobuf/editions/proto/editions_transform_proto3.proto";