Skip to main content

One post tagged with "gradle"

View All Tags

在gradle项目中使用platform导入其他gradle公共库项目时报错

· 2 min read
orange
programmer on jvm platform

在别的项目中使用platform导入内部公共库时报错, 报错信息如下:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':extractIncludeProto'.
> Could not resolve all files for configuration ':compileProtoPath'.
> Could not resolve com.fastonetech.library:fastone-bom:1.1.0-SNAPSHOT.
Required by:
project :
> No matching variant of com.fastonetech.library:fastone-bom:0.1.0-SNAPSHOT:20221123.055858-93 was found. The consumer was configured to find a runtime of a platform, preferably only the resources files but:
- Variant 'apiElements' capability com.fastonetech.library:fastone-bom:0.1.0-SNAPSHOT declares a component, packaged as a jar:
- Incompatible because this component declares an API of a library and the consumer needed a runtime of a platform
- Variant 'runtimeElements' capability com.fastonetech.library:fastone-bom:0.1.0-SNAPSHOT declares a runtime of a component, packaged as a jar:
- Incompatible because this component declares a library and the consumer needed a platform
> Could not find com.fastonetech.library:filter-spring-boot-starter:.
Required by:
project :
> Could not find com.fastonetech.library:rpc-spring-boot-starter:.
Required by:
project :
> Could not find com.fastonetech.library:security-spring-boot-starter:.
Required by:
project :
> Could not find com.fastonetech.library:prometheus-querying-client:.
Required by:
project :