Skip to content

Commit 8653eb8

Browse files
iluwatar#297 Move API Gateway code into a new submodule: api-gateway-service. Change api-gateway packaging type to "pom". Update price-microservice and image-microservice to be true submodules of api-gateway
1 parent a6036e5 commit 8653eb8

File tree

14 files changed

+106
-65
lines changed

14 files changed

+106
-65
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
The MIT License
5+
Copyright (c) 2014 Ilkka Seppälä
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.
24+
25+
-->
26+
<project xmlns="http://maven.apache.org/POM/4.0.0"
27+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
28+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
29+
<parent>
30+
<artifactId>api-gateway</artifactId>
31+
<groupId>com.iluwatar</groupId>
32+
<version>1.12.0-SNAPSHOT</version>
33+
</parent>
34+
<modelVersion>4.0.0</modelVersion>
35+
<artifactId>api-gateway-service</artifactId>
36+
<packaging>jar</packaging>
37+
38+
<properties>
39+
<spring.version>4.2.5.RELEASE</spring.version>
40+
<spring-boot.version>1.3.3.RELEASE</spring-boot.version>
41+
</properties>
42+
43+
<dependencyManagement>
44+
<dependencies>
45+
<dependency>
46+
<groupId>org.springframework.boot</groupId>
47+
<artifactId>spring-boot-dependencies</artifactId>
48+
<version>${spring-boot.version}</version>
49+
<type>pom</type>
50+
<scope>import</scope>
51+
</dependency>
52+
</dependencies>
53+
</dependencyManagement>
54+
<dependencies>
55+
<dependency>
56+
<groupId>org.springframework</groupId>
57+
<artifactId>spring-webmvc</artifactId>
58+
<version>${spring.version}</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.springframework.boot</groupId>
62+
<artifactId>spring-boot-starter-web</artifactId>
63+
<version>${spring-boot.version}</version>
64+
</dependency>
65+
<dependency>
66+
<groupId>junit</groupId>
67+
<artifactId>junit</artifactId>
68+
<scope>test</scope>
69+
</dependency>
70+
<dependency>
71+
<groupId>org.mockito</groupId>
72+
<artifactId>mockito-core</artifactId>
73+
<scope>test</scope>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.apache.httpcomponents</groupId>
77+
<artifactId>httpclient</artifactId>
78+
<version>4.5.2</version>
79+
</dependency>
80+
</dependencies>
81+
82+
<build>
83+
<plugins>
84+
<plugin>
85+
<groupId>org.springframework.boot</groupId>
86+
<artifactId>spring-boot-maven-plugin</artifactId>
87+
<version>${spring-boot.version}</version>
88+
<executions>
89+
<execution>
90+
<goals>
91+
<goal>repackage</goal>
92+
</goals>
93+
</execution>
94+
</executions>
95+
</plugin>
96+
</plugins>
97+
</build>
98+
</project>

api-gateway/src/main/java/com/iluwatar/api/gateway/ApiGateway.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/ApiGateway.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/App.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/App.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/DesktopProduct.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/DesktopProduct.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/ImageClient.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/ImageClient.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/ImageClientImpl.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/ImageClientImpl.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/MobileProduct.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/MobileProduct.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/PriceClient.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/PriceClient.java

File renamed without changes.

api-gateway/src/main/java/com/iluwatar/api/gateway/PriceClientImpl.java renamed to api-gateway/api-gateway-service/src/main/java/com/iluwatar/api/gateway/PriceClientImpl.java

File renamed without changes.

api-gateway/src/main/resources/application.properties renamed to api-gateway/api-gateway-service/src/main/resources/application.properties

File renamed without changes.

0 commit comments

Comments
 (0)