Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Annotation Processor & other Compile only dependencies

Hi,

Using compiler dependency didn't work.
However using the extraClasspathElements configuration did the trick. No need to osgify anything or modify target platform :).
Thanks Jeff.

So in case someone else wants to make it work here is the compiler config to use:
<plugin>
  <groupId>org.eclipse.tycho</groupId>
  <artifactId>tycho-compiler-plugin</artifactId>
  <version>tycho-version</version>
  <configuration>
    <extraClasspathElements>
      <extraClasspathElement>
        <groupId>com.google.auto.value</groupId>
        <artifactId>auto-value</artifactId>   
        <version>1.1</version>
      </extraClasspathElement>
    </extraClasspathElements>
  </configuration>
</plugin>

-Seb


On Mon, Dec 21, 2015 at 8:45 AM Jeff MAURY <jeffmaury@xxxxxxxxx> wrote:

Can't you declare the autovalue as a dependency of the tycho compiler ?

Jeff

Le 21 déc. 2015 08:37, "Sebastien Arod" <sebastien.arod@xxxxxxxxx> a écrit :
Hi,

I'm trying to enable google autovalue on a tycho project.

Currently to make it work I have to:
* Osgify the bundle.
* Add the bundle to the target platform
* Add the autovalue bundle as an "optional" dependency on google autovalue

I have to osgify the bundle because the autovalue team doesn't want to include the OSGI metadata because they consider the osgi metadata as runtime metadata and their library is used at compile time only without any presence at runtime.

The setup I have seems to work. However it seems a bit of a hack to use an optional dependency to describe a compile only dependency.

Is there a cleaner way to deal with compile time dependencies in PDE/tycho world?

-Seb

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

Back to the top