Closed dhakehurst closed 1 year ago
EDIT: for migration, @dhakehurst's example below are best docs availabe. For new users, the issue below should be enough.
ah....we don't replace the 'p2AsMaven' section.
we replace the 'dependencies' section.
i.e.
p2AsMaven {
destination(p2asmavenDir)
group("eclipse") {
repo("http://download.eclipse.org/releases/2020-03/202003181000")
repo("http://download.eclipse.org/sphinx/releases/0.11.x")
this.iu("org.eclipse.emf.ecore")
this.iu("org.eclipse.sphinx.emf")
}
}
dependencies {
api("eclipse:org.eclipse.sphinx.platform:+")
api("eclipse:org.eclipse.emf.ecore:+")
...
}
becomes
p2deps {
into 'api', {
p2repo 'http://download.eclipse.org/releases/2020-03/202003181000'
p2repo 'http://download.eclipse.org/sphinx/releases/0.11.x'
install 'org.eclipse.emf.ecore'
install 'org.eclipse.sphinx.emf'
}
}
Thanks for the example above, that will be very helpful to others. I have deleted our discussion so that the example is easier to find.
There is a recommendation to use "dev.equo.p2deps" instead of p2asmaven
but no documentation regarding how to use it or how to convert.