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

Could not find spek:spek-runtime:2.0.16 #964

Open
DmitriyZaitsev opened this issue Apr 15, 2021 · 19 comments
Open

Could not find spek:spek-runtime:2.0.16 #964

DmitriyZaitsev opened this issue Apr 15, 2021 · 19 comments

Comments

@DmitriyZaitsev
Copy link

I started getting this error message after an update from 2.0.15 -> 2.0.16, which is weird as I see that that the latest available version of spek-runtime here is 2.0.0.

Could not resolve all files for configuration ':app:developDebugUnitTestRuntimeClasspath'.
   > Could not find spek:spek-runtime:2.0.16.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/spek/spek-runtime/2.0.16/spek-runtime-2.0.16.pom
       - https://repo.maven.apache.org/maven2/spek/spek-runtime/2.0.16/spek-runtime-2.0.16.pom
       - https://jitpack.io/spek/spek-runtime/2.0.16/spek-runtime-2.0.16.pom
       - https://jcenter.bintray.com/spek/spek-runtime/2.0.16/spek-runtime-2.0.16.pom
     Required by:
         project :app > org.spekframework.spek2:spek-runner-junit5:2.0.16
@raniejade
Copy link
Member

In 2.0.16 publishing was moved to Maven Central due to bintray being shutdown. Do you have mavenCentral() in your repositories block?

@DmitriyZaitsev
Copy link
Author

Yes, I have.
I see on Maven that all spek modules have the latest version 2.0.16 except spek-runtime which is 2.0.0.

@raniejade
Copy link
Member

Ahh wait, spek-runner-junit5 shouldn't need spek-runtime but that should be spek-runtime-jvm. The POM file for spek-runner-junit5 is correct: https://repo1.maven.org/maven2/org/spekframework/spek2/spek-runner-junit5/2.0.16/spek-runner-junit5-2.0.16.pom. I wondder why is it asking for spek-runtime. 🤔

@DmitriyZaitsev
Copy link
Author

DmitriyZaitsev commented Apr 15, 2021

My declared dependencies.

    val spekVersion = "2.0.15"
    testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spekVersion")
    testImplementation("org.spekframework.spek2:spek-runner-junit5:$spekVersion")

Works perfectly until the change to 2.0.16

@raniejade
Copy link
Member

Can you setup a sample project that replicates the issue?

@DmitriyZaitsev
Copy link
Author

Unfortunately, no, sorry.
But maybe you'll find helpful this output from $ ./gradlew app:dependencies

+--- org.spekframework.spek2:spek-runner-junit5:2.0.16
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61 -> 1.4.31 (*)
|    +--- spek:spek-runtime:2.0.16 FAILED
|    \--- org.junit.platform:junit-platform-engine:1.6.0
|         +--- org.junit:junit-bom:5.6.0
|         |    +--- org.junit.platform:junit-platform-commons:1.6.0 (c)
|         |    \--- org.junit.platform:junit-platform-engine:1.6.0 (c)
|         +--- org.apiguardian:apiguardian-api:1.1.0
|         +--- org.opentest4j:opentest4j:1.2.0
|         \--- org.junit.platform:junit-platform-commons:1.6.0
|              +--- org.junit:junit-bom:5.6.0 (*)
|              \--- org.apiguardian:apiguardian-api:1.1.0

The dependency really comes from spek-runner-junit5 ¯\_(ツ)_/¯

@raniejade
Copy link
Member

What gradle version are you using?

@DmitriyZaitsev
Copy link
Author

DmitriyZaitsev commented Apr 15, 2021

Btw, for 2.0.15 you're right, it depends on spek-runtime-jvm

+--- org.spekframework.spek2:spek-runner-junit5:2.0.15
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61 -> 1.4.31 (*)
|    +--- org.spekframework.spek2:spek-runtime-jvm:2.0.15
|    |    +--- org.spekframework.spek2:spek-dsl-jvm:2.0.15 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61 -> 1.4.31 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-reflect:1.3.61 -> 1.4.31
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.31 -> 1.4.32 (*)

@DmitriyZaitsev
Copy link
Author

I use Gradle v7.0-rc-2

@robstoll
Copy link
Contributor

robstoll commented Apr 15, 2021

I have the same or a similar problem with atrium (using gradle 6.7)

* What went wrong:
Could not determine the dependencies of task ':spek:test'.
> Could not resolve all task dependencies for configuration ':spek:testRuntimeClasspath'.
   > Could not find spek:spek-runtime:2.0.16.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/spek/spek-runtime/2.0.16/spek-runtime-2.0.16.pom
     If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
     Required by:
         project :spek > org.spekframework.spek2:spek-runner-junit5:2.0.16

https://github.com/robstoll/atrium/pull/869/checks?check_run_id=2355507816

@raniejade
Copy link
Member

My guess it has something to do with not publishing the kotlinMultiplatform publication. Weirdly enough I didn't do any changes publications from 2.0.15 -> 2.0.16.

@raniejade
Copy link
Member

Interesting, bintray's publish plugin ignored gradle's module metadata files when publishing so it wasn't present in 2.0.15 but now present in 2.0.16 due to the move to central. I think I just need to publish kotlinMultiplatform publication to fix this.

@raniejade
Copy link
Member

@DmitriyZaitsev @robstoll I suggest to use 2.0.15 for now. #965 will be included in 2.0.17.

@robstoll
Copy link
Contributor

Good, I am actually still on 2.0.12 because of #927. Any chance you fix this as well? Can I help somehow?

@raniejade
Copy link
Member

Ahh, totally forgot about that issue. @sh-soltanpour is going to look at it.

JBassett added a commit to home-assistant/android that referenced this issue Jul 26, 2021
JBassett added a commit to home-assistant/android that referenced this issue Jul 26, 2021
* Bump spek-runner-junit5 from 2.0.8 to 2.0.16

Bumps [spek-runner-junit5](https://github.com/spekframework/spek) from 2.0.8 to 2.0.16.
- [Release notes](https://github.com/spekframework/spek/releases)
- [Changelog](https://github.com/spekframework/spek/blob/2.x/docs/breaking-changes.md)
- [Commits](spekframework/spek@2.0.8...2.0.16)

---
updated-dependencies:
- dependency-name: org.spekframework.spek2:spek-runner-junit5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Roll back to 2.0.15 because of spekframework/spek#964

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Basset, Justin <[email protected]>
@rburgst
Copy link

rburgst commented Aug 28, 2021

when will 2.0.17 be released?

@raniejade
Copy link
Member

@rburgst it is out already.

@rburgst
Copy link

rburgst commented Aug 28, 2021

Hm, its not listed on the github releases

@raniejade
Copy link
Member

rauljurado620 added a commit to rauljurado620/android-apps that referenced this issue Mar 24, 2022
* Bump spek-runner-junit5 from 2.0.8 to 2.0.16

Bumps [spek-runner-junit5](https://github.com/spekframework/spek) from 2.0.8 to 2.0.16.
- [Release notes](https://github.com/spekframework/spek/releases)
- [Changelog](https://github.com/spekframework/spek/blob/2.x/docs/breaking-changes.md)
- [Commits](spekframework/spek@2.0.8...2.0.16)

---
updated-dependencies:
- dependency-name: org.spekframework.spek2:spek-runner-junit5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Roll back to 2.0.15 because of spekframework/spek#964

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Basset, Justin <[email protected]>
zarakarlsson628 added a commit to zarakarlsson628/android-gradle-common that referenced this issue Oct 19, 2022
* Bump spek-runner-junit5 from 2.0.8 to 2.0.16

Bumps [spek-runner-junit5](https://github.com/spekframework/spek) from 2.0.8 to 2.0.16.
- [Release notes](https://github.com/spekframework/spek/releases)
- [Changelog](https://github.com/spekframework/spek/blob/2.x/docs/breaking-changes.md)
- [Commits](spekframework/spek@2.0.8...2.0.16)

---
updated-dependencies:
- dependency-name: org.spekframework.spek2:spek-runner-junit5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Roll back to 2.0.15 because of spekframework/spek#964

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Basset, Justin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants