@jducoeur I got further with your blog post. Still, I have the error in the end as follows:
sbt> pgp-cmd gen-key
Please enter the name associated with the key: ???????
Please enter the email associated with the key: [email protected]
Please enter the passphrase for the key: ***********
Please re-enter the passphrase for the key: ***********
[info] Creating a new PGP key, this could take a long time.
[info] Public key := /home/auser/.sbt/gpg/pubring.asc
[info] Secret key := /home/auser/.sbt/gpg/secring.asc
[info] Please do not share your secret key. Your public key is free to share.
sbt> pgp-cmd send-key [email protected] hkp://pool.sks-keyservers.net
[info] Sending PublicKeyRing(PublicKey(b286898b766fcfc2, ??????? <[email protected]>, RSA@2048)) to HkpServer(http://pool.sks-keyservers.net:11371)
sbt> module/publishSigned
[info] Wrote /home/auser/gnmodule/module/target/scala-2.11/gnmodule_2.11-0.1.2-SNAPSHOT.pom
[error] gpg: directory `/home/auser/.gnupg' created
[error] gpg: new configuration file `/home/auser/.gnupg/gpg.conf' created
[error] gpg: WARNING: options in `/home/auser/.gnupg/gpg.conf' are not yet active during this run
[error] gpg: keyring `/home/auser/.gnupg/secring.gpg' created
[error] gpg: no default secret key: secret key not available
[error] gpg: signing failed: secret key not available
[error] java.lang.RuntimeException: Failure running gpg --detach-sign. Exit code: 2
Seems like SBT becomes broken when gnupg
folder with files is created. Environment:
➜ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
➜ $ gpg --version
gpg (GnuPG) 1.4.16
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
Any ideas how to fix that?