From 54b69998f87a7c7bc4e55bb7820ea9d23683c385 Mon Sep 17 00:00:00 2001 From: Kavitha Srinivasan Date: Fri, 11 Dec 2020 15:50:17 -0800 Subject: [PATCH] Set up for publishing to gradle repository. --- graphql-dgs-codegen-gradle/build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/graphql-dgs-codegen-gradle/build.gradle b/graphql-dgs-codegen-gradle/build.gradle index e24108e59..8b2af45b3 100644 --- a/graphql-dgs-codegen-gradle/build.gradle +++ b/graphql-dgs-codegen-gradle/build.gradle @@ -105,6 +105,15 @@ task createClasspathManifest { } } + +publishPlugins.dependsOn tasks.check +project.rootProject.tasks.publishPackageToBintray.dependsOn tasks.publishPlugins +gradle.taskGraph.whenReady { graph -> + tasks.publishPlugins.onlyIf { + graph.hasTask(':final') + } +} + // Add the classpath file to the test runtime classpath dependencies { testRuntimeOnly files(createClasspathManifest)