Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifactory fails to publish with dokka error in Gradle kts setup #44

Open
iamutkarshtiwari opened this issue Jan 11, 2022 · 2 comments

Comments

@iamutkarshtiwari
Copy link

iamutkarshtiwari commented Jan 11, 2022

I am getting this issue when trying to publish core_ds_component module in my Android project to artifactory:

* What went wrong:
Could not determine the dependencies of task ':core_ds_component:dokka'.
> class org.gradle.api.internal.file.CompositeFileCollection$1 cannot be cast to class java.util.List (org.gradle.api.internal.file.CompositeFileCollection$1 is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @26653222; java.util.List is in module java.base of loader 'bootstrap')

my gradle setup for that module:

pplugins {
    id("com.foo.plugin.android-library")
    id("com.foo.plugin.compose")
    id("guru.stefma.artifactorypublish")
}

dependencies {
    api(project(":core_ds_theme"))

    implementation(AndroidX.core.ktx)
    implementation(AndroidX.appCompat)
    implementation(COIL.compose)
    implementation(Google.accompanist.flowlayout)
    api(Google.accompanist.pager)
    api(Google.accompanist.pager.indicators)
    api(Google.accompanist.swiperefresh)
    api(JakeWharton.timber)
}


group = "com.foo.bar"
version = "foobar"

androidArtifact {
    artifactId = "foobar"
}

artifactoryPublish {
    artifactoryRepo = "bar"
    artifactoryUrl = "foo"
    publications = arrayOf("releaseAar")
}

Here is the complete error log: https://gist.github.com/iamutkarshtiwari/591da68c4a9b16e0324f25e25bc2a214

Any idea what could be wrong?

@StefMa
Copy link
Owner

StefMa commented Jan 11, 2022

Hey,

which Gradle version do you use?
This library is quite outdated and may not work with current Gradle versions anymore.

@iamutkarshtiwari
Copy link
Author

Hi, thank you for your reply.
I am using 7.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants