Skip to content

chibat/gradle-file-encrypt-example

Repository files navigation

gradle-file-encrypt plugin example

Build Status

This repository is a example for gradle-file-encrypt plugin.

decrypt

$ git clone https://github.com/chibat/gradle-file-encrypt-example.git
$ cd gradle-file-encrypt-example
$ echo "gfe.password=pass" > local.properties
$ # or
$ export GFE_PASSWORD=pass
$
$ ./gradlew decryptFiles
$ cat src/main/resources/application-default.yml
password: foo
$ cat src/main/resources/application-production.yml
password: bar

encrypt

$ ./gradlew encryptFiles

If the command is not completed, set following environment value before 'gradlew'.

$ export JAVA_OPTS='-Dsecurerandom.strongAlgorithms=NativePRNGNonBlocking:SUN'

.gitignore

### gradle-file-encrypt plugin ###
local.properties

### App Config ###
src/main/resources/application-default.yml
src/main/resources/application-production.yml

Note

  • git pull -> gradlew decryptFiles
  • gradlew encryptFiles -> git add

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published