gisaia / ARLAS-proc

Workaround about data ingestion with computing frameworks
Apache License 2.0
4 stars 0 forks source link

Publish arlas-proc to cloudsmith #85 #92

Closed laurent-thiebaud-gisaia closed 5 years ago

laurent-thiebaud-gisaia commented 5 years ago

Related to https://github.com/gisaia/ARLAS-proc/issues/85

sfalquier commented 5 years ago

I thought we won't publish ARLAS-proc fat jar to cloudsmith and only regular jar. Am I missing a point?

laurent-thiebaud-gisaia commented 5 years ago

@sfalquier we said we should publish only the regular jar to Cloudsmith and send the fat jar to the GS.

I was not able to do so. When I only add these lines to build.sbt:

ThisBuild / publishTo := { Some("Cloudsmith API" at "https://maven.cloudsmith.io/gisaia/private/") }
ThisBuild / pomIncludeRepository := { x => false }
ThisBuild / credentials += Credentials("Cloudsmith API", "maven.cloudsmith.io", sys.env.getOrElse("CLOUDSMITH_USER", ""), sys.env.getOrElse("CLOUDSMITH_API_KEY", ""))

Then sbt publish will send the fat JAR to the GS (I expect it to happen only with gcs:publish).

If you're not OK with the fat-jar-project solution, I can look deeper to fix it (but I think that to storage the fat jar on GS was a temporary solution).

laurent-thiebaud-gisaia commented 5 years ago

With your approval, I merge this PR.