How would you add a multi-line property to `~/.gra...
# community-support
m
How would you add a multi-line property to
~/.gradle/gradle.properties
(e.g., in-memory GPG key)?
v
Or by escaping the line end with a backslash
e
doesn't that result in a line continuation though?
v
D'oh, you're right of course.
m
This is a context-specific answer, but
\
is fine for an in-memory GPG key. Any whitespace works; it doesn't have to be a newline. The main thing I was trying to figure out if there was something more efficient than adding that to a bunch of lines. But I guess not.
e
you need newlines for ASCII armored keys, at least the header and the footer, which might look like
Copy code
key=\n\
 -----BEGIN PGP PRIVATE KEY BLOCK-----\n\
 ...\n\
 -----END PGP PRIVATE KEY BLOCK-----\n
but if a raw key is fine then you don't need
\n
, and you can use line continuations to split up a long line however you want