Here to get the project final name:
String stubArchiveName = this.project.getBuild().getFinalName() + "-"
+ this.classifier + ".jar";
This does not work if one sets finalName in build element in the POM file. The method simply returns the raw value of the property (e.g. ${project.name}).
Instead the value should be injected:
@Parameter(defaultValue = "${project.build.finalName}", readonly = true, required = true)
private String projectFinalName;
Care to create a PR to fix this? Preferably against the 2.1.x branch?
Ah I made it against master. Should I create a new one?
Great! Yeah, could you please close that one and create one against the 2.1.x branch? I'll then merge 2.1.x to master.
Roger.
Great job @akefirad !
Most helpful comment
there you go https://github.com/spring-cloud/spring-cloud-contract/pull/1183