Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be51d3a

Browse filesBrowse files
committed
Multi-Release-Jar
Signed-off-by: Markus KARG <markus@headcrashing.eu>
1 parent eebe1be commit be51d3a
Copy full SHA for be51d3a

File tree

Expand file treeCollapse file tree

4 files changed

+1824
-2
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+1824
-2
lines changed

‎pom.xml

Copy file name to clipboardExpand all lines: pom.xml
+50Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,46 @@ limitations under the License.
9696
</plugins>
9797
</pluginManagement>
9898
<plugins>
99+
<plugin>
100+
<artifactId>maven-compiler-plugin</artifactId>
101+
<executions>
102+
<execution>
103+
<id>default-compile</id>
104+
<goals>
105+
<goal>compile</goal>
106+
</goals>
107+
<configuration>
108+
<release>8</release>
109+
</configuration>
110+
</execution>
111+
<execution>
112+
<id>compile-java-9</id>
113+
<goals>
114+
<goal>compile</goal>
115+
</goals>
116+
<configuration>
117+
<release>9</release>
118+
<compileSourceRoots>
119+
<compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
120+
</compileSourceRoots>
121+
<multiReleaseOutput>true</multiReleaseOutput>
122+
</configuration>
123+
</execution>
124+
<execution>
125+
<id>compile-java-10</id>
126+
<goals>
127+
<goal>compile</goal>
128+
</goals>
129+
<configuration>
130+
<release>10</release>
131+
<compileSourceRoots>
132+
<compileSourceRoot>${project.basedir}/src/main/java10</compileSourceRoot>
133+
</compileSourceRoots>
134+
<multiReleaseOutput>true</multiReleaseOutput>
135+
</configuration>
136+
</execution>
137+
</executions>
138+
</plugin>
99139
<plugin>
100140
<groupId>org.apache.maven.plugins</groupId>
101141
<artifactId>maven-scm-publish-plugin</artifactId>
@@ -134,6 +174,16 @@ limitations under the License.
134174
</systemProperties>
135175
</configuration>
136176
</plugin>
177+
<plugin>
178+
<artifactId>maven-jar-plugin</artifactId>
179+
<configuration>
180+
<archive>
181+
<manifestEntries>
182+
<Multi-Release>true</Multi-Release>
183+
</manifestEntries>
184+
</archive>
185+
</configuration>
186+
</plugin>
137187
</plugins>
138188
</build>
139189

‎src/main/java/org/codehaus/plexus/util/IOUtil.java

Copy file name to clipboardExpand all lines: src/main/java/org/codehaus/plexus/util/IOUtil.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private IOUtil()
156156
public static void copy( final InputStream input, final OutputStream output )
157157
throws IOException
158158
{
159-
input.transferTo( output );
159+
copy( input, output, DEFAULT_BUFFER_SIZE );
160160
}
161161

162162
/**
@@ -186,7 +186,7 @@ public static void copy( final InputStream input, final OutputStream output, fin
186186
public static void copy( final Reader input, final Writer output )
187187
throws IOException
188188
{
189-
input.transferTo( output );
189+
copy( input, output, DEFAULT_BUFFER_SIZE );
190190
}
191191

192192
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.