Re: testCompile with multiReleaseOutput main classes

2022-07-23 Thread Karl Heinz Marbaise

Hi,


On 23.07.22 18:28, Stanimir Stamenkov wrote:
I want to produce a Java 8 compatible library that provides some Java 9+ 
classes, packaged as a Multi-Release JAR:


The best suggestion I can give is is to use a multi module setup.


https://github.com/khmarbaise/mrelease

Furthermore I'm not sure if you really need toolchains in your case?.

Kind regards
Karl Heinz Marbaise


  * 
https://maven.apache.org/plugins/maven-compiler-plugin/multirelease.html


I've taken a slimmed down _Multi-Release Parent_ 
 approach, and 
the main compilation and packaging seems just right:


     
     maven-compiler-plugin
     3.10.1
     
     8
     8
     
     
     
     compile-java9
     compile
     
     compile
     
     
     9
     
     9
     
     
 
${project.basedir}/src/main/java9

     
     true
     
     
     
     
     
     maven-jar-plugin
     3.2.2
     
     
     
     true
     
     
     
     

Now I've added some test sources exercising the Java 9+ only classes, 
but the `testCompile` goal seems unable to find them.  Is it possible to 
configure the `default-testCompile` execution to see the classes from 
the `multiReleaseOutput` of the main compile?


FWIW, my current work-in-progress could be seen at:

  * https://github.com/stanio/xbrz-java/commit/8c9564ee874



testCompile with multiReleaseOutput main classes

2022-07-23 Thread Stanimir Stamenkov
I want to produce a Java 8 compatible library that provides some Java 9+ 
classes, packaged as a Multi-Release JAR:


 * https://maven.apache.org/plugins/maven-compiler-plugin/multirelease.html

I've taken a slimmed down _Multi-Release Parent_ 
 approach, and 
the main compilation and packaging seems just right:



maven-compiler-plugin
3.10.1

8
8



compile-java9
compile

compile


9

9



${project.basedir}/src/main/java9

true





maven-jar-plugin
3.2.2



true





Now I've added some test sources exercising the Java 9+ only classes, 
but the `testCompile` goal seems unable to find them.  Is it possible to 
configure the `default-testCompile` execution to see the classes from 
the `multiReleaseOutput` of the main compile?


FWIW, my current work-in-progress could be seen at:

 * https://github.com/stanio/xbrz-java/commit/8c9564ee874

--
Stanimir


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



[ANN] Maven Assembly Plugin 3.4.2 released

2022-07-23 Thread Michael Osipov
The Apache Maven team is pleased to announce the release of the Maven 
Assembly Plugin version 3.4.2.


https://maven.apache.org/plugins/maven-assembly-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-assembly-plugin
  3.4.2



Release Notes - Maven Assembly Plugin - Version 3.4.2

** Bug
* [MASSEMBLY-969] - Excludes filtering in  3.4.0 and 3.4.1 differs 
from 3.3.0


** Task
* [MASSEMBLY-949] - Examples should refer to https instead of http


Enjoy,

-The Apache Maven team

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