You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I feel like my gitPublish configuration should look like:
gitPublish {
publications.create("step1") {
repoUri.set("[email protected]:[...]")
// The other fields for configuration, was working with only 1 publication so I presume there are good...
}
}
But it gives the error: ^ Unresolved reference: publications
publications have been provided for a short time by IntelliJ autocompletion, but then the dependency from the IDE is pointing to 4.2.0 but I think it have an older version really...
Eventually I've removed my .m2/repository and it looks like the org/ajoberstar is not downloaded again locally for some reasons...
The text was updated successfully, but these errors were encountered:
I attempted to reproduce this and it seemed to work for me (in IntelliJ Community Edition 2023.1) and Gradle 8.1.1.
Here's my reproduction. It both looks fine in the IDE and when I run ./gradlew tasks --all it lists all of the publication related tasks.
If you find something different with the example that makes it break, can you send a PR over to that repro repo so I can try to see the same on my side?
I've finally found the root cause of my issue, mkdocs-plugin is leaking the grgit reference and it was just messing with the IDE for some reasons. I was able to avoid this forced dependency with
implementation("ru.vyarus:gradle-mkdocs-plugin:3.0.0") {
// Related to https://github.com/xvik/gradle-mkdocs-plugin/issues/23
exclude(group = "org.ajoberstar.grgit")
exclude(group = "org.ajoberstar")
}
I also encountered another issue and found the workaround working.
Eventually I'm able to define (not apply) the plugin on the root, and apply it on 2 different modules, each one declaring its publication, and everything works fine.
Thanks a lot for your time investigating, sorry about that, leaving as much details as possible if it can help the next developer encountering the same problem.
And a big thanks for what you achieved with grgit/git-publish, I used this libs for years on many projects, so useful, sending love for you <3
It may just be an IDE limitation but for some reasons I'm not able to use multiple publications with kotlin scripts.
My buildSrc/build.gradle.kts defines
And on top of my module I apply the plugin with:
And I feel like my gitPublish configuration should look like:
But it gives the error:
^ Unresolved reference: publications
publications
have been provided for a short time by IntelliJ autocompletion, but then the dependency from the IDE is pointing to 4.2.0 but I think it have an older version really...Eventually I've removed my .m2/repository and it looks like the org/ajoberstar is not downloaded again locally for some reasons...
The text was updated successfully, but these errors were encountered: