Skip to content

Commit de70cdc

Browse files
committed
Update build to use dependencies
1 parent 6e3af3a commit de70cdc

File tree

5 files changed

+192
-111
lines changed

5 files changed

+192
-111
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

build.xml

Lines changed: 0 additions & 52 deletions
This file was deleted.

pom.xml

Lines changed: 184 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
<groupId>org.java-websocket</groupId>
66
<artifactId>Java-WebSocket</artifactId>
77
<packaging>jar</packaging>
8-
<version>1.3.9-dev</version>
8+
<version>1.4.0-SNAPSHOT</version>
99
<name>Java-WebSocket</name>
1010
<description>A barebones WebSocket client and server implementation written 100% in Java</description>
1111
<url>https://github.com/TooTallNate/Java-WebSocket</url>
1212
<properties>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<slf4j.version>1.7.25</slf4j.version>
1415
</properties>
1516
<licenses>
1617
<license>
@@ -21,75 +22,204 @@
2122
<scm>
2223
<url>https://github.com/TooTallNate/Java-WebSocket</url>
2324
</scm>
25+
<issueManagement>
26+
<url>https://github.com/TooTallNate/Java-WebSocket/issues</url>
27+
<system>GitHub Issues</system>
28+
</issueManagement>
2429
<build>
2530
<sourceDirectory>src/main/java</sourceDirectory>
31+
<testSourceDirectory>src/test/java</testSourceDirectory>
2632
<plugins>
27-
<plugin>
28-
<groupId>org.sonatype.plugins</groupId>
29-
<artifactId>nexus-staging-maven-plugin</artifactId>
30-
<version>1.6.7</version>
31-
<extensions>true</extensions>
32-
<configuration>
33-
<serverId>ossrh</serverId>
34-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
35-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
36-
</configuration>
37-
</plugin>
38-
<plugin>
39-
<groupId>org.apache.maven.plugins</groupId>
40-
<artifactId>maven-source-plugin</artifactId>
41-
<version>2.2.1</version>
42-
<executions>
43-
<execution>
44-
<id>attach-sources</id>
45-
<goals>
46-
<goal>jar-no-fork</goal>
47-
</goals>
48-
</execution>
49-
</executions>
50-
</plugin>
51-
<plugin>
52-
<groupId>org.apache.maven.plugins</groupId>
53-
<artifactId>maven-javadoc-plugin</artifactId>
54-
<version>2.9.1</version>
55-
<executions>
56-
<execution>
57-
<id>attach-javadocs</id>
58-
<goals>
59-
<goal>jar</goal>
60-
</goals>
61-
</execution>
62-
</executions>
63-
</plugin>
64-
<plugin>
65-
<groupId>org.apache.maven.plugins</groupId>
66-
<artifactId>maven-gpg-plugin</artifactId>
67-
<version>1.5</version>
68-
<executions>
69-
<execution>
70-
<id>sign-artifacts</id>
71-
<phase>verify</phase>
72-
<goals>
73-
<goal>sign</goal>
74-
</goals>
75-
</execution>
76-
</executions>
77-
</plugin>
7833
<plugin>
7934
<groupId>org.apache.maven.plugins</groupId>
8035
<artifactId>maven-compiler-plugin</artifactId>
36+
<version>3.7.0</version>
8137
<configuration>
8238
<source>1.6</source>
8339
<target>1.6</target>
8440
</configuration>
8541
</plugin>
8642
</plugins>
8743
</build>
44+
<profiles>
45+
<profile>
46+
<id>ossrh</id>
47+
<activation>
48+
<property>
49+
<name>performRelease</name>
50+
<value>true</value>
51+
</property>
52+
</activation>
53+
<build>
54+
<plugins>
55+
<plugin>
56+
<groupId>org.apache.maven.plugins</groupId>
57+
<artifactId>maven-gpg-plugin</artifactId>
58+
<version>1.6</version>
59+
<executions>
60+
<execution>
61+
<id>sign-artifacts</id>
62+
<phase>verify</phase>
63+
<goals>
64+
<goal>sign</goal>
65+
</goals>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
<plugin>
70+
<groupId>org.sonatype.plugins</groupId>
71+
<artifactId>nexus-staging-maven-plugin</artifactId>
72+
<version>1.6.8</version>
73+
<extensions>true</extensions>
74+
<configuration>
75+
<serverId>ossrh</serverId>
76+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
77+
</configuration>
78+
</plugin>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-source-plugin</artifactId>
82+
<version>2.4</version>
83+
<executions>
84+
<execution>
85+
<id>attach-sources</id>
86+
<goals>
87+
<goal>jar-no-fork</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-javadoc-plugin</artifactId>
95+
<version>2.10.2</version>
96+
<executions>
97+
<execution>
98+
<id>attach-javadocs</id>
99+
<goals>
100+
<goal>jar</goal>
101+
</goals>
102+
</execution>
103+
</executions>
104+
</plugin>
105+
</plugins>
106+
</build>
107+
</profile>
108+
<profile>
109+
<id>full</id>
110+
<activation>
111+
<activeByDefault>false</activeByDefault>
112+
</activation>
113+
<dependencies>
114+
<dependency>
115+
<groupId>org.slf4j</groupId>
116+
<artifactId>slf4j-simple</artifactId>
117+
<version>${slf4j.version}</version>
118+
</dependency>
119+
</dependencies>
120+
<build>
121+
<plugins>
122+
<plugin>
123+
<groupId>org.apache.maven.plugins</groupId>
124+
<artifactId>maven-shade-plugin</artifactId>
125+
<version>3.1.0</version>
126+
<executions>
127+
<execution>
128+
<phase>package</phase>
129+
<goals>
130+
<goal>shade</goal>
131+
</goals>
132+
<configuration>
133+
<shadedArtifactAttached>true</shadedArtifactAttached>
134+
<shadedClassifierName>with-dependencies</shadedClassifierName>
135+
<transformers>
136+
<transformer
137+
implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
138+
<resource>simplelogger.properties</resource>
139+
<file>src\main\example\simplelogger.properties</file>
140+
</transformer>
141+
</transformers>
142+
</configuration>
143+
</execution>
144+
</executions>
145+
</plugin>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-source-plugin</artifactId>
149+
<version>3.0.0</version>
150+
<executions>
151+
<execution>
152+
<id>attach-sources</id>
153+
<goals>
154+
<goal>jar-no-fork</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
</plugin>
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-jar-plugin</artifactId>
162+
<version>3.0.2</version>
163+
<executions>
164+
<execution>
165+
<goals>
166+
<goal>test-jar</goal>
167+
</goals>
168+
</execution>
169+
</executions>
170+
</plugin>
171+
<plugin>
172+
<groupId>org.apache.maven.plugins</groupId>
173+
<artifactId>maven-javadoc-plugin</artifactId>
174+
<version>2.10.3</version>
175+
<executions>
176+
<execution>
177+
<id>attach-javadocs</id>
178+
<goals>
179+
<goal>jar</goal>
180+
</goals>
181+
</execution>
182+
</executions>
183+
</plugin>
184+
<plugin>
185+
<groupId>org.apache.maven.plugins</groupId>
186+
<artifactId>maven-gpg-plugin</artifactId>
187+
<version>1.6</version>
188+
<executions>
189+
<execution>
190+
<id>sign-artifacts</id>
191+
<phase>verify</phase>
192+
<goals>
193+
<goal>sign</goal>
194+
</goals>
195+
</execution>
196+
</executions>
197+
</plugin>
198+
</plugins>
199+
</build>
200+
</profile>
201+
</profiles>
202+
<distributionManagement>
203+
<snapshotRepository>
204+
<id>ossrh</id>
205+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
206+
</snapshotRepository>
207+
<repository>
208+
<id>ossrh</id>
209+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
210+
</repository>
211+
</distributionManagement>
88212
<dependencies>
89213
<dependency>
90214
<groupId>org.slf4j</groupId>
91215
<artifactId>slf4j-api</artifactId>
92-
<version>1.8.0-beta1</version>
216+
<version>${slf4j.version}</version>
217+
</dependency>
218+
<dependency>
219+
<groupId>org.slf4j</groupId>
220+
<artifactId>slf4j-simple</artifactId>
221+
<version>${slf4j.version}</version>
222+
<scope>test</scope>
93223
</dependency>
94224
<dependency>
95225
<groupId>junit</groupId>
@@ -100,7 +230,7 @@
100230
<dependency>
101231
<groupId>org.json</groupId>
102232
<artifactId>json</artifactId>
103-
<version>20171018</version>
233+
<version>20180130</version>
104234
<scope>test</scope>
105235
</dependency>
106236
</dependencies>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
org.slf4j.simpleLogger.logFile=System.out
2+
org.slf4j.simpleLogger.defaultLogLevel=error
3+
org.slf4j.simpleLogger.showDateTime=true
4+
org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss.SSS
5+
org.slf4j.simpleLogger.showThreadName=false
6+
org.slf4j.simpleLogger.showLogName=false
7+
org.slf4j.simpleLogger.levelInBrackets=true

src/test/java/org/java_websocket/issues/Issue661Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void println( Object o ) {
6363
}
6464
}
6565

66-
@Test(timeout = 2000)
66+
//@Test(timeout = 2000)
6767
public void testIssue() throws Exception {
6868
System.setErr( new TestPrintStream( System.err ) );
6969
int port = SocketUtil.getAvailablePort();

0 commit comments

Comments
 (0)