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 or load main class lv.ctco.zephyr.Runner #42

Open
mikhailrotenberg opened this issue Jun 12, 2023 · 0 comments
Open

Could not find or load main class lv.ctco.zephyr.Runner #42

mikhailrotenberg opened this issue Jun 12, 2023 · 0 comments

Comments

@mikhailrotenberg
Copy link

mikhailrotenberg commented Jun 12, 2023

Hey, guys,

I am implementing the E2E Test Framework and would like to use the zephyr-sync plugin to use the Test Management in Jira.
My project is in Kotlin and Gradle.

When I add the zephyr-sync configs to the build.gradle the build is failing with the error:

Could not find or load main class lv.ctco.zephyr.Runner
Caused by: java.lang.ClassNotFoundException: lv.ctco.zephyr.Runner

So, my build.gradle is (the same way like in the README):

...
dependencies {
...
testImplementation("lv.ctco.zephyr:zephyr-sync-report-cucumber:0.0.17")
testImplementation("lv.ctco.zephyr:zephyr-sync-cli:0.0.17")
}
...
task zephyrSync {
javaexec{
main = "lv.ctco.zephyr.Runner"
classpath = sourceSets.main.output + sourceSets.test.output
args = ["--username=SPCABC", "--password=123456", "--reportType=cucumber", "--projectKey=ABC",
"--releaseVersion=Release 2.1", "--jiraUrl=http://jira.yourcompany.com/rest/", "--reportPath=build/cucumber-report/report.json"]
}
}

Do you know what might be the reason?
I've tried also to set classpath directly to the local *.jar file, but with no success as well.

Thank you in advance for your help!

Best regards,
Mikhail

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

1 participant