-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update versions, cap (and reorder) CHANGELOG, add script for 0.10.0-p…
…re4 final.
- Loading branch information
Showing
4 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env -S scala-cli shebang | ||
|
||
// this is modified from my usual script to only publish the root module. | ||
// for now, we are only publishing c3p0-test locally. | ||
|
||
// expects SONATYPE_USERNAME and SONATYPE_PASSWORD to be set prior to running! | ||
|
||
val console = System.console() | ||
if (console == null) { | ||
System.err.println("Could not initialize system console. Exiting.") | ||
System.exit(1) | ||
} | ||
|
||
val sonatypeUsername = System.getenv("SONATYPE_USERNAME") | ||
val sonatypePassword = System.getenv("SONATYPE_PASSWORD") | ||
if (sonatypeUsername == null) { | ||
System.err.println(s"Environment variable 'SONATYPE_USERNAME' not set. Exiting.") | ||
System.exit(1) | ||
} | ||
if (sonatypePassword == null) { | ||
System.err.println(s"Environment variable 'SONATYPE_PASSWORD' not set. Exiting.") | ||
System.exit(1) | ||
} | ||
|
||
val gpgPassphrase = console.readPassword("Please enter GPG passphrase for signing: ") | ||
|
||
def millBinary( local : Boolean ) = | ||
(if local then "./" else "") + "mill" | ||
|
||
val useLocal = (new java.io.File( millBinary(true) )).exists() | ||
|
||
val argsPreparsed = Seq( | ||
millBinary( useLocal ), "mill.scalalib.PublishModule/publishAll", "publishArtifacts", | ||
"--sonatypeCreds", s"${sonatypeUsername}:${sonatypePassword}", | ||
"--gpgArgs", s"--passphrase=${new String(gpgPassphrase)},--batch,--yes,-a,-b,--no-tty,--pinentry-mode=loopback", | ||
"--release", "false" | ||
) | ||
|
||
import scala.sys.process._ | ||
argsPreparsed.! |