FunkyMuse
07/03/2023, 10:27 AMmaven-publish
plugin and listing the tasks we have the task publishAllPublicationsToMavenRepository
But when using the same maven-publish
with Kotlin Gradle script, there's no task
publishAllPublicationsToMavenRepository
How do we fix this?Vampire
07/03/2023, 11:00 AMmaven
in the Kotlin version.FunkyMuse
07/03/2023, 12:42 PMFunkyMuse
07/03/2023, 12:43 PMFunkyMuse
07/03/2023, 12:44 PMFunkyMuse
07/03/2023, 12:44 PMFunkyMuse
07/03/2023, 12:45 PMsourcesets["main"].allSources
FunkyMuse
07/03/2023, 12:46 PMkotlin.srcDirs
is a function invocation to set the srcDirs, there isn't any getterFunkyMuse
07/03/2023, 12:47 PMartifacts {
add("archives", androidSourcesJar)
}
Vampire
07/03/2023, 12:52 PMVampire
07/03/2023, 12:52 PMdependencyResolutionManagement { repositories { ... } }
which as the name suggests is for dependency resolution, not for publishing.Vampire
07/03/2023, 12:53 PMpublishing { repositories { ... } }
where you have to define repositories for publishing.Vampire
07/03/2023, 12:53 PMFunkyMuse
07/03/2023, 1:04 PMpublishAllPublicationsToMavenRepository
Since you mentioned bad practices, how do we make it better and also fix the issue?Vampire
07/03/2023, 1:11 PMI've tried but the task we use is still not availableThen you still did not define the publishing repository
Vampire
07/03/2023, 1:26 PMFunkyMuse
07/03/2023, 1:33 PM