Skip to content

Commit b6c2d00

Browse files
committed
GH-1455 - Cleanup configuration metadata creation.
Removed obsolete dependency declarations of the configuration processor as it's registered as APT already. Explicitly exclude APT for modules declaring a manually maintained spring-configuration-metadata.json.
1 parent 2bd9238 commit b6c2d00

File tree

7 files changed

+53
-35
lines changed

7 files changed

+53
-35
lines changed

spring-modulith-apt/pom.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
3030
<groupId>org.springframework.boot</groupId>
3131
<artifactId>spring-boot</artifactId>
3232
</dependency>
33-
34-
<dependency>
35-
<groupId>org.springframework.boot</groupId>
36-
<artifactId>spring-boot-configuration-processor</artifactId>
37-
</dependency>
3833

3934
<dependency>
4035
<groupId>org.springframework.modulith</groupId>

spring-modulith-events/spring-modulith-events-core/pom.xml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
<groupId>org.springframework.boot</groupId>
4949
<artifactId>spring-boot-autoconfigure</artifactId>
5050
</dependency>
51-
52-
<dependency>
53-
<groupId>org.springframework.boot</groupId>
54-
<artifactId>spring-boot-configuration-processor</artifactId>
55-
<optional>true</optional>
56-
</dependency>
5751

5852
<!-- Test -->
5953

@@ -94,4 +88,26 @@
9488
</dependency>
9589

9690
</dependencies>
91+
92+
<build>
93+
94+
<plugins>
95+
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-compiler-plugin</artifactId>
99+
<configuration>
100+
<annotationProcessorPaths>
101+
<path>
102+
<groupId>org.projectlombok</groupId>
103+
<artifactId>lombok</artifactId>
104+
</path>
105+
</annotationProcessorPaths>
106+
</configuration>
107+
</plugin>
108+
109+
</plugins>
110+
111+
</build>
112+
97113
</project>

spring-modulith-events/spring-modulith-events-core/src/main/resources/META-INF/spring-configuration-metadata.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
"groups": [
3+
{
4+
"name": "spring.modulith.events.staleness",
5+
"type": "org.springframework.modulith.events.config.StalenessProperties",
6+
"sourceType": "org.springframework.modulith.events.config.StalenessProperties"
7+
}
8+
],
29
"properties": [
310
{
411
"name": "spring.modulith.default-async-termination",
@@ -34,6 +41,30 @@
3441
"type": "java.lang.Boolean",
3542
"description": "Whether to republish outstanding event publications on restarts of the application.",
3643
"defaultValue": "false"
44+
},
45+
{
46+
"name": "spring.modulith.events.staleness.check-intervall",
47+
"type": "java.time.Duration",
48+
"description": "Configures the {@link Duration} to check for stale event publications. Defaults to one minute.",
49+
"sourceType": "org.springframework.modulith.events.config.StalenessProperties"
50+
},
51+
{
52+
"name": "spring.modulith.events.staleness.processing",
53+
"type": "java.time.Duration",
54+
"description": "Configures after which {@link Duration} an {@link org.springframework.modulith.events.EventPublication} marked as {@value org.springframework.modulith.events.EventPublication.Status#PROCESSING} will be considered stale.",
55+
"sourceType": "org.springframework.modulith.events.config.StalenessProperties"
56+
},
57+
{
58+
"name": "spring.modulith.events.staleness.published",
59+
"type": "java.time.Duration",
60+
"description": "Configures after which {@link Duration} an {@link org.springframework.modulith.events.EventPublication} marked as {@value org.springframework.modulith.events.EventPublication.Status#PROCESSING} will be considered stale.",
61+
"sourceType": "org.springframework.modulith.events.config.StalenessProperties"
62+
},
63+
{
64+
"name": "spring.modulith.events.staleness.resubmission",
65+
"type": "java.time.Duration",
66+
"description": "Configures after which {@link Duration} an {@link org.springframework.modulith.events.EventPublication} marked as {@value org.springframework.modulith.events.EventPublication.Status#RESUBMITTED} will be considered stale.",
67+
"sourceType": "org.springframework.modulith.events.config.StalenessProperties"
3768
}
3869
]
3970
}

spring-modulith-events/spring-modulith-events-jdbc/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@
5151
<scope>runtime</scope>
5252
</dependency>
5353

54-
<dependency>
55-
<groupId>org.springframework.boot</groupId>
56-
<artifactId>spring-boot-configuration-processor</artifactId>
57-
<optional>true</optional>
58-
</dependency>
59-
6054
<!-- Testing -->
6155

6256
<dependency>

spring-modulith-examples/spring-modulith-example-full/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@
5858

5959
<!-- Infrastructure -->
6060

61-
<dependency>
62-
<groupId>org.springframework.boot</groupId>
63-
<artifactId>spring-boot-configuration-processor</artifactId>
64-
<optional>true</optional>
65-
</dependency>
66-
6761
<dependency>
6862
<groupId>org.springframework.modulith</groupId>
6963
<artifactId>spring-modulith-junit</artifactId>

spring-modulith-moments/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@
3232
<optional>true</optional>
3333
</dependency>
3434

35-
<dependency>
36-
<groupId>org.springframework.boot</groupId>
37-
<artifactId>spring-boot-configuration-processor</artifactId>
38-
<optional>true</optional>
39-
</dependency>
40-
4135
<dependency>
4236
<groupId>org.springframework.boot</groupId>
4337
<artifactId>spring-boot-starter-test</artifactId>

spring-modulith-runtime/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@
8888
<scope>test</scope>
8989
</dependency>
9090

91-
<dependency>
92-
<groupId>org.springframework.boot</groupId>
93-
<artifactId>spring-boot-configuration-processor</artifactId>
94-
<optional>true</optional>
95-
</dependency>
96-
9791
</dependencies>
9892

9993
<build>

0 commit comments

Comments
 (0)