{"id":15862,"date":"2019-04-11T13:22:33","date_gmt":"2019-04-11T13:22:33","guid":{"rendered":"https:\/\/blog.taragana.com\/?p=15862"},"modified":"2019-04-11T15:09:23","modified_gmt":"2019-04-11T15:09:23","slug":"where-to-store-passwords-credentials-in-gradle-project","status":"publish","type":"post","link":"https:\/\/blog.taragana.com\/where-to-store-passwords-credentials-in-gradle-project-15862","title":{"rendered":"Where to store passwords \/ credentials in Gradle Project"},"content":{"rendered":"\n

Problem Statement<\/h2>\n\n\n\n

Projects are checked in version control systems like git. You don’t want your credentials to be checked in git too. As such you need a way to easily inject your credentials in your build while keeping it away from prying eye.<\/p>\n\n\n\n

Solution<\/h2>\n\n\n\n

The solution is to store it in ~\/.gradle\/gradle.properties<\/strong>. This file is not checked in and can be used across all your projects.<\/p>\n","protected":false},"excerpt":{"rendered":"

Problem Statement Projects are checked in version control systems like git. You don’t want your credentials to be checked in git too. As such you need a way to easily inject your credentials in your build while keeping it away from prying eye. Solution The solution is to store it in ~\/.gradle\/gradle.properties. This file is […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,12],"tags":[144,129],"_links":{"self":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15862"}],"collection":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/comments?post=15862"}],"version-history":[{"count":2,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15862\/revisions"}],"predecessor-version":[{"id":15864,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/posts\/15862\/revisions\/15864"}],"wp:attachment":[{"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/media?parent=15862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/categories?post=15862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.taragana.com\/wp-json\/wp\/v2\/tags?post=15862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}