I don't want to publish on maven
# touchlab-tools
f
I don't want to publish on maven
m
I guess then you can build it and then push it to the local maven repo?
f
the app does not pick up the library
I have added mavenLocal as repo
m
Hmm, I don’t know then - maybe @russhwolf knows 🙂
Just for the record: Which Gradle version do you use?
f
@Marc Reichelt 5.6.4
then I run
./gradlew shared:pubTML app:build
and get
Could not resolve co.touchlab.kampstarter:shared:1.1
I also tried the other publish to maven local tasks
m
Hmm, I would have to dive into the issue myself (but don’t have the time right now). Others might know more - maybe when @kpgalligan’s timezone comes up he can have a look 🙂
f
Thank you anyway!
👍 1
r
Try moving group and version to top-level instead of having them inside the kotlin block
f
Same result 😕
Do I need to call all the publish tasks?
r
Just publishToMavenLocal should be enough
Issue might be that you're trying to do everything at once. Does
publishToMavenLocal
work if you don't try to build
app
at the same time?
f
Yes, I just shared it in one line for brevity
r
If not, try splitting app into a separate gradle project with its own
settings.gradle
and see if that helps
f
I can publish something, but there is no aar in .m2
r
oh wait I know what it is
add
publishAllLibraryVariants()
to the android target
👍 1
f
Build success! Thank you very much!
r
Nice!
m
🎉