Closed drkstr101 closed 4 years ago
What version are you using? Goomph 3.20.0 fixed compat with Gradle 6.
Odd, I am on 3.21.0. I'm investigating further to see if I can narrow down the issue.
My mistake.
The com.diffplug.gradle.p2.asmaven plugin has been deprecated.
This is scheduled to be removed in Gradle 6.0.
Please use the com.diffplug.p2.asmaven plugin instead.
It still failed after making the change and doing a clean build of the maven repo.
Build scan here: https://gradle.com/s/7qczvv44rxefy
Aha. It's because you're creating the repo yourself. Goomph does this automatically, but since you're using p2asmaven
in its own project (which is perfectly valid), you need to make this change:
maven {
url project(':enm.model.p2').file('build/p2asmaven/maven')
metadataSources {
mavenPom()
artifact()
}
}
I think it's common to use p2asmaven
this way, so we should probably update the docs to point people to this. Lemme know if this fixes it for you.
That most certainly did the trick! It now works as expected. Cheers, and thank you for your time!
Fixed in 3.23.0
Awesome, keep up the great work! IMHO this plugin is a lot more ergonomic than Tycho/Maven builds. I am delighted to have stumbled upon it.
Hello,
I just wanted to inform you that the
p2AsMaven
task does not appear to work in Gradle versions greater than 5.6.4.Here is an example build that works in 5.6.4 but not 6.0.
enm.model/build.gradle
enm.model.p2/build.gradle
Running the build in 6.0 results in:
repeated for each dependency
Note: The repository exists and is valid in both cases. Perhaps gradle 6 has stricter constraints on version matching the dependency?