scalamavensbtgnupgsonatype

"gpg: signing failed: inappropriate ioctl for device" publish scala library to maven central


This is my first time publishing Scala library into maven central. I follow this tutorial from Scala docs. After I prepare everything, I want to publish my library in SBT shell with command publishSigned, then I get the error about "gpg: signing failed: inappropriate ioctl for device". I did google and try to find the solutions, Here is some sources I find from StackOverflow and ArchLinux. I try to add $ export GPG_TTY=$(tty) into my ~/.bash_profile , but It does not work for me. It looks like sbt shell does not able to get gpg credentials in anyway.

How do I fix it? Thanks for any help.


Solution

  • I fixed this by downloading GPG Suite, and then typing passphrase manually