Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 26 18:20
    wsargent commented #39
  • May 26 17:50
    jvican commented #39
  • Apr 26 20:44
    wsargent opened #39
  • Mar 24 2020 00:06
    jvican commented #38
  • Mar 17 2020 07:10
    JanBessai reopened #38
  • Mar 17 2020 07:10
    JanBessai commented #38
  • Mar 16 2020 23:01
    jvican commented #38
  • Mar 16 2020 23:00
    jvican closed #32
  • Mar 16 2020 23:00
    jvican commented #32
  • Feb 20 2020 16:22
    jvican commented #34
  • Feb 17 2020 12:47
    JanBessai commented #32
  • Feb 17 2020 11:46
    JanBessai closed #34
  • Feb 17 2020 11:46
    JanBessai commented #34
  • Feb 14 2020 15:52
    JanBessai closed #38
  • Feb 14 2020 15:52
    JanBessai commented #38
  • Feb 13 2020 23:18
    jvican commented #37
  • Feb 13 2020 23:18

    jvican on master

    Remove unneeded pgp settings Use gpg in global := false Update build and 1 more (compare)

  • Feb 13 2020 23:17
    jvican closed #35
  • Feb 13 2020 22:46

    jvican on master

    Improve publisher settings - C… Merge pull request #37 from Jan… (compare)

  • Feb 13 2020 22:46
    jvican closed #37
François Sarradin
@fsarradin
@jvican I've finally solved the issue with this script:
      mkdir -p ~/.gnupg
      echo "charset utf-8" > ~/.gnupg/gpg.conf
      echo "use-agent" >> ~/.gnupg/gpg.conf
      echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
      echo "allow-loopback-pinentry" > ~/.gnupg/gpg-agent.conf
      chown -R $(whoami) ~/.gnupg/
      find ~/.gnupg -type f -exec chmod 600 {} \;
      find ~/.gnupg -type d -exec chmod 700 {} \;
Jan Bessai
@JanBessai
Just referenced sbt-release-early in my phD thesis. Thanks for your great work! :heart:
Salar Rahmanian
@softinio
Quick question do you know if sbt release early plugin generates the scala doc also?
Jorge
@jvican
sure thing @softinio

Just referenced sbt-release-early in my phD thesis. Thanks for your great work! :heart:

Wow @JanBessai that's amazing! congratulations :smile: What's the thesis about?

Itamar Ravid
@iravid
Hi everyone! Just verifying: sbt-release-early's releaseEarly command does not handle cross-publishing, right?
Jorge
@jvican
no it doesn't
Kyle Daruwalla
@darsnack

Sorry for the clueless questions, but I have never used CI or pushed to a central repo for a project before.

I have opened an issue on Sonatype for my artifacts: https://issues.sonatype.org/browse/OSSRH-49437 and I have been granted access. I have my repo at https://github.com/UW-PHARM/BitSAD . If someone has time, could they quickly glance at my build.sbt to verify that I set up sbt-release-early correctly?

I have two subprojects that get aggregated by my root project. Do I have to enable Sonatype repos for each subproject individually?
Kyle Daruwalla
@darsnack
Any idea how to deal with “multiple staging repositories found”?
Carlos Quiroz
@cquiroz
I delete them manually in sonatype
Wish there was a better way
Kyle Daruwalla
@darsnack
Yeah just did that
Richard Gomes
@frgomes

Hello, I would like to do something like this pseudocode below:

organization in ThisBuild := my_github_username_or_organization

Can sbt-release-early or any of its dependencies expose that?

Richard Gomes
@frgomes
@iravid : (one month later...) Hello Itamar. I'm newbie to sbt-release-early and would like to do a cross build. Have you managed to publish a cross build? Thanks
Jan Bessai
@JanBessai
@jvican I've built a framework for program synthesis based on combinatory logic with intersection types. the practical implementation is in scala and released via release early :)
Jorge
@jvican
happy to hear that :+1: @JanBessai
Kyle Daruwalla
@darsnack
Any ideas on this error?javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Had to switch from JDK 8 to JDK 9 in Travis
Kyle Daruwalla
@darsnack
Was related to JDK 9. I switched the distro on Travis to Ubuntu 14.04 (the default distro when I last pushed), and everything worked. Seeing as JDK 8 is no longer supported on Travis with Ubuntu 16.04, the error above should probably be addressed to sbt-release-early supports JDK 9.
Dave Pereira-Gurnell
@davegurnell
I'm in the same "mutliple staging repositories" boat as @darsnack. My two-artifact projet is here and the latest Travis build is here. It looks like sbt-early-release is creating six staging repos, which seems like four too many.
The code for releasing to Sonatype looks like it does something different to the release command in one of my other projects (which isn't multi-project but is a cross-build, so maybe that's relevant). Maybe doing something like that will help?
Dave Pereira-Gurnell
@davegurnell
Ah. So it looks like I haven't published my GPG key, which is causing publishSigned to fail. I'll fix that and see what happens.
Jan Bessai
@JanBessai
hey.. is there news on scalacenter/sbt-release-early#34 ? Pull request scalacenter/sbt-release-early#35 looks relevant but stuck in drone CI limbo...
Roberto Casadei
@metaphori
I cannot manage to release with sbt-release-early:
sbt +releaseEarly
yields the following https://travis-ci.org/github/scafi/scafi/jobs/672299109
but does not open any staging repo. Why is that?
If, instead, I do
sbt +releaseEarly sonatypeBundleRelease
I get the staging repo but also the error Failed: signature-staging - Missing signature.. (see, e.g., https://travis-ci.org/github/scafi/scafi/jobs/672281805)
I don't get why the artifacts seem to not be signed. Any hint?
This is build.sbt: https://github.com/scafi/scafi/blob/51821b959656139571d5c0bd7fdfdeb1454c5e3e/build.sbt
Eric Peters
@er1c
just curious if anyone has tried using sbt-release-early with azure devops artifacts and found any quircks
Gavin Bisesi
@Daenyth
:wave: Does anyone have an example of using sbt-release-early with a private repository? I have one that works fine with sbt publish but it's not sonatype or bintray
Jorge
@jvican
no, but i think it should work if you just change publishTo
Gavin Bisesi
@Daenyth
hm I can try that. Looking at the code though it seems I might want to set an UnderlyingPublisher in my project/ build?
Gavin Bisesi
@Daenyth
It looks like if I were to define one actually, things would break because they use unsafe match on the Publisher
unless I override all the things
It looks like the default releaseEarlyPublish Task doesn't respect releaseEarlyNoGpg when set to the SonatypePublisher
looks like I can override that..
:= Keys.publish should work, looking at the code?
Gavin Bisesi
@Daenyth
aha it needs to be releaseEarlyPublish := Def.taskDyn(Keys.publish)
Gavin Bisesi
@Daenyth
Hmm, I'm trying to test locally and getting this:
[error] (ThisBuild / dynverAssertVersion) Version and dynver mismatch - version: 164451b6+20200513-1424, dynver: 164451b6+20200513-1425
what's up with that?
Gavin Bisesi
@Daenyth

seems to only be an issue with a dirty directory..

How can I not be prompted for pgp? I'm publishing to a private repo which is locked down, we don't have that set up nor is it required.

I did releaseEarlyPublish := Def.taskDyn(Keys.publish) and I created an empty pubring and secring, but when I run releaseEarly I still get an interactive prompt for the passphrase

hm do I need PGP_PASS="" ?
Gavin Bisesi
@Daenyth
yup that worked... now complaining about sonatype credentials :|
Bizarre it seems like this plugin is overwriting publishTo somehow even though I set it explicitly..
Gavin Bisesi
@Daenyth
ok so it seems like ThisBuild / publishTo is just completely ignored somehow, I thought ThisBuild settings overrode everything
if I set publishTo for each project, then the value is what I expect
Global / publishTo also doesn't work
Gavin Bisesi
@Daenyth
I think I'm just going to use sbt-release directly and copy what code I want... unfortunately this plugin makes way too many assumptions :/
Jorge
@jvican
Yes, it's meant to be opinionated and it hasn't been designed with your use case in mind
Feel free to copy whatever code you want from the plugin or create your own thing with other plugins
Gavin Bisesi
@Daenyth
I did go that route, ended up only taking ~20min to get it working :)
I just needed to remove the bintray+sonatype+pgp code and leave the rest, basically
Jorge
@jvican
sounds good :+1: glad it worked out