googleapis / googleapis/google-cloud-java

[sdk-platform-java] Some downstream native configs initialize JUnit classes at build time in production

未关闭
#12,388 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p3 type: bug
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
157

描述

From https://github.com/googleapis/sdk-platform-java/pull/3674

Some libraries mark JUnit classes for initialization at build time in its _production_ native properties file.

For example: https://github.com/googleapis/java-spanner-jdbc/blob/fa65ead20018c083749bb1bd1cc1993f48745ef9/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-spanner-jdbc/native-image.properties#L15

I tried moving it to a test-only config file (`src/test/resources...`) but the image creation would fail asking to specify the JUnit classes to be initialized at runtime.

贡献指南

打开贡献指南

调研方向

Start with the downstream native-image.properties example in java-spanner-jdbc and compare its production configuration with the proposed src/test/resources configuration. Investigate why image creation still requires JUnit classes at runtime, and consider the issue resolved when production configs no longer initialize JUnit classes at build time without breaking test image creation.

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。