Skip to content

Commit 191f5ae

Browse files
authored
Split native and classes to extra modules (java-native-access#357)
Motivation: We should ensure we not have the same classes multiple times on the classpath even if the user depend on various different classifiers Modifications: Move classes to extra module and let the native ones depend on it Result: No more duplicated classes on the classpath
1 parent f95fbb5 commit 191f5ae

File tree

110 files changed

+1403
-1070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1403
-1070
lines changed

codec-classes-quic/pom.xml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2021 The Netty Project
4+
~
5+
~ The Netty Project licenses this file to you under the Apache License,
6+
~ version 2.0 (the "License"); you may not use this file except in compliance
7+
~ with the License. You may obtain a copy of the License at:
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
~ License for the specific language governing permissions and limitations
15+
~ under the License.
16+
-->
17+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
18+
<modelVersion>4.0.0</modelVersion>
19+
<parent>
20+
<groupId>io.netty.incubator</groupId>
21+
<artifactId>netty-incubator-codec-parent-quic</artifactId>
22+
<version>0.0.21.Final-SNAPSHOT</version>
23+
</parent>
24+
25+
<artifactId>netty-incubator-codec-classes-quic</artifactId>
26+
<version>0.0.21.Final-SNAPSHOT</version>
27+
<name>Netty/Incubator/Codec/Classes/Quic</name>
28+
<packaging>jar</packaging>
29+
30+
<properties>
31+
<javaModuleName>io.netty.incubator.codec.classes.quic</javaModuleName>
32+
</properties>
33+
34+
<build>
35+
<plugins>
36+
<plugin>
37+
<artifactId>maven-jar-plugin</artifactId>
38+
<version>3.2.0</version>
39+
<executions>
40+
<execution>
41+
<id>default-jar</id>
42+
<configuration>
43+
<archive>
44+
<manifest>
45+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
46+
</manifest>
47+
<manifestEntries>
48+
<Automatic-Module-Name>${javaModuleName}</Automatic-Module-Name>
49+
</manifestEntries>
50+
<index>true</index>
51+
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
52+
</archive>
53+
</configuration>
54+
</execution>
55+
</executions>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
60+
<dependencies>
61+
<dependency>
62+
<groupId>io.netty</groupId>
63+
<artifactId>netty-common</artifactId>
64+
</dependency>
65+
<dependency>
66+
<groupId>io.netty</groupId>
67+
<artifactId>netty-buffer</artifactId>
68+
</dependency>
69+
<dependency>
70+
<groupId>io.netty</groupId>
71+
<artifactId>netty-codec</artifactId>
72+
</dependency>
73+
<dependency>
74+
<groupId>io.netty</groupId>
75+
<artifactId>netty-handler</artifactId>
76+
</dependency>
77+
<dependency>
78+
<groupId>io.netty</groupId>
79+
<artifactId>netty-transport</artifactId>
80+
</dependency>
81+
<dependency>
82+
<groupId>commons-codec</groupId>
83+
<artifactId>commons-codec</artifactId>
84+
</dependency>
85+
<dependency>
86+
<groupId>io.netty</groupId>
87+
<artifactId>netty-transport-classes-epoll</artifactId>
88+
<!-- Let's mark as optional as it is not strictly needed -->
89+
<optional>true</optional>
90+
</dependency>
91+
</dependencies>
92+
</project>

0 commit comments

Comments
 (0)