question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`mockk-android:1.12.6` is not published

See original GitHub issue

Just be aware about usual MockK support pattern. Tickets are checked from time to time, replied, discussed, labeled, e.t.c. But real fixes are applied in a month-two month period in a bunch. If you think this is unacceptable, go on, join the project, change the world.

Please remove sections wisely

Our project uses mockk-android. Renovate created a PR to update to 1.12.6, but it does not resolve the dependency. It seems that mockk-android:1.12.6 is not published.

Is this an intended behavior?

I think https://github.com/mockk/mockk/pull/855 is relevant.

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

Can resolve mockk-android:1.12.6.

Current Behavior

mockk-android:1.12.6 is not published to Maven Central.

https://search.maven.org/search?q=g:io.mockk image

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

  1. Add io.mockk:mockk-android:1.12.6 to dependencies.

Context

  • MockK version: 1.12.6

Failure Logs

Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:androidDependencies'.
> Could not resolve all artifacts for configuration ':app:studentProductionDebugAndroidTestCompileClasspath'.
   > Could not find io.mockk:mockk-android:1.12.6.
     Required by:
         project :app

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Minimal reproducible code (the gist of this issue)

dependencies {
    androidTestImplementation("io.mockk:mockk-android:1.12.6")
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
Sulioncommented, Aug 23, 2022

Same with JVM:

Execution failed for task ':compileTestKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':compileTestKotlin'
   > Could not resolve all files for configuration ':testCompileClasspath'.
      > Could not find io.mockk:mockk-jvm:1.12.6.
        Required by:
            project : > io.mockk:mockk:1.12.6
1reaction
kubodecommented, Aug 23, 2022

I’m working on fixing this problem. I will make a PR soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix an issue that Android libraries was not published #887
Fixes: #883 The official Android documentation about publications is here. I confirmed that mockk-android is published with the following command. $ .
Read more >
Android Kotlin Unit test failing with io.mockk.MockKException
In your setup() method, you're creating a viewmodel first and then configuring your mock reponse in the repository after.
Read more >
mockk-io/Lobby - Gitter
What went wrong: A problem occurred configuring project ':mockk-agent-android'. missing signing.keyId to sign archives. Exception is: org.gradle.api ...
Read more >
mockk-agent-android : 1.12.0 - Maven Central
MockK Android Agent - Android instrumented testing MockK inline mocking agent.
Read more >
MockK | mocking library for Kotlin
Gitter Relase Version Change log codecov Android Matrix tests Open Source Helpers ... Check the series of articles “Mocking is not rocket science”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found