You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to publish a jar produced by a subproject to bintray and it fails with the following error:
Execution failed for task ':springwolf-ui:bintrayUpload'.
> Cannot cast object 'task ':bintrayUpload'' with class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask_Decorated' to class 'com.jfrog.bintray.gradle.tasks.BintrayUploadTask'
When I create a new project with the exact same contents, the task does not fail.
This is the build.gradle:
plugins {
id 'java'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.5'
}
version = rootProject.uiVersion
sourceCompatibility =1.8
task sourcesJar(type: Jar) {
classifier ='sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
def pomConfig = {
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'stavshamir'
name 'Stav Shamir'
email 'shamir.stav@gmail.com'
}
}
scm {
url 'https://github.com/stavshamir/springwolf'
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
artifact jar
artifact sourcesJar {
classifier "sources"
}
groupId project.group
artifactId 'springwolf-ui'
version project.version
pom.withXml {
def root = asNode()
root.appendNode('description', 'Automated JSON API documentation for Kafka Listeners built with Spring')
root.appendNode('name', 'springwolf-ui')
root.appendNode('url', 'https://github.com/stavshamir/springwolf')
root.children().last() + pomConfig
}
}
}
}
bintray {
user =System.getProperty('bintray.user')
key =System.getProperty('bintray.key')
publications = ['mavenPublication']
pkg {
repo ='springwolf'
name ='springwolf-ui'
userOrg ='stavshamir'
licenses = ['Apache-2.0']
vcsUrl ='https://github.com/stavshamir/springwolf.git'
version {
name = project.version
desc ='Web UI for springwolf'
released =newDate()
}
}
}
Hello, I am trying to publish a jar produced by a subproject to bintray and it fails with the following error:
When I create a new project with the exact same contents, the task does not fail.
This is the
build.gradle
:This is the repo: https://github.com/stavshamir/springwolf
The text was updated successfully, but these errors were encountered: