-
Notifications
You must be signed in to change notification settings - Fork 269
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
Tasks :classpathIndexCleanup
and :compileTestKotlin
don't have a declared dependency causing build to fail
#1515
Comments
We in JetBrain Academy plugin have the same issue when you want to make change and run tests. |
Undin
added a commit
to JetBrains/educational-plugin
that referenced
this issue
Jan 9, 2024
Previously, if you made any change in any module except `educational-core` and tried running tests, the compilation failed on `:intellij-plugin:educational-core:compileTestKotlin` task. These changes make exactly what Gradle advices - adds dependency between `classpathIndexCleanup` and `compileTestKotlin` tasks. See JetBrains/intellij-platform-gradle-plugin#1515
hsz
added a commit
that referenced
this issue
Jan 12, 2024
…ared dependency causing build to fail #1515
Thanks for reporting! |
Undin
added a commit
to JetBrains/educational-plugin
that referenced
this issue
Jan 15, 2024
Previously, if you made any change in any module except `educational-core` and tried running tests, the compilation failed on `:intellij-plugin:educational-core:compileTestKotlin` task. These changes make exactly what Gradle advices - adds dependency between `classpathIndexCleanup` and `compileTestKotlin` tasks. See JetBrains/intellij-platform-gradle-plugin#1515
Undin
added a commit
to JetBrains/educational-plugin
that referenced
this issue
Jan 20, 2024
And drop all workarounds which are redundant anymore since the corresponding bugs are fixed in the plugin itself: JetBrains/intellij-platform-gradle-plugin#1515 and JetBrains/intellij-platform-gradle-plugin#1525
Undin
added a commit
to JetBrains/educational-plugin
that referenced
this issue
Jan 26, 2024
Previously, if you made any change in any module except `educational-core` and tried running tests, the compilation failed on `:intellij-plugin:educational-core:compileTestKotlin` task. These changes make exactly what Gradle advices - adds dependency between `classpathIndexCleanup` and `compileTestKotlin` tasks. See JetBrains/intellij-platform-gradle-plugin#1515
Undin
added a commit
to JetBrains/educational-plugin
that referenced
this issue
Jan 26, 2024
And drop all workarounds which are redundant anymore since the corresponding bugs are fixed in the plugin itself: JetBrains/intellij-platform-gradle-plugin#1515 and JetBrains/intellij-platform-gradle-plugin#1525
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
After scaffolding a new plugin using the template I realized that occasionally the (re)buliding the project would fail with the attached error message. Manually adding the following to my
build.gradle.kts
seems to resolve the issue.tasks { withType<ClasspathIndexCleanupTask> { dependsOn(compileTestKotlin) } }
Relevant log output or stack trace
Steps to reproduce
Using the template with the following
gradle.properties
I can trigger the error by invoking a (re)build from IntelliJ.I am running this with our Nightly of 2024.1 in case it matters.
Gradle IntelliJ Plugin version
1.16.1
Gradle version
8.5
Operating System
macOS
Link to build, i.e. failing GitHub Action job
No response
The text was updated successfully, but these errors were encountered: