Skip to content

[BUG] Standalone gradle project based on :examples:sample-protoc-plugin fails to build with 0.1.0 #27

@sedovmik

Description

@sedovmik

Describe the bug

A standalone gradle project based on the module examples:sample-protoc-plugin fails to build when using the 0.1.0 release. The error hints the bug in Kotlin compiler plugin version detection.

To Reproduce

The issue can be reproduced in this sample project: https://github.com/sedovmik/protobuf-gen-sample by running ./gradlew build. Build fails with

> Task :compileKotlin FAILED
e: file:/// ... /protobuf-gen-sample/build/generated/source/proto/main/kotlinx-protobuf-gen/custom/pkg/protos/sample.proto.kt:10:1 Your current kotlinx.serialization core version is 2.0.0, while current Kotlin compiler plugin unknown requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency.

The build scan is available here

Expected behavior

The standalone project should build successfully, just as the ./gradlew :examples:sample-protoc-plugin:build does when running within the main project.

Additional context

The same configuration works correctly when building as part of the main project (:examples:sample-protoc-plugin:build). It could be specific to dependency resolution using the 0.1.0 release.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions