Skip to content

Commit ca8751e

Browse files
committed
Simplifying demo
1 parent 1e11a68 commit ca8751e

File tree

7 files changed

+26
-3
lines changed

7 files changed

+26
-3
lines changed

creekconsumer/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<scope>test</scope>
5656
<classifier>test-binder</classifier>
5757
<type>test-jar</type>
58+
<version>4.0.0-SNAPSHOT</version>
5859
</dependency>
5960
</dependencies>
6061
<dependencyManagement>

creekconsumer/src/main/java/io/spring/creekconsumer/ConsumerApplication.java renamed to creekconsumer/src/main/java/io/spring/creekconsumer/ConsumerConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
@SpringBootApplication
2121
@EnableConfigurationProperties(ConsumerProperties.class)
22-
public class ConsumerApplication {
22+
public class ConsumerConfiguration {
2323

2424
public static void main(String[] args) {
25-
new SpringApplicationBuilder(ConsumerApplication.class).web(WebApplicationType.NONE).run(args);
25+
new SpringApplicationBuilder(ConsumerConfiguration.class).web(WebApplicationType.NONE).run(args);
2626
}
2727

2828
@Bean

creekconsumer/src/main/resources/application.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,18 @@ spring:
1111
destination: creek-data
1212
group: log
1313

14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
server:
28+
port: 0

creekmeasurementrepositoryconsumer/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
<scope>test</scope>
6767
<classifier>test-binder</classifier>
6868
<type>test-jar</type>
69+
<version>4.0.0-SNAPSHOT</version>
6970
</dependency>
7071
<dependency>
7172
<groupId>com.h2database</groupId>

creekmeasurementrepositoryconsumer/src/main/resources/application.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ spring:
1313
sql:
1414
init:
1515
mode: always
16+
server:
17+
port: 0
18+

creekproducer/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<scope>test</scope>
5151
<classifier>test-binder</classifier>
5252
<type>test-jar</type>
53+
<version>4.0.0-SNAPSHOT</version>
5354
</dependency>
5455
</dependencies>
5556
<dependencyManagement>

creekproducer/src/main/resources/application.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ spring:
1111
bindings:
1212
output:
1313
destination: usgs-data
14-
group: foo
14+
group: foo
15+
server:
16+
port: 0

0 commit comments

Comments
 (0)