These are chat archives for scala-android/sbt-android

17th
Sep 2016
Alex Reisberg
@a-reisberg
Sep 17 2016 01:58
Keep getting this error
[error] (typebase-lite/*:publishSigned) java.io.IOException: Access to URL https://oss.sonatype.org/content/repositories/snapshots/default/typebase-lite_2.11/0.1-SNAPSHOT/typebase-
lite_2.11-0.1-SNAPSHOT.jar was refused by the server: Forbidden
when trying to publish
:/
seems like it's from the sbt's "root" project
how do I exclude it?

i can run

subproject/publishSigned

but then, it doesn't allow me to run

subproject/sonatypeRelease
for some reason
Perry
@pfn
Sep 17 2016 02:12
you dont need subproject for sonatypeRelease
Alex Reisberg
@a-reisberg
Sep 17 2016 02:14
yeah. the thing is that my publishSigned seems to fail with the root project :/
Perry
@pfn
Sep 17 2016 02:37
Of course, aggregation, set publishSigned := () in your root project
Alex Reisberg
@a-reisberg
Sep 17 2016 02:37
awesome, thanks!
do I need to import anything?
Alex Reisberg
@a-reisberg
Sep 17 2016 02:42
the following doesn't seem to work:
lazy val root = (project in file(".")).settings(commonSettings).settings(publishSigned := ())
Perry
@pfn
Sep 17 2016 02:53
perhaps you need to import the sbt-pgp class
Alex Reisberg
@a-reisberg
Sep 17 2016 02:53
thanks
Perry
@pfn
Sep 17 2016 02:53
should be automatic, unless you're not using sbt files
or an old version
Alex Reisberg
@a-reisberg
Sep 17 2016 02:54
i'm using .sbt files
Perry
@pfn
Sep 17 2016 02:54
of sbt-pgp
Alex Reisberg
@a-reisberg
Sep 17 2016 02:54
i just got it from their webpage so it should be new :)
Perry
@pfn
Sep 17 2016 02:54
then that should work
ah, PgpKeys.publishSigned
Alex Reisberg
@a-reisberg
Sep 17 2016 02:58
import com.typesafe.sbt.pgp.PgpKeys._
seems to work
Perry
@pfn
Sep 17 2016 02:59
stupid namespacing
Alex Reisberg
@a-reisberg
Sep 17 2016 02:59
:)
yup! working now :)
Thanks
Alex Reisberg
@a-reisberg
Sep 17 2016 03:06
do you use bintray?
just found out about it in the documentation of sbt :)
is it smth that replaces maven?
Perry
@pfn
Sep 17 2016 03:08
it serves the same function, but is not a default resolver, except for plugins
Alex Reisberg
@a-reisberg
Sep 17 2016 03:09
i see. seems nice :)
jhegedus42
@jhegedus42
Sep 17 2016 05:43
is there something i need to watch out for when doing multi project builds ? server/client side ? serverside : akka+spray.io , clientside : android
is there an example for this somewhere?
i wanna share serialization code between server and client
Perry
@pfn
Sep 17 2016 15:42
@jhegedus42, not really, just standard multiproject structure
Alex Reisberg
@a-reisberg
Sep 17 2016 16:07
First version of Typebase lite (simple, functional, type-safe orm and query language for Couchbase lite) has been released on Maven
https://github.com/a-reisberg/typebase-lite/releases
It's quite convenient and painless. Feedback is welcome!!! You guys should check it out :)
Perry
@pfn
Sep 17 2016 16:34
cool, will have to check it out, I haven't looked into using couchdb at all
Alex Reisberg
@a-reisberg
Sep 17 2016 16:35
:) Your comments will be very much appreciated!
jhegedus42
@jhegedus42
Sep 17 2016 16:44
thanks
Alex Reisberg
@a-reisberg
Sep 17 2016 16:54
@pfn Btw, you don't need couchdb to run couchbase lite. Cb lite is like sqlite, no server is needed. But if you happen to have Couchbase run on the server as well, then you get many sync functionalities.
Perry
@pfn
Sep 17 2016 18:19
indees