Skip to content
This repository was archived by the owner on May 3, 2025. It is now read-only.

Commit b13f8e6

Browse files
authored
Fix docs for gradleFileEncrypt setup
1 parent 7f37198 commit b13f8e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ gradleFileEncrypt {
5050
mapping = [ 'signing.properties' : 'secret/signing.properties' ]
5151
// (optional) setup password provider
5252
// if provided one is not secure enough for you
53-
passwordProvider { return 'YOUR LOGIC HERE'.toCharArray() }
53+
passwordProvider = { return 'YOUR LOGIC HERE'.toCharArray() }
5454
}
5555
```
5656

@@ -62,8 +62,8 @@ and value is target file without encrypted extension.
6262

6363
```groovy
6464
gradleFileEncrypt {
65-
files 'src/main/resources/secure.properties'
66-
mapping = ['src/main/resources/secure.properties':'secure/keys']
65+
plainFiles.from('src/main/resources/secure.properties')
66+
mapping = [ 'src/main/resources/secure.properties' : 'secure/keys' ]
6767
}
6868
```
6969

0 commit comments

Comments
 (0)