There are several plugins which need to use the same value of the javac's target argument. This plugins should not be aware of each other, we solved this by sharing the maven.compiler.target property.

In your case, ask your users to specify
<properties>
  <maven.compiler.compilerId>jack</maven.compiler.compilerId>
</properties>
the maven-compiler-plugin will already pick this up, let the android maven plugin do the same.

Robert

On Fri, 30 Sep 2016 18:18:26 +0200, Manfred Moser
<manf...@simpligility.com> wrote:

Another way I thought of is to have a standard property that is used in the compiler plugin config and the Android Maven Plugin just reads it as well in the mojo. If its defined as a user property I think we wont even have to write any code to read it.

Would that work?

Manfred



Manfred Moser wrote on 2016-09-30 09:08:

Hi,

We have some ongoing work on the Android Maven Plugin that will introduce a new
compiler (https://source.android.com/source/jack.html).
The compiler is set in the compilerId of the Maven Compiler Plugin.

Now we would like the Android Maven Plugin to automatically know if this is set and hence use its related mojo as well. Is there a standard way to access the
compilerId configuration of the current project?

Or do we basically have to write the code to create the effective pom, access the compiler plugin config and check for the compilerId being set to "jack" or
whatever.

Any hints appreciated..

Manfred

References:

https://github.com/simpligility/android-maven-plugin/issues/536
https://issues.jboss.org/browse/FH-2743



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to