From e439d917638f0c7792e956c662e9822daa5a590a Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 15 Feb 2020 00:03:57 +0100 Subject: [PATCH] build.gradle.kts: fix bintray upload (broken since adding snapshot publishing) --- flatlaf-demo/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flatlaf-demo/build.gradle.kts b/flatlaf-demo/build.gradle.kts index 2fbc4811..ab50c34d 100644 --- a/flatlaf-demo/build.gradle.kts +++ b/flatlaf-demo/build.gradle.kts @@ -17,6 +17,14 @@ plugins { `java-library` id( "com.jfrog.bintray" ) version "1.8.4" + + // Although artifactory plugin is not used in this subproject, the plugin is required + // because otherwise gradle fails with following error: + // Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: + // Cannot cast object 'task ':bintrayUpload'' + // with class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask_Decorated' + // to class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask' + id( "com.jfrog.artifactory" ) version "4.13.0" } dependencies {