Skip to content

Commit

Permalink
successful multi-release build
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Aug 31, 2019
1 parent 79f5955 commit 05583d3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 57 deletions.
4 changes: 4 additions & 0 deletions logback-access/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<name>Logback Access Module</name>
<description>logback-access module</description>

<properties>
<module-name>ch.qos.logback.access</module-name>
</properties>

<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
Expand Down
9 changes: 5 additions & 4 deletions logback-classic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>compile</scope>
</dependency>
<!-- <dependency>
<groupId>org.slf4j</groupId>
Expand Down Expand Up @@ -101,7 +99,6 @@
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
Expand All @@ -112,7 +109,6 @@
<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
Expand Down Expand Up @@ -184,6 +180,11 @@
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
<X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
<Multi-Release>true</Multi-Release>
</manifestEntries>
<manifestFile>
${project.build.outputDirectory}/META-INF/MANIFEST.MF
</manifestFile>
Expand Down
Empty file modified logback-classic/src/main/java9/module-info.java
100755 → 100644
Empty file.
6 changes: 4 additions & 2 deletions logback-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<name>Logback Core Module</name>
<description>logback-core module</description>


<properties>
<module-name>ch.qos.logback.core</module-name>
</properties>
Expand Down Expand Up @@ -91,15 +90,18 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

<configuration>
<archive>
<manifestEntries>
<Multi-Release>true</Multi-Release>
<X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
<X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
</manifestEntries>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>

</configuration>

<executions>
<execution>
<id>bundle-test-jar</id>
Expand Down
Empty file modified logback-core/src/main/java9/module-info.java
100755 → 100644
Empty file.
60 changes: 9 additions & 51 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
<tomcat.version>8.5.9</tomcat.version>
<jetty.version>8.2.0.v20160908</jetty.version>
<!--<jetty.version>9.2.9.v20150224</jetty.version>-->
<<<<<<< HEAD
<compiler-plugin.version>3.8.0</compiler-plugin.version> <!-- 3.6.1, 3.7.0 -->
=======
<compiler-plugin.version>3.8.0</compiler-plugin.version>
>>>>>>> 40788f36e... successful multi-release build
<jansi.version>1.9</jansi.version>
<javadoc.plugin.version>2.10.4</javadoc.plugin.version>
<!--<javadoc.plugin.version>3.0.0</javadoc.plugin.version>-->
Expand Down Expand Up @@ -337,24 +341,7 @@
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-toolchains-plugin
</artifactId>
<versionRange>[1.1,)</versionRange>
<goals>
<goal>toolchain</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
Expand All @@ -367,9 +354,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>

<executions>

<execution>
<id>default-compile</id>
<goals>
Expand All @@ -379,14 +364,14 @@
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</execution>

<execution>
</execution>
<!-- requires module-name to be defined in submodule/pom.xml -->
<execution>
<id>module-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</goals>
<configuration>
<release>9</release>
<compileSourceRoots>
Expand All @@ -400,9 +385,7 @@
</configuration>
</execution>
</executions>

</plugin>


<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -636,31 +619,6 @@
</build>
</profile>

<profile>
<id>travis</id>
<activation>
<property>
<name>env.TRAVIS</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>toolchain</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>cobertura</id>
<build>
Expand Down

0 comments on commit 05583d3

Please sign in to comment.