From be95f3b22731bd4f47ee9847c16282f222c19861 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Thu, 26 Apr 2018 12:46:38 +0300 Subject: [PATCH] pasto: braking usage of MavenPublications --- .../groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy b/src/main/groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy index f8b462a..3a2d2ee 100644 --- a/src/main/groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy +++ b/src/main/groovy/com/jfrog/bintray/gradle/BintrayUploadTask.groovy @@ -214,8 +214,8 @@ class BintrayUploadTask extends DefaultTask { } else { logger.error("{}: Could not find publication: {}.", path, it); } - } else if (conf instanceof MavenPublication) { - return collectArtifacts((Configuration) it) + } else if (it instanceof MavenPublication) { + return collectArtifacts((MavenPublication) it) } else { logger.error("{}: Unsupported publication type: {}.", path, it.class) }