Skip to content

Commit dab84f0

Browse files
committed
Moved dependencies and plugins to dependencyManagement / pluginManagement
Signed-off-by: Victor Toni <[email protected]>
1 parent 5b889a4 commit dab84f0

File tree

1 file changed

+96
-69
lines changed

1 file changed

+96
-69
lines changed

‎pom.xml‎

Lines changed: 96 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,109 @@
4040
<url>https://github.com/TooTallNate/Java-WebSocket/issues</url>
4141
<system>GitHub Issues</system>
4242
</issueManagement>
43+
<dependencyManagement>
44+
<dependencies>
45+
<dependency>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-api</artifactId>
48+
<version>${slf4j.version}</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.slf4j</groupId>
52+
<artifactId>slf4j-simple</artifactId>
53+
<version>${slf4j.version}</version>
54+
<scope>test</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>junit</groupId>
58+
<artifactId>junit</artifactId>
59+
<version>${junit.version}</version>
60+
<scope>test</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>org.json</groupId>
64+
<artifactId>json</artifactId>
65+
<version>${org.json.version}</version>
66+
<scope>test</scope>
67+
</dependency>
68+
</dependencies>
69+
</dependencyManagement>
4370
<build>
71+
<!-- configured plugins -->
72+
<pluginManagement>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-compiler-plugin</artifactId>
77+
<version>${maven.compiler.plugin.version}</version>
78+
<configuration>
79+
<source>1.6</source>
80+
<target>1.6</target>
81+
</configuration>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-gpg-plugin</artifactId>
86+
<version>${maven.gpg.plugin.version}</version>
87+
<executions>
88+
<execution>
89+
<id>sign-artifacts</id>
90+
<phase>verify</phase>
91+
<goals>
92+
<goal>sign</goal>
93+
</goals>
94+
</execution>
95+
</executions>
96+
</plugin>
97+
<plugin>
98+
<groupId>org.apache.maven.plugins</groupId>
99+
<artifactId>maven-jar-plugin</artifactId>
100+
<version>${maven.jar.plugin.version}</version>
101+
</plugin>
102+
<plugin>
103+
<groupId>org.apache.maven.plugins</groupId>
104+
<artifactId>maven-javadoc-plugin</artifactId>
105+
<version>${maven.javadoc.plugin.version}</version>
106+
<executions>
107+
<execution>
108+
<id>attach-javadocs</id>
109+
<goals>
110+
<goal>jar</goal>
111+
</goals>
112+
</execution>
113+
</executions>
114+
</plugin>
115+
<plugin>
116+
<groupId>org.apache.maven.plugins</groupId>
117+
<artifactId>maven-shade-plugin</artifactId>
118+
<version>${maven.shade.plugin.version}</version>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-source-plugin</artifactId>
123+
<version>${maven.source.plugin.version}</version>
124+
<executions>
125+
<execution>
126+
<id>attach-sources</id>
127+
<goals>
128+
<goal>jar-no-fork</goal>
129+
</goals>
130+
</execution>
131+
</executions>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.sonatype.plugins</groupId>
135+
<artifactId>nexus-staging-maven-plugin</artifactId>
136+
<version>${nexus.staging.maven.plugin.version}</version>
137+
</plugin>
138+
</plugins>
139+
</pluginManagement>
44140
<sourceDirectory>src/main/java</sourceDirectory>
45141
<testSourceDirectory>src/test/java</testSourceDirectory>
46142
<plugins>
47143
<plugin>
48144
<groupId>org.apache.maven.plugins</groupId>
49145
<artifactId>maven-compiler-plugin</artifactId>
50-
<version>${maven.compiler.plugin.version}</version>
51-
<configuration>
52-
<source>1.6</source>
53-
<target>1.6</target>
54-
</configuration>
55146
</plugin>
56147
</plugins>
57148
</build>
@@ -69,21 +160,10 @@
69160
<plugin>
70161
<groupId>org.apache.maven.plugins</groupId>
71162
<artifactId>maven-gpg-plugin</artifactId>
72-
<version>${maven.gpg.plugin.version}</version>
73-
<executions>
74-
<execution>
75-
<id>sign-artifacts</id>
76-
<phase>verify</phase>
77-
<goals>
78-
<goal>sign</goal>
79-
</goals>
80-
</execution>
81-
</executions>
82163
</plugin>
83164
<plugin>
84165
<groupId>org.sonatype.plugins</groupId>
85166
<artifactId>nexus-staging-maven-plugin</artifactId>
86-
<version>${nexus.staging.maven.plugin.version}</version>
87167
<extensions>true</extensions>
88168
<configuration>
89169
<serverId>ossrh</serverId>
@@ -93,28 +173,10 @@
93173
<plugin>
94174
<groupId>org.apache.maven.plugins</groupId>
95175
<artifactId>maven-source-plugin</artifactId>
96-
<version>${maven.source.plugin.version}</version>
97-
<executions>
98-
<execution>
99-
<id>attach-sources</id>
100-
<goals>
101-
<goal>jar-no-fork</goal>
102-
</goals>
103-
</execution>
104-
</executions>
105176
</plugin>
106177
<plugin>
107178
<groupId>org.apache.maven.plugins</groupId>
108179
<artifactId>maven-javadoc-plugin</artifactId>
109-
<version>${maven.javadoc.plugin.version}</version>
110-
<executions>
111-
<execution>
112-
<id>attach-javadocs</id>
113-
<goals>
114-
<goal>jar</goal>
115-
</goals>
116-
</execution>
117-
</executions>
118180
</plugin>
119181
</plugins>
120182
</build>
@@ -128,15 +190,13 @@
128190
<dependency>
129191
<groupId>org.slf4j</groupId>
130192
<artifactId>slf4j-simple</artifactId>
131-
<version>${slf4j.version}</version>
132193
</dependency>
133194
</dependencies>
134195
<build>
135196
<plugins>
136197
<plugin>
137198
<groupId>org.apache.maven.plugins</groupId>
138199
<artifactId>maven-shade-plugin</artifactId>
139-
<version>${maven.shade.plugin.version}</version>
140200
<executions>
141201
<execution>
142202
<phase>package</phase>
@@ -160,20 +220,10 @@
160220
<plugin>
161221
<groupId>org.apache.maven.plugins</groupId>
162222
<artifactId>maven-source-plugin</artifactId>
163-
<version>${maven.source.plugin.version}</version>
164-
<executions>
165-
<execution>
166-
<id>attach-sources</id>
167-
<goals>
168-
<goal>jar-no-fork</goal>
169-
</goals>
170-
</execution>
171-
</executions>
172223
</plugin>
173224
<plugin>
174225
<groupId>org.apache.maven.plugins</groupId>
175226
<artifactId>maven-jar-plugin</artifactId>
176-
<version>${maven.jar.plugin.version}</version>
177227
<executions>
178228
<execution>
179229
<goals>
@@ -185,29 +235,10 @@
185235
<plugin>
186236
<groupId>org.apache.maven.plugins</groupId>
187237
<artifactId>maven-javadoc-plugin</artifactId>
188-
<version>${maven.javadoc.plugin.version}</version>
189-
<executions>
190-
<execution>
191-
<id>attach-javadocs</id>
192-
<goals>
193-
<goal>jar</goal>
194-
</goals>
195-
</execution>
196-
</executions>
197238
</plugin>
198239
<plugin>
199240
<groupId>org.apache.maven.plugins</groupId>
200241
<artifactId>maven-gpg-plugin</artifactId>
201-
<version>${maven.gpg.plugin.version}</version>
202-
<executions>
203-
<execution>
204-
<id>sign-artifacts</id>
205-
<phase>verify</phase>
206-
<goals>
207-
<goal>sign</goal>
208-
</goals>
209-
</execution>
210-
</executions>
211242
</plugin>
212243
</plugins>
213244
</build>
@@ -227,24 +258,20 @@
227258
<dependency>
228259
<groupId>org.slf4j</groupId>
229260
<artifactId>slf4j-api</artifactId>
230-
<version>${slf4j.version}</version>
231261
</dependency>
232262
<dependency>
233263
<groupId>org.slf4j</groupId>
234264
<artifactId>slf4j-simple</artifactId>
235-
<version>${slf4j.version}</version>
236265
<scope>test</scope>
237266
</dependency>
238267
<dependency>
239268
<groupId>junit</groupId>
240269
<artifactId>junit</artifactId>
241-
<version>${junit.version}</version>
242270
<scope>test</scope>
243271
</dependency>
244272
<dependency>
245273
<groupId>org.json</groupId>
246274
<artifactId>json</artifactId>
247-
<version>${org.json.version}</version>
248275
<scope>test</scope>
249276
</dependency>
250277
</dependencies>

0 commit comments

Comments
(0)