diffplug / goomph

IDE as build artifact
Apache License 2.0
130 stars 30 forks source link

Migrating from `com.diffplug.p2.asmaven` to `dev.equo.p2deps` #209

Closed dhakehurst closed 1 year ago

dhakehurst commented 1 year ago

There is a recommendation to use "dev.equo.p2deps" instead of p2asmaven

but no documentation regarding how to use it or how to convert.

nedtwigg commented 1 year ago

EDIT: for migration, @dhakehurst's example below are best docs availabe. For new users, the issue below should be enough.

dhakehurst commented 1 year ago

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'
  }
}
nedtwigg commented 1 year ago

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.