Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Best practice: How to refer to build-time-only dependencies?

Hi,

I was wondering what the best practice is when refering to
build-time-only dependencies, e.g., org.eclipse.jdt.annotation.

You can of course have an *optional* Import-Package or Require-Bundle,
but this is not completely free of runtime effects like installing and
loading an unnecessary bundle.

Now Tycho also supports various build.properties keys [1] which may
achieve a similar effect. And then there is <extraClasspathElements> [2].

So, what do you think consitutes the best practice (if any) and how
compatible is it with other tooling (PDE, maven-dependency-plugin, etc.)?

Best wishes,

Andreas

[1] <http://www.eclipse.org/tycho/sitedocs/BuildProperties.html>
[2]
<https://eclipse.org/tycho/sitedocs/tycho-compiler-plugin/compile-mojo.html#extraClasspathElements>

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top