Execution failed for task ':kaptGenerateStubsKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.abcxyz.lumberjack:audit-client-library:0.0.5.
Required by:
project :
> Could not resolve com.abcxyz.lumberjack:audit-client-library:0.0.5.
> inconsistent module metadata found. Descriptor: com.abcxyz.lumberjack:audit-client-library:0.0.1 Errors: bad version: expected='0.0.5' found='0.0.1'
Execution failed for task ':kaptGenerateStubsKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve com.abcxyz.jvs:jvs-client:0.0.3.
Required by:
project : > com.abcxyz.lumberjack:audit-client-library:0.0.5
> Could not resolve com.abcxyz.jvs:jvs-client:0.0.3.
> inconsistent module metadata found. Descriptor: com.abcxyz.jvs:jvs-client:${revision} Errors: bad version: expected='0.0.3' found='${revision}'
TL;DR
I am trying to integrate with Lumberjack library using Java and Gradle. Gradle is configured with
When I run a build I get the following error:
If I download the artifact from https://us-maven.pkg.dev/abcxyz-artifacts/maven-repo/com/abcxyz/lumberjack/audit-client-library/0.0.5/audit-client-library-0.0.5.pom I see that the version was not replaced but is
The same seems to apply for JVS dependency
I googled this problem and it seems your build might be affected by this issue https://stackoverflow.com/questions/41086512/maven-issue-to-build-one-module-using-revision-property. If I apply the fix (https://maven.apache.org/maven-ci-friendly.html#install-deploy - flatten plugin) to a local build and install the artefacts locally, version is set correctly.
Expected behavior
Version in the produced artifact should match release version.
Observed behavior
Artifact was produced with the correct layout but version inside the pom did not match the release version.
Environment Details
Additional information
No response