Slackbot
11/18/2022, 2:31 PMgrossws
11/18/2022, 2:34 PMbuild.gradle.kts
here since no one can see it right nowClaude Brisson
11/18/2022, 2:35 PMgrossws
11/18/2022, 2:37 PMmaven-publish
plugin applied.
But if it is you'll also need to configure publication with
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
or something similargrossws
11/18/2022, 2:37 PMVampire
11/18/2022, 2:41 PMallprojects
and similar.
In his root project he has an allprojects
where he applies maven-publish
, otherwise he also would not have the publishToMavenLocal
task.Vampire
11/18/2022, 2:42 PMClaude Brisson
11/18/2022, 2:52 PMVampire
11/18/2022, 2:55 PMallprojects { ... }
or subprojects { ... }
or any other form of cross-project configuration is bad and should be avoided. It makes the build harder to understand, harder to maintain, and works against some of the more sophisticated Gradle features present or yet to come.Claude Brisson
11/18/2022, 3:15 PMSkipping task ':skorm-jdbc:publishToMavenLocal' as it has no actions.
.Vampire
11/18/2022, 3:17 PMpublishToMavenLocal
task actually never has any actions (unless you add some which you shouldn't). It is a lifecycle task that just depends on the actual publication tasks.Claude Brisson
11/18/2022, 3:20 PMVampire
11/18/2022, 3:38 PMpublish
task is just a lifecycle task without any actions. It just depends on the actual publishing tasks which do the work. If they don't, maybe provide a build scan that shows the problemClaude Brisson
11/18/2022, 3:50 PMVampire
11/18/2022, 3:51 PMVampire
11/18/2022, 3:53 PMpublishToMavenLocal
depended on publishMavenPublicationToMavenLocal
which did do the actual publishingClaude Brisson
11/18/2022, 3:54 PM