|
40 | 40 | <id>bytefish</id> |
41 | 41 | </developer> |
42 | 42 | </developers> |
| 43 | + |
| 44 | + <repositories> |
| 45 | + <repository> |
| 46 | + <id>central-portal-snapshots</id> |
| 47 | + <name>Central Portal Snapshots</name> |
| 48 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 49 | + <releases> |
| 50 | + <enabled>false</enabled> |
| 51 | + </releases> |
| 52 | + <snapshots> |
| 53 | + <enabled>true</enabled> |
| 54 | + </snapshots> |
| 55 | + </repository> |
| 56 | + </repositories> |
| 57 | + |
43 | 58 | <build> |
44 | | - <pluginManagement> |
45 | | - <plugins> |
46 | | - <plugin> |
47 | | - <groupId>org.apache.maven.plugins</groupId> |
48 | | - <artifactId>maven-compiler-plugin</artifactId> |
49 | | - <version>3.11.0</version> |
50 | | - <configuration> |
51 | | - <!-- Configure to compile with a recent JDK while targeting JDK 8 --> |
52 | | - <release>8</release> |
53 | | - </configuration> |
54 | | - </plugin> |
55 | | - </plugins> |
56 | | - </pluginManagement> |
57 | 59 | <plugins> |
| 60 | + <!-- release management --> |
58 | 61 | <plugin> |
59 | 62 | <groupId>org.apache.maven.plugins</groupId> |
60 | | - <artifactId>maven-enforcer-plugin</artifactId> |
61 | | - <version>1.4.1</version> |
62 | | - <executions> |
63 | | - <execution> |
64 | | - <id>enforce-maven</id> |
65 | | - <goals> |
66 | | - <goal>enforce</goal> |
67 | | - </goals> |
68 | | - <configuration> |
69 | | - <rules> |
70 | | - <requireMavenVersion> |
71 | | - <!-- enforce at least mvn version 3.0.3 --> |
72 | | - <version>[3.0.3,)</version> |
73 | | - </requireMavenVersion> |
74 | | - </rules> |
75 | | - </configuration> |
76 | | - </execution> |
77 | | - </executions> |
78 | | - <inherited>false</inherited> |
| 63 | + <artifactId>maven-release-plugin</artifactId> |
| 64 | + <version>3.0.1</version> |
| 65 | + <configuration> |
| 66 | + <autoVersionSubmodules>true</autoVersionSubmodules> |
| 67 | + <useReleaseProfile>false</useReleaseProfile> |
| 68 | + <releaseProfiles>release</releaseProfiles> |
| 69 | + <goals>deploy</goals> |
| 70 | + </configuration> |
| 71 | + </plugin> |
| 72 | + |
| 73 | + <plugin> |
| 74 | + <groupId>org.apache.maven.plugins</groupId> |
| 75 | + <artifactId>maven-site-plugin</artifactId> |
| 76 | + <version>3.12.1</version> |
| 77 | + </plugin> |
| 78 | + |
| 79 | + <plugin> |
| 80 | + <groupId>org.apache.maven.plugins</groupId> |
| 81 | + <artifactId>maven-project-info-reports-plugin</artifactId> |
| 82 | + <version>3.1.0</version> |
| 83 | + </plugin> |
| 84 | + |
| 85 | + <plugin> |
| 86 | + <groupId>org.apache.maven.plugins</groupId> |
| 87 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 88 | + <version>3.2.0</version> |
| 89 | + <configuration> |
| 90 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
| 91 | + </configuration> |
| 92 | + </plugin> |
| 93 | + |
| 94 | + <plugin> |
| 95 | + <groupId>org.apache.maven.plugins</groupId> |
| 96 | + <artifactId>maven-jxr-plugin</artifactId> |
| 97 | + <version>3.0.0</version> |
79 | 98 | </plugin> |
80 | 99 | </plugins> |
81 | 100 | </build> |
82 | | - <distributionManagement> |
83 | | - <repository> |
84 | | - <id>central</id> |
85 | | - <url>https://central.sonatype.com</url> |
86 | | - <releases> |
87 | | - <enabled>true</enabled> |
88 | | - </releases> |
89 | | - <snapshots> |
90 | | - <enabled>false</enabled> |
91 | | - </snapshots> |
92 | | - </repository> |
93 | | - </distributionManagement> |
| 101 | + |
| 102 | + <reporting> |
| 103 | + <plugins> |
| 104 | + <!-- java doc --> |
| 105 | + <plugin> |
| 106 | + <groupId>org.apache.maven.plugins</groupId> |
| 107 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 108 | + <version>3.2.0</version> |
| 109 | + <configuration> |
| 110 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
| 111 | + </configuration> |
| 112 | + </plugin> |
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.maven.plugins</groupId> |
| 115 | + <artifactId>maven-jxr-plugin</artifactId> |
| 116 | + <version>3.0.0</version> |
| 117 | + </plugin> |
| 118 | + </plugins> |
| 119 | + </reporting> |
94 | 120 | <properties> |
95 | 121 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
96 | 122 | <postgresql.version>42.7.3</postgresql.version> |
97 | 123 | <junit.version>4.13.1</junit.version> |
98 | 124 | </properties> |
99 | 125 | <profiles> |
| 126 | + |
| 127 | + <!-- Profile for Releases --> |
100 | 128 | <profile> |
101 | 129 | <id>release</id> |
102 | 130 | <build> |
103 | 131 | <plugins> |
104 | | - <plugin> |
105 | | - <groupId>org.apache.maven.plugins</groupId> |
106 | | - <artifactId>maven-gpg-plugin</artifactId> |
107 | | - <version>1.6</version> |
108 | | - <executions> |
109 | | - <execution> |
110 | | - <id>sign-artifacts</id> |
111 | | - <phase>verify</phase> |
112 | | - <goals> |
113 | | - <goal>sign</goal> |
114 | | - </goals> |
115 | | - </execution> |
116 | | - </executions> |
117 | | - </plugin> |
118 | | - <plugin> |
119 | | - <groupId>org.apache.maven.plugins</groupId> |
120 | | - <artifactId>maven-deploy-plugin</artifactId> |
121 | | - <version>3.1.2</version> |
122 | | - <configuration> |
123 | | - <skip>true</skip> |
124 | | - </configuration> |
125 | | - </plugin> |
| 132 | + <!-- for RELEASES: Central Publishing Plugin --> |
126 | 133 | <plugin> |
127 | 134 | <groupId>org.sonatype.central</groupId> |
128 | 135 | <artifactId>central-publishing-maven-plugin</artifactId> |
|
134 | 141 | <waitUntil>published</waitUntil> |
135 | 142 | </configuration> |
136 | 143 | </plugin> |
137 | | - </plugins> |
138 | | - <pluginManagement> |
139 | | - <plugins> |
140 | | - <plugin> |
141 | | - <groupId>org.apache.maven.plugins</groupId> |
142 | | - <artifactId>maven-release-plugin</artifactId> |
143 | | - <version>2.5.3</version> |
144 | | - <configuration> |
145 | | - <mavenExecutorId>forked-path</mavenExecutorId> |
146 | | - <useReleaseProfile>false</useReleaseProfile> |
147 | | - <arguments>${arguments} -Psonatype-oss-release</arguments> |
148 | | - </configuration> |
149 | | - </plugin> |
150 | | - </plugins> |
151 | | - </pluginManagement> |
152 | | - </build> |
153 | | - </profile> |
154 | | - <profile> |
155 | | - <id>docs-and-source</id> |
156 | | - <build> |
157 | | - <plugins> |
| 144 | + |
| 145 | + <!-- Source Plugin --> |
158 | 146 | <plugin> |
159 | 147 | <groupId>org.apache.maven.plugins</groupId> |
160 | 148 | <artifactId>maven-source-plugin</artifactId> |
|
168 | 156 | </execution> |
169 | 157 | </executions> |
170 | 158 | </plugin> |
| 159 | + |
| 160 | + <!-- Javadoc Plugin --> |
171 | 161 | <plugin> |
172 | 162 | <groupId>org.apache.maven.plugins</groupId> |
173 | 163 | <artifactId>maven-javadoc-plugin</artifactId> |
174 | 164 | <version>3.2.0</version> |
175 | 165 | <configuration> |
176 | | - <source>8</source> |
| 166 | + <additionalOptions>-Xdoclint:none</additionalOptions> |
177 | 167 | </configuration> |
178 | 168 | <executions> |
179 | 169 | <execution> |
|
184 | 174 | </execution> |
185 | 175 | </executions> |
186 | 176 | </plugin> |
| 177 | + |
| 178 | + <!-- GPG Signing Plugin --> |
| 179 | + <plugin> |
| 180 | + <groupId>org.apache.maven.plugins</groupId> |
| 181 | + <artifactId>maven-gpg-plugin</artifactId> |
| 182 | + <version>3.1.0</version> |
| 183 | + <executions> |
| 184 | + <execution> |
| 185 | + <id>sign-artifacts</id> |
| 186 | + <phase>verify</phase> |
| 187 | + <goals> |
| 188 | + <goal>sign</goal> |
| 189 | + </goals> |
| 190 | + </execution> |
| 191 | + </executions> |
| 192 | + </plugin> |
187 | 193 | </plugins> |
188 | 194 | </build> |
189 | 195 | </profile> |
190 | 196 | </profiles> |
| 197 | + |
| 198 | + <distributionManagement> |
| 199 | + <snapshotRepository> |
| 200 | + <id>central</id> |
| 201 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
| 202 | + </snapshotRepository> |
| 203 | + <repository> |
| 204 | + <id>central</id> |
| 205 | + <url>https://central.sonatype.com</url> |
| 206 | + </repository> |
| 207 | + </distributionManagement> |
| 208 | + |
191 | 209 | <dependencies> |
192 | 210 | <dependency> |
193 | 211 | <groupId>org.postgresql</groupId> |
|
0 commit comments