- 
                Notifications
    
You must be signed in to change notification settings  - Fork 705
 
Try sbt-publish-ci #1985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try sbt-publish-ci #1985
Conversation
| crossScalaVersions := Seq(scalaVersion.value, "2.12.14"), | ||
| javacOptions ++= Seq("-source", "1.8", "-target", "1.8"), | ||
| doc / javacOptions := Seq("-source", "1.8"), | ||
| versionScheme := Some("early-semver"), | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbt throws some annoying warnings without this I don't think it does anything functional though
          Codecov Report
 @@              Coverage Diff              @@
##             develop    #1985      +/-   ##
=============================================
+ Coverage      35.74%   37.82%   +2.07%     
- Complexity      1079     1116      +37     
=============================================
  Files            316      316              
  Lines          20941    21117     +176     
  Branches        2850     2924      +74     
=============================================
+ Hits            7485     7987     +502     
+ Misses         12557    12141     -416     
- Partials         899      989      +90     
 Continue to review full report at Codecov. 
  | 
    
| 
           @johnynek sorry if this takes a few iterations it is hard to test. But I think this should solve our GPG problem at the least  | 
    
| 
           also if it would be possible to run   | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know what tags we need to add to get it to pick up the right version?
| 
           Unfortunately I'm away from my machine now.  | 
    
          
 let's just merge and see what changes we need after that then. Can't break something that's not working anyways is my logic. re tags: not sure I will look at the git history locally when I get the chance. Wild guess but the tag might be attributed to a different branch?  | 
    
| 
           pushed a tag: https://github.com/twitter/scalding/tree/v0.18.0-RC2 let's see if this works.  | 
    
| 
           it's a miracle!!! https://oss.sonatype.org/content/repositories/snapshots/com/twitter/maple/0.18.0-RC2-1-64343489-SNAPSHOT/maple-0.18.0-RC2-1-64343489-SNAPSHOT-javadoc.jar going to try these out next week I'm sure something might come up @johnynek  | 
    
| 
           It's not a miracle, it's your hard work! Thank you!  | 
    
it handles the GPG part nicely (should work with the exiting ENV variable). It might take some iterations to get this to work properly as it's hard to test.
testing
I created some dummy GPG creds that should simulate how to CI environment will look like:
running
./sbt "ci-release"It does not fail on GPG signing anymore. I do have some errors from sonatype network requests that look suspicious. I would expect something like "forbidden" on the network requests but I get:
edit: I think this is because of malformed creds but I cannot confirm as I don't have real creds
sbt-denver
sbt-publish-ci still uses sbt-denver so the tag/snapshot workflow should still work. I kept my overrides for sbt-denver to disable adding timestamps to the snapshots because that will break tests.