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.

Custom classpath is invalid

See original GitHub issue

Which version of Kotest are you using 4.6.3

  // Add the jar built by 'shadowJar' to classpath
  test {
    dependsOn(shadowJar)
    classpath += shadowJar.get().outputs.files
  }

It is expected that the classpath run by test should have shadowJar, but unfortunately it failed, or does kotest have another method to customize the classpath?

I am writing a Kotlin Compiler Plugin test, for the particularity of the kotlin-compiler-embedable and kotlin-compiler, I need to redirect some package name at runtime.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Nov 23, 2021

Possibly make the plugin use gradle even for nested tests but that isn’t something that will be done in the short term (unless you wanted to contribute a PR).

On Tue, 23 Nov 2021 at 01:50, 凛 @.***> wrote:

You are right, but it’s not good to run the whole class every time, maybe there is any way to solve this special case?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kotest/kotest/issues/2661#issuecomment-976231488, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFVSGUAGV76AQ5PNZCKIG3UNNBUNANCNFSM5IOH4CPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

0reactions
stale[bot]commented, Jan 18, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnose "incorrect classpath" indicated by java compiler
What am I doing wrong here? Why is it classifying it at an incorrect classpath? I'm using org.eclipse.jdt.core(v.3.10.2) dependency and I'm compiling in ......
Read more >
Setting the class path
The class path is the path that the Java runtime environment searches for classes and other resource files. The class search path (more...
Read more >
3.10 Classpath scanning and managed components
This section describes an option for implicitly detecting the candidate components by scanning the classpath. Candidate components are classes that match ...
Read more >
Java Guide: How to Fix "Could not find or load main class"
The Java “Could not find or load main class” error is thrown when the JVM fails to find or load the main class...
Read more >
Invalid warning "Runtime JAR files in the classpath ... - YouTrack
Invalid warning "Runtime JAR files in the classpath should have the same version". Relates to 1 ... then in my custom android lint...
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