Skip to content

Commit d4f9d3d

Browse files
authored
refactor: remove deprecated MergeApiSpecByPathTask and snapshot repository (#432)
1 parent 0bccb13 commit d4f9d3d

File tree

13 files changed

+3
-183
lines changed

13 files changed

+3
-183
lines changed

buildSrc/build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ dependencies {
2626
implementation(libs.plugin.swagger)
2727
implementation(libs.plugin.openapi.generator)
2828
implementation(libs.swagger.parser)
29-
implementation(libs.plugin.openapi.merger) { // DEPRECATED
30-
constraints {
31-
implementation(libs.swagger.parser) {
32-
because("OpenAPI merger plugin uses an old version that caused this issue: https://github.com/eclipse-edc/GradlePlugins/issues/183")
33-
}
34-
}
35-
}
36-
3729
implementation(libs.jetbrains.annotations)
3830
implementation(libs.jackson.core)
3931
implementation(libs.jackson.databind)

gradle/libs.versions.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ mockito-core = { module = "org.mockito:mockito-core", version.ref = "mockito" }
3333
openapi-generator = { module = "org.openapitools:openapi-generator", version.ref = "openapi-generator" }
3434
plugin-publish = { module = "com.vanniktech:gradle-maven-publish-plugin", version = "0.36.0" }
3535
plugin-checksum = { module = "gradle.plugin.org.gradle.crypto:checksum", version = "1.4.0" }
36-
plugin-openapi-merger = { module = "com.rameshkp:openapi-merger-gradle-plugin", version.ref = "openapi-merger" }
37-
plugin-openapi-merger-app = { module = "com.rameshkp:openapi-merger-app", version.ref = "openapi-merger" }
3836
plugin-openapi-generator = { module = "org.openapitools:openapi-generator-gradle-plugin", version.ref = "openapi-generator" }
3937
plugin-swagger = { module = "io.swagger.core.v3:swagger-gradle-plugin", version.ref = "swagger" }
4038
swagger-parser = { module = "io.swagger.parser.v3:swagger-parser", version.ref = "swagger-parser" }

plugins/edc-build/build.gradle.kts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ dependencies {
1616
implementation(libs.openapi.generator)
1717
implementation(libs.plugin.openapi.generator)
1818
implementation(libs.swagger.parser)
19-
// openapi-merger deprecated, will be removed
20-
implementation(libs.plugin.openapi.merger.app)
21-
implementation(libs.plugin.openapi.merger) {
22-
constraints {
23-
implementation(libs.swagger.parser) {
24-
because("OpenAPI merger plugin uses an old version that caused this issue: https://github.com/eclipse-edc/GradlePlugins/issues/183")
25-
}
26-
}
27-
}
2819
}
2920

3021
gradlePlugin {

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/EdcBuildPlugin.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.mavenPom;
3838
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.mavenPublication;
3939
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.mavenPublishing;
40-
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.openApiMerger;
4140
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.printClasspath;
4241
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.repositories;
4342
import static org.eclipse.edc.plugins.edcbuild.conventions.Conventions.rootBuildScript;
@@ -52,8 +51,6 @@
5251
public class EdcBuildPlugin implements Plugin<Project> {
5352
@Override
5453
public void apply(Project target) {
55-
56-
// register the extension(s)
5754
target.getExtensions().create("edcBuild", BuildExtension.class, target.getObjects());
5855

5956
applyPlugins(target);
@@ -66,8 +63,7 @@ public void apply(Project target) {
6663
of(
6764
rootBuildScript(),
6865
repositories(),
69-
swaggerGenerator(),
70-
openApiMerger()
66+
swaggerGenerator()
7167
).forEach(c -> c.apply(target));
7268

7369
// configuration values are only guaranteed to be set after the project has been evaluated

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/conventions/Conventions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ public static EdcConvention swaggerGenerator() {
6363
return new SwaggerResolveConvention();
6464
}
6565

66-
public static EdcConvention openApiMerger() {
67-
return new OpenApiMergerConvention();
68-
}
69-
7066
public static EdcConvention mavenPublication() {
7167
return new MavenPublicationConvention();
7268
}

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/conventions/OpenApiMergerConvention.java

Lines changed: 0 additions & 79 deletions
This file was deleted.

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/conventions/Repositories.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,4 @@ public class Repositories {
1919
public static final String NEXUS_REPO_URL = "https://ossrh-staging-api.central.sonatype.com/service/local/";
2020
public static final String SNAPSHOT_REPO_URL = "https://central.sonatype.com/repository/maven-snapshots/";
2121

22-
@Deprecated(since = "0.14.0")
23-
public static final String DEPRECATED_SNAPSHOT_REPO_URL = "https://oss.sonatype.org/content/repositories/snapshots/";
24-
2522
}

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/conventions/RepositoriesConvention.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ public void apply(Project target) {
2929
handler.mavenLocal();
3030
handler.maven(r -> r.setUrl(URI.create(Repositories.SNAPSHOT_REPO_URL)));
3131
handler.mavenCentral();
32-
handler.maven(r -> r.setUrl(URI.create(Repositories.DEPRECATED_SNAPSHOT_REPO_URL)));
3332
}
3433
}

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/conventions/RootBuildScriptConvention.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
import org.gradle.api.Project;
1818

19-
import static org.eclipse.edc.plugins.edcbuild.conventions.Repositories.DEPRECATED_SNAPSHOT_REPO_URL;
20-
2119
/**
2220
* Configures the root buildscript, i.e. adds repos
2321
*/
@@ -28,7 +26,6 @@ public void apply(Project target) {
2826
target.getBuildscript().getRepositories().mavenLocal();
2927
target.getBuildscript().getRepositories().mavenCentral();
3028
target.getBuildscript().getRepositories().gradlePluginPortal();
31-
target.getBuildscript().getRepositories().maven(repo -> repo.setUrl(DEPRECATED_SNAPSHOT_REPO_URL));
3229
}
3330
}
3431
}

plugins/edc-build/src/main/java/org/eclipse/edc/plugins/edcbuild/extensions/MavenPomExtension.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,4 @@ public MavenPomExtension(Project project) {
5555
public abstract Property<String> getScmConnection();
5656

5757
public abstract Property<String> getScmUrl();
58-
59-
@Deprecated(since = "edc-build-0.1.0")
60-
public String getGroupId() {
61-
return groupId;
62-
}
63-
64-
@Deprecated(since = "edc-build-0.1.0")
65-
public void setGroupId(String groupId) {
66-
this.groupId = groupId;
67-
}
6858
}

0 commit comments

Comments
 (0)