Skip to content

Commit

Permalink
feat: remove legacy publishing support
Browse files Browse the repository at this point in the history
This no longer exists in Gradle
  • Loading branch information
harshs-dyte committed Feb 10, 2023
1 parent da887a3 commit 2ab8acc
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 306 deletions.
5 changes: 0 additions & 5 deletions src/gradle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ export function getTaskToPublish(
} else {
tasks = ["publish"];
}
} else if (line.startsWith("uploadArchives -")) {
if (tasks.length != 0) {
reject(new Error(ERROR_MULTIPLE_PLUGIN));
}
tasks = ["uploadArchives"];
} else if (line.startsWith("publishPlugins -")) {
if (tasks.length != 0 && tasks[0] === "publish") {
logger.info(INFO_PUBLISH_PLUGINS);
Expand Down
12 changes: 0 additions & 12 deletions test/project/with-legacy-publishing/build.gradle

This file was deleted.

Binary file not shown.

This file was deleted.

185 changes: 0 additions & 185 deletions test/project/with-legacy-publishing/gradlew

This file was deleted.

89 changes: 0 additions & 89 deletions test/project/with-legacy-publishing/gradlew.bat

This file was deleted.

9 changes: 0 additions & 9 deletions test/src/gradle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ describe("Test for gradle handling", function () {
);
expect(task).toEqual(["publish"]);
});
it("returns 'uploadArchives' when there is available legacy publishing method", async () => {
const gradleProject = join(cwd(), "test/project/with-legacy-publishing");
const task = await getTaskToPublish(
gradleProject,
process.env,
new Signale()
);
expect(task).toEqual(["uploadArchives"]);
});
it("returns 'artifactoryDeploy' when there is available artifactory-plugin", async () => {
const gradleProject = join(cwd(), "test/project/with-artifactory-plugin");
const task = await getTaskToPublish(
Expand Down

0 comments on commit 2ab8acc

Please sign in to comment.