Skip to content

Commit 713ba7f

Browse files
Add deprecation notices
1 parent 063573b commit 713ba7f

84 files changed

Lines changed: 397 additions & 35 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ It would produce following response with `application/problem+json`.
9191
status = 400,
9292
detail = "{message}: {fieldName}",
9393
extensions = {"userId", "fieldName"})
94-
public class ExampleException extends RuntimeException {
94+
@Deprecated public class ExampleException extends RuntimeException {
9595

9696
private final String userId;
9797
private final String fieldName;
@@ -122,10 +122,10 @@ It would produce following response with `application/problem+json`.
122122

123123
```java
124124
@Component
125-
public class ExampleExceptionResolver implements ProblemResolver {
125+
@Deprecated public class ExampleExceptionResolver implements ProblemResolver {
126126

127127
@Override
128-
public Class<? extends Exception> getExceptionClass() {
128+
@Deprecated public class<? extends Exception> getExceptionClass() {
129129
return ExampleException.class;
130130
}
131131

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[versions]
22
nmcp = "1.3.0"
3-
problem4j-core = "1.2.5"
4-
problem4j-jackson = "1.2.5"
5-
problem4j-jackson3 = "1.2.5"
3+
problem4j-core = "1.2.6"
4+
problem4j-jackson = "1.2.7"
5+
problem4j-jackson3 = "1.2.7"
66
spotless = "8.1.0"
77
spring-boot = "4.0.0"
88

problem4j-spring-bom/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ publishing {
2525
from(components["javaPlatform"])
2626

2727
pom {
28-
name = "Problem4J Spring BOM"
29-
description = "BOM of Spring integration for library implementing RFC7807"
28+
name = "[Deprecated] Problem4J Spring BOM"
29+
description =
30+
"[Deprecated] BOM of Spring integration for library implementing RFC7807. Migrated to io.github.problem4j:problem4j-spring-bom namespace."
3031
url = "https://github.com/malczuuu/${rootProject.name}"
3132
inceptionYear = "2025"
3233
licenses {
@@ -44,12 +45,12 @@ publishing {
4445
}
4546
issueManagement {
4647
system = "GitHub Issues"
47-
url = "https://github.com/malczuuu/${rootProject.name}/issues"
48+
url = "https://github.com/problem4j/${rootProject.name}/issues"
4849
}
4950
scm {
50-
connection = "scm:git:https://github.com/malczuuu/${rootProject.name}.git"
51-
developerConnection = "scm:git:git@github.com:malczuuu/${rootProject.name}.git"
52-
url = "https://github.com/malczuuu/${rootProject.name}"
51+
connection = "scm:git:https://github.com/problem4j/${rootProject.name}.git"
52+
developerConnection = "scm:git:git@github.com:problem4j/${rootProject.name}.git"
53+
url = "https://github.com/problem4j/${rootProject.name}"
5354
}
5455
}
5556
}

problem4j-spring-web/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ publishing {
5454
from(components["java"])
5555

5656
pom {
57-
name = "Problem4J Spring Web"
58-
description = "Spring Web integration for library implementing RFC7807"
57+
name = "[Deprecated] Problem4J Spring Web"
58+
description =
59+
"[Deprecated] Spring Web integration for library implementing RFC7807. Migrated to io.github.problem4j:problem4j-spring-web namespace."
5960
url = "https://github.com/malczuuu/${rootProject.name}"
6061
inceptionYear = "2025"
6162
licenses {
@@ -73,12 +74,12 @@ publishing {
7374
}
7475
issueManagement {
7576
system = "GitHub Issues"
76-
url = "https://github.com/malczuuu/${rootProject.name}/issues"
77+
url = "https://github.com/problem4j/${rootProject.name}/issues"
7778
}
7879
scm {
79-
connection = "scm:git:https://github.com/malczuuu/${rootProject.name}.git"
80-
developerConnection = "scm:git:git@github.com:malczuuu/${rootProject.name}.git"
81-
url = "https://github.com/malczuuu/${rootProject.name}"
80+
connection = "scm:git:https://github.com/problem4j/${rootProject.name}.git"
81+
developerConnection = "scm:git:git@github.com:problem4j/${rootProject.name}.git"
82+
url = "https://github.com/problem4j/${rootProject.name}"
8283
}
8384
}
8485
}

problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/AbstractProblemResolverStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
*
3434
* <p>Resolvers are matched to exceptions by assignability, preferring the most specific exception
3535
* type.
36+
*
37+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
3638
*/
39+
@Deprecated(since = "2.0.7")
3740
public abstract class AbstractProblemResolverStore implements ProblemResolverStore {
3841

3942
private final Map<Class<? extends Exception>, ProblemResolver> resolvers;

problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/CachingProblemResolverStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
* {@link ProblemResolverStore} implementation that caches resolver lookups for better performance.
2626
*
2727
* <p>Results are stored in an internal cache to avoid repeated resolution.
28+
*
29+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
2830
*/
31+
@Deprecated(since = "2.0.7")
2932
public class CachingProblemResolverStore implements ProblemResolverStore {
3033

3134
private final ProblemResolverStore delegate;

problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/DefaultProblemResolverStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
*
2525
* <p>Resolvers are matched to exceptions by assignability, preferring the most specific exception
2626
* type.
27+
*
28+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
2729
*/
30+
@Deprecated(since = "2.0.7")
2831
public class DefaultProblemResolverStore extends AbstractProblemResolverStore {
2932

3033
/**

problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/ProblemAutoConfiguration.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@
4141
import tools.jackson.databind.json.JsonMapper;
4242
import tools.jackson.dataformat.xml.XmlMapper;
4343

44+
/**
45+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
46+
*/
4447
@AutoConfiguration
4548
@EnableConfigurationProperties({ProblemProperties.class})
4649
@ConditionalOnProperty(name = "problem4j.enabled", matchIfMissing = true)
4750
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.ANY)
4851
@Import({ProblemResolverConfiguration.class})
52+
@Deprecated(since = "2.0.7")
4953
public class ProblemAutoConfiguration {
5054

5155
/**
@@ -105,6 +109,7 @@ public ProblemPostProcessor problemPostProcessor(ProblemProperties properties) {
105109
* @param problemResolvers all available {@link ProblemResolver} declared as components
106110
* @return {@link DefaultProblemResolverStore}, wrapped in {@link CachingProblemResolverStore} if
107111
* caching is enabled
112+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
108113
*/
109114
@ConditionalOnMissingBean(ProblemResolverStore.class)
110115
@Bean

problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/ProblemProperties.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
* Configuration properties for Problem Details integration.
2424
*
2525
* <p>These properties can be set under the {@code problem4j.*} prefix.
26+
*
27+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
2628
*/
2729
@ConfigurationProperties(prefix = "problem4j")
30+
@Deprecated(since = "2.0.7")
2831
public class ProblemProperties implements ProblemContextSettings, PostProcessorSettings {
2932

3033
private final boolean enabled;
@@ -159,7 +162,10 @@ public ResolverCaching getResolverCaching() {
159162
* Caching configuration for ({@link CachingProblemResolverStore}).
160163
*
161164
* <p>Controls whether resolver lookup caching is enabled and its maximum size.
165+
*
166+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
162167
*/
168+
@Deprecated
163169
public static class ResolverCaching {
164170

165171
public static final boolean DEFAULT_ENABLED = false;

problem4j-spring-web/src/main/java/io/github/malczuuu/problem4j/spring/web/ProblemResolverStore.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
* <p>Implementations are responsible for locating the most specific resolver for a given {@code
2424
* Exception} class, typically by checking class assignability and caching results to improve
2525
* performance.
26+
*
27+
* @deprecated migrated to {@code io.github.problem4j:problem4j-spring-web} namespace.
2628
*/
29+
@Deprecated(since = "2.0.7")
2730
public interface ProblemResolverStore {
2831

2932
/**

0 commit comments

Comments
 (0)