Skip to content

Commit 1bbde56

Browse files
committed
Publish full artifacts to cloudsmith as well
1 parent 7284770 commit 1bbde56

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ deploy:
2020
provider: script
2121
skip_cleanup: true
2222
script:
23-
- cp .travis/cloudsmith.sbt . && sbt ReproducibleBuilds/publish
23+
- cp .travis/cloudsmith-buildinfo.sbt cloudsmith.sbt && sbt ReproducibleBuilds/publish && cp .travis/cloudsmith-full.sbt cloudsmith.sbt && sbt publish
2424
on:
2525
tags: true
2626
repo: raboof/sbt-reproducible-builds
File renamed without changes.

.travis/cloudsmith-full.sbt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Example of some local configuration you can use as a rebuilder
3+
* (either 'official' or 3rd-party) to publish just the buildinfo
4+
* to a place you control, such as (in this case) my Cloudsmith
5+
* repo at https://cloudsmith.io/~raboof/repos/buildinfos/packages/
6+
*/
7+
8+
import net.bzzt.reproduciblebuilds.ReproducibleBuildsPlugin.ReproducibleBuilds
9+
10+
val repo = "Cloudsmith API" at "https://maven.cloudsmith.io/raboof/sbt-reproducible-builds/"
11+
12+
resolvers += repo
13+
ReproducibleBuilds / publishTo := Some(repo)
14+
ReproducibleBuilds / pomIncludeRepository := { x => false }
15+
16+
credentials += Credentials(
17+
realm = "Cloudsmith API",
18+
host = "maven.cloudsmith.io",
19+
userName = "raboof-owner",
20+
passwd = sys.env("CLOUDSMITH_API_KEY")
21+
)

0 commit comments

Comments
 (0)