-
Notifications
You must be signed in to change notification settings - Fork 13
/
pom.xml
165 lines (155 loc) · 5.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0" encoding="UTF-8"?>
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.avaje</groupId>
<artifactId>java11-oss</artifactId>
<version>4.5</version>
</parent>
<groupId>io.avaje</groupId>
<artifactId>avaje-http-parent</artifactId>
<version>2.9-SNAPSHOT</version>
<packaging>pom</packaging>
<scm>
<developerConnection>scm:git:git@github.com:avaje/avaje-http.git</developerConnection>
<tag>avaje-http-parent-1.19</tag>
</scm>
<properties>
<nexus.staging.autoReleaseAfterClose>true</nexus.staging.autoReleaseAfterClose>
<swagger.version>2.2.26</swagger.version>
<jackson.version>2.14.2</jackson.version>
<avaje.prisms.version>1.35</avaje.prisms.version>
<module-info.shade>${project.build.directory}${file.separator}module-info.shade</module-info.shade>
</properties>
<dependencies>
<dependency>
<groupId>io.avaje</groupId>
<artifactId>junit</artifactId>
<version>1.5</version>
<scope>test</scope>
</dependency>
</dependencies>
<modules>
<module>htmx-api</module>
<module>http-api</module>
<module>http-api-javalin</module>
<module>http-client</module>
<module>http-client-gson-adapter</module>
<module>http-client-moshi-adapter</module>
<module>http-inject-plugin</module>
<module>http-generator-core</module>
<module>http-generator-javalin</module>
<module>http-generator-jex</module>
<module>http-generator-sigma</module>
<module>http-generator-client</module>
</modules>
<profiles>
<profile>
<id>central</id>
</profile>
<profile>
<id>test</id>
<modules>
<module>tests</module>
</modules>
</profile>
<profile>
<id>jdk21plus</id>
<activation>
<jdk>[21,)</jdk>
</activation>
<modules>
<module>htmx-nima</module>
<module>htmx-nima-jstache</module>
<module>http-generator-helidon</module>
</modules>
</profile>
<profile>
<id>test21</id>
<modules>
<module>htmx-nima</module>
<module>htmx-nima-jstache</module>
<module>http-generator-helidon</module>
<module>tests</module>
</modules>
</profile>
<profile>
<id>module-info.shade</id>
<activation>
<file>
<exists>src/etc/activate-shade-module</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<target>
<property name="input" value="src${file.separator}main${file.separator}java${file.separator}module-info.java" />
<copy file="${input}" tofile="${module-info.shade}" />
<replaceregexp file="${module-info.shade}" match="(// SHADED:).*" flags="s" replace="}" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<artifactSet>
<excludes>
<exclude>module-info.java</exclude>
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>io.swagger.core.v3:swagger-models</artifact>
<excludes>
<exclude>io/swagger/v3/oas/models/callbacks/**</exclude>
<exclude>io/swagger/v3/oas/models/examples/**</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
<executions>
<execution>
<id>add-module-infos</id>
<phase>package</phase>
<goals>
<goal>add-module-info</goal>
</goals>
<configuration>
<overwriteExistingFiles>true</overwriteExistingFiles>
<module>
<moduleInfoFile>${module-info.shade}</moduleInfoFile>
</module>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>