Skip to content

Commit

Permalink
Deprecate spi module and contents
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Edgar <michael@xlate.io>
  • Loading branch information
MikeEdgar committed Jan 17, 2024
1 parent 33a7a83 commit 42c4e60
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<artifactId>microprofile-openapi-api</artifactId>
<name>MicroProfile OpenAPI API</name>
<description>MicroProfile OpenAPI API :: API</description>
<description>MicroProfile OpenAPI :: API</description>

<dependencies>
<dependency>
Expand Down
10 changes: 7 additions & 3 deletions spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@

<artifactId>microprofile-openapi-spi</artifactId>
<name>MicroProfile OpenAPI SPI</name>
<description>MicroProfile OpenAPI SPI :: SPI</description>
<description>
MicroProfile OpenAPI :: SPI

This module is deprecated and will be removed in a future release of MicroProfile
OpenAPI. The functionality offered by this module is available in the microprofile-openapi-api
module which should be used instead.
</description>

<dependencies>
<dependency>
Expand All @@ -37,6 +43,4 @@
<artifactId>microprofile-openapi-api</artifactId>
</dependency>
</dependencies>


</project>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
* Service provider for OASFactoryResolver. The implementation registers itself via the {@link java.util.ServiceLoader}
* mechanism or by manually setting their implementation using the setInstance method.
*
* @deprecated the OASFactoryResolver available in module {@code org.eclipse.microprofile.openapi:microprofile-openapi-api}
* should be used instead of this version which will be removed in a future major release.
*/
@Deprecated/*(forRemoval = true)*/
public abstract class OASFactoryResolver {

private static volatile OASFactoryResolver instance = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@

/**
* Service provider interface which allows vendors to set their implementations of OASFactoryResolver.
* <p>
* The {@code org.eclipse.microprofile.openapi.spi} package available in module
* {@code org.eclipse.microprofile.openapi:microprofile-openapi-api} should be used instead of this version which will be removed in a future major
* release.
*/

@Deprecated/*(forRemoval = true)*/
@org.osgi.annotation.versioning.Version("1.0")
package org.eclipse.microprofile.openapi.spi;
package org.eclipse.microprofile.openapi.spi;

0 comments on commit 42c4e60

Please sign in to comment.