Skip to content

Commit 85a92df

Browse files
authored
Load the bintray and kotlin plugins from the root build script (#1822)
This fixes this error while trying to rrun `bintrayUpload` Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'task ':apollo-api:bintrayUpload'' with class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask_Decorated' to class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask'
1 parent d1216a4 commit 85a92df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ buildscript {
1414
classpath(groovy.util.Eval.x(project, "x.dep.gradleErrorpronePlugin"))
1515
classpath(groovy.util.Eval.x(project, "x.dep.gradleJapiCmpPlugin"))
1616
classpath(groovy.util.Eval.x(project, "x.dep.kotlin.plugin"))
17+
classpath(groovy.util.Eval.x(project, "x.dep.bintrayGradlePlugin"))
18+
classpath(groovy.util.Eval.x(project, "x.dep.kotlin.plugin"))
1719
}
1820
}
1921

@@ -46,11 +48,6 @@ subprojects {
4648
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
4749
google()
4850
}
49-
50-
dependencies {
51-
classpath(groovy.util.Eval.x(project, "x.dep.bintrayGradlePlugin"))
52-
classpath(groovy.util.Eval.x(project, "x.dep.kotlin.plugin"))
53-
}
5451
}
5552

5653
repositories {

0 commit comments

Comments
 (0)