Skip to content
This repository has been archived by the owner on Feb 2, 2025. It is now read-only.

Task 'kotest' not found in root project #53

Open
pacu opened this issue Nov 24, 2023 · 0 comments
Open

Task 'kotest' not found in root project #53

pacu opened this issue Nov 24, 2023 · 0 comments

Comments

@pacu
Copy link

pacu commented Nov 24, 2023

When running ./gradlew kotest as specified in the plugin's README.md the command fails.

 zcash-kotlin-payment-uri % ./gradlew kotest 

FAILURE: Build failed with an exception.

* What went wrong:
Task 'kotest' not found in root project 'zcash-kotlin-payment-uri' and its subprojects. Some candidates are: 'test'.

how to reproduce:

  1. go to: https://github.com/pacu/zcash-kotlin-payment-uri/
  2. clone repo using commit 5122b609f141693bd69091b2f93211eb5d56a50d
  3. run ./gradlew kotest
boazy added a commit to boazy/kotest-gradle-plugin that referenced this issue Dec 27, 2023
`Project.convention` and other conventions API methods have been
deprecated and will be removed in Gradle 9.0. To make things worse, the
`Project.convention.plugins["java"]` does not return
`DefaultJavaPluginConvention` anymore, but instead returns a wrapper
class that issues deprecation warnings. Since the plugin cannot find the
expected class, it stopped working properly (this is probably the cause
of kotest#53).

This pull requests simply replaces the single use of
`Project.convention.plugins[]` (finding the Java test sourceset) with
`Project.extensions.findByType`.

Fixes: kotest#42, kotest#53
sksamuel pushed a commit that referenced this issue Jan 1, 2024
`Project.convention` and other conventions API methods have been
deprecated and will be removed in Gradle 9.0. To make things worse, the
`Project.convention.plugins["java"]` does not return
`DefaultJavaPluginConvention` anymore, but instead returns a wrapper
class that issues deprecation warnings. Since the plugin cannot find the
expected class, it stopped working properly (this is probably the cause
of #53).

This pull requests simply replaces the single use of
`Project.convention.plugins[]` (finding the Java test sourceset) with
`Project.extensions.findByType`.

Fixes: #42, #53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant