Skip to content

SBT_PGP_USE_GPG is a system property, not an environment variable #169

@smarter

Description

@smarter

The README says:

Or by setting SBT_PGP_USE_GPG environment variable to 0.

This is wrong on two counts:

  • sys.props.get("SBT_PGP_USE_GPG") match {
    case Some(_) => java.lang.Boolean.getBoolean("SBT_PGP_USE_GPG")
    case None => true
    }
  • While setting the system property to 0 would indeed result in java.lang.Boolean.getBoolean("SBT_PGP_USE_GPG") returning false, the same would happen if it was set to 1. Boolean system properties should be set to either "false" or "true" to be properly parsed by java.lang.Boolean.getBoolean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions