Skip to content

Commit 392f4c8

Browse files
committed
Revert to 2.2.0-SNAPSHOT to fix jersey2 prefix bug
1 parent 8591528 commit 392f4c8

File tree

33 files changed

+188
-30
lines changed

33 files changed

+188
-30
lines changed

cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.seedstack.seed</groupId>
1616
<artifactId>seed</artifactId>
17-
<version>2.2.1-SNAPSHOT</version>
17+
<version>2.2.0-SNAPSHOT</version>
1818
</parent>
1919

2020
<artifactId>seed-cli</artifactId>

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.seedstack.seed</groupId>
1616
<artifactId>seed</artifactId>
17-
<version>2.2.1-SNAPSHOT</version>
17+
<version>2.2.0-SNAPSHOT</version>
1818
</parent>
1919

2020
<artifactId>seed-core</artifactId>

crypto/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>org.seedstack.seed</groupId>
1717
<artifactId>seed</artifactId>
18-
<version>2.2.1-SNAPSHOT</version>
18+
<version>2.2.0-SNAPSHOT</version>
1919
</parent>
2020

2121
<artifactId>seed-crypto</artifactId>

el/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>org.seedstack.seed</groupId>
1717
<artifactId>seed</artifactId>
18-
<version>2.2.1-SNAPSHOT</version>
18+
<version>2.2.0-SNAPSHOT</version>
1919
</parent>
2020

2121
<artifactId>seed-el</artifactId>

metrics/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.seedstack.seed</groupId>
1616
<artifactId>seed</artifactId>
17-
<version>2.2.1-SNAPSHOT</version>
17+
<version>2.2.0-SNAPSHOT</version>
1818
</parent>
1919

2020
<artifactId>seed-metrics</artifactId>

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<groupId>org.seedstack.seed</groupId>
2121
<artifactId>seed</artifactId>
22-
<version>2.2.1-SNAPSHOT</version>
22+
<version>2.2.0-SNAPSHOT</version>
2323
<packaging>pom</packaging>
2424

2525
<properties>
@@ -35,6 +35,7 @@
3535
<metrics.version>3.1.0</metrics.version>
3636
<jersey.version>1.19</jersey.version>
3737
<jersey2.version>2.22.1</jersey2.version>
38+
<javax.ws.rs-api.version>2.0.1</javax.ws.rs-api.version>
3839

3940
<compatibility.version>2.1.0</compatibility.version>
4041

rest/core/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.seedstack.seed</groupId>
1616
<artifactId>seed-rest</artifactId>
17-
<version>2.2.1-SNAPSHOT</version>
17+
<version>2.2.0-SNAPSHOT</version>
1818
</parent>
1919

2020
<artifactId>seed-rest-core</artifactId>
@@ -44,8 +44,8 @@
4444
<!-- PROVIDED -->
4545
<dependency>
4646
<groupId>javax.ws.rs</groupId>
47-
<artifactId>jsr311-api</artifactId>
48-
<version>${jsr311-api.version}</version>
47+
<artifactId>javax.ws.rs-api</artifactId>
48+
<version>${javax.ws.rs-api.version}</version>
4949
<scope>provided</scope>
5050
</dependency>
5151
<dependency>

rest/jersey1/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.seedstack.seed</groupId>
1616
<artifactId>seed-rest</artifactId>
17-
<version>2.2.1-SNAPSHOT</version>
17+
<version>2.2.0-SNAPSHOT</version>
1818
</parent>
1919

2020
<artifactId>seed-rest-jersey1</artifactId>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*/
8+
package org.seedstack.seed.rest;
9+
10+
import org.jboss.arquillian.container.test.api.Deployment;
11+
import org.jboss.arquillian.container.test.api.RunAsClient;
12+
import org.jboss.arquillian.test.api.ArquillianResource;
13+
import org.jboss.shrinkwrap.api.ShrinkWrap;
14+
import org.jboss.shrinkwrap.api.spec.WebArchive;
15+
import org.json.JSONException;
16+
import org.junit.Test;
17+
import org.seedstack.seed.it.AbstractSeedWebIT;
18+
19+
import javax.ws.rs.core.MediaType;
20+
import java.net.URL;
21+
22+
import static com.jayway.restassured.RestAssured.expect;
23+
24+
public class Jersey1WithPrefixIT extends AbstractSeedWebIT {
25+
26+
@ArquillianResource
27+
private URL baseURL;
28+
29+
@Deployment
30+
public static WebArchive createDeployment() {
31+
return ShrinkWrap
32+
.create(WebArchive.class)
33+
.addAsResource("with-prefix.props", "META-INF/configuration/with-prefix.props");
34+
}
35+
36+
@RunAsClient
37+
@Test
38+
public void rest_prefix_is_honored() throws JSONException {
39+
expect().statusCode(200).given().contentType(MediaType.APPLICATION_JSON).get(baseURL.toString() + "rest/hello");
40+
}
41+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org>
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7+
*/
8+
package org.seedstack.seed.rest.fixtures;
9+
10+
import javax.ws.rs.GET;
11+
import javax.ws.rs.Path;
12+
13+
@Path("/hello")
14+
public class HelloResource {
15+
@GET
16+
public String hello() {
17+
return "hello";
18+
}
19+
}

0 commit comments

Comments
 (0)