How to access encrypted passwords from specific location using gradle-credentials-pluginCustom Task/Plugin in gradle“USERAUTH fail” using gradle-ssh-plugin with identityGradle Custom Plugin: How To Configure A Gradle Task Using Properties Expected to be Set in the Build ScriptHow to use the Transform API provided by Android Gradle plugin?How to configure gradle application plugin to set my user.dir to the location of the script?Gradle plugin specifying default extension valuesGradle Plugin Development (Java code): Update extension properties for Internal applied PluginCalling my plugin in buildsrc/ several timesHow to separate source files per test type in an Android library project?

Found and corrected a mistake on someone's else paper -- praxis?

Who goes first? Person disembarking bus or the bicycle?

How to convert diagonal matrix to rectangular matrix

Publishing papers seem natural to many, while I find it really hard to think novel stuff to pursue till publication. How to cope up with this?

How does Kaya's Ghostform interact with Elenda, the Dusk Rose?

Can a landlord force all residents to use the landlord's in-house debit card accounts?

Can a UA Lore Mastery wizard use the Spell Secrets or Alchemical Casting features to modify spells cast through wands or staffs?

Moving millions of files to a different directory with specfic name patterns

Can Jimmy hang on his rope?

How to get the right toolbar back on Inkscape? It's disappeared

Appropriate conduit for several data cables underground over 300' run

Shrinking padding of node with label options

Can the word "desk" be used as a verb?

Replacement for Thyme

Strong Password Detection in Python

What are the consequences for a developed nation to not accept any refugees?

Adjust the Table

Users forgetting to regenerate PDF before sending it

Good sources on developing mathematical models

Is it okay to use open source code to do an interview task?

Why do people prefer metropolitan areas, considering monsters and villains?

How should I ask for a "pint" in countries that use metric?

When do flights get cancelled due to fog?

How do you correct inclination at launch to ISS?



How to access encrypted passwords from specific location using gradle-credentials-plugin


Custom Task/Plugin in gradle“USERAUTH fail” using gradle-ssh-plugin with identityGradle Custom Plugin: How To Configure A Gradle Task Using Properties Expected to be Set in the Build ScriptHow to use the Transform API provided by Android Gradle plugin?How to configure gradle application plugin to set my user.dir to the location of the script?Gradle plugin specifying default extension valuesGradle Plugin Development (Java code): Update extension properties for Internal applied PluginCalling my plugin in buildsrc/ several timesHow to separate source files per test type in an Android library project?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















We are using gradle-credentials-plugin to encrypt project passwords



--Add credentials:



gradle addCredentials --key "InitialPassword" --value $pwdValue -PcredentialsLocation=$baseDir


--Read Passwords:



project.IntialPassword = credentials.InitialPassword



Error: > java.lang.NullPointerException (no error message)



Reason: Encrypted passwords file not finding as the plugin searching
in .gradle default folder




How to set credentialsLocation value so that the plugin can read password encrypted file from $baseDir in gradle.build?



tried setting credentialsLocation property but no luck.



Expected: The gradle credentials plugin must read encrypted passwords from custom directory.










share|improve this question



















  • 1





    This seems more specific to the gradle-credentials plugin as opposed to ml-gradle, but the instructions here may help - github.com/marklogic-community/ml-gradle/wiki/… .

    – rjrudin
    Mar 26 at 13:58











  • @rjrudin I tried referring the documentation but could not get any help. Also tried setting credentialsLocation but gradle still searching in default cache directory. 'setProperty("credentialsLocation",System.getProperty("user.dir"))' If a custom directory location is passed through the credentialsLocation project property when starting the build, the credentials file will be seeked in that directory.

    – mikey
    Mar 26 at 16:07












  • Have you verified that the user running gradle has permissions on the 'gradle.encrypted.properties' file in the specified directory?

    – Michael Gardner
    Mar 26 at 22:40











  • @Michael Yes I assume the user have permissions. Is there any specific way to check the user permissions?

    – mikey
    Mar 26 at 22:48











  • @MichaelGardner ,the encrypted file gradle.encrypted.properties is created in the expected path -PcredentialsLocation=$baseDir but when I tried to read the passwords from gradle.build it is still searching in gradle default home path.

    – mikey
    Mar 27 at 8:34

















2















We are using gradle-credentials-plugin to encrypt project passwords



--Add credentials:



gradle addCredentials --key "InitialPassword" --value $pwdValue -PcredentialsLocation=$baseDir


--Read Passwords:



project.IntialPassword = credentials.InitialPassword



Error: > java.lang.NullPointerException (no error message)



Reason: Encrypted passwords file not finding as the plugin searching
in .gradle default folder




How to set credentialsLocation value so that the plugin can read password encrypted file from $baseDir in gradle.build?



tried setting credentialsLocation property but no luck.



Expected: The gradle credentials plugin must read encrypted passwords from custom directory.










share|improve this question



















  • 1





    This seems more specific to the gradle-credentials plugin as opposed to ml-gradle, but the instructions here may help - github.com/marklogic-community/ml-gradle/wiki/… .

    – rjrudin
    Mar 26 at 13:58











  • @rjrudin I tried referring the documentation but could not get any help. Also tried setting credentialsLocation but gradle still searching in default cache directory. 'setProperty("credentialsLocation",System.getProperty("user.dir"))' If a custom directory location is passed through the credentialsLocation project property when starting the build, the credentials file will be seeked in that directory.

    – mikey
    Mar 26 at 16:07












  • Have you verified that the user running gradle has permissions on the 'gradle.encrypted.properties' file in the specified directory?

    – Michael Gardner
    Mar 26 at 22:40











  • @Michael Yes I assume the user have permissions. Is there any specific way to check the user permissions?

    – mikey
    Mar 26 at 22:48











  • @MichaelGardner ,the encrypted file gradle.encrypted.properties is created in the expected path -PcredentialsLocation=$baseDir but when I tried to read the passwords from gradle.build it is still searching in gradle default home path.

    – mikey
    Mar 27 at 8:34













2












2








2








We are using gradle-credentials-plugin to encrypt project passwords



--Add credentials:



gradle addCredentials --key "InitialPassword" --value $pwdValue -PcredentialsLocation=$baseDir


--Read Passwords:



project.IntialPassword = credentials.InitialPassword



Error: > java.lang.NullPointerException (no error message)



Reason: Encrypted passwords file not finding as the plugin searching
in .gradle default folder




How to set credentialsLocation value so that the plugin can read password encrypted file from $baseDir in gradle.build?



tried setting credentialsLocation property but no luck.



Expected: The gradle credentials plugin must read encrypted passwords from custom directory.










share|improve this question
















We are using gradle-credentials-plugin to encrypt project passwords



--Add credentials:



gradle addCredentials --key "InitialPassword" --value $pwdValue -PcredentialsLocation=$baseDir


--Read Passwords:



project.IntialPassword = credentials.InitialPassword



Error: > java.lang.NullPointerException (no error message)



Reason: Encrypted passwords file not finding as the plugin searching
in .gradle default folder




How to set credentialsLocation value so that the plugin can read password encrypted file from $baseDir in gradle.build?



tried setting credentialsLocation property but no luck.



Expected: The gradle credentials plugin must read encrypted passwords from custom directory.







marklogic gradle-plugin ml-gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 26 at 22:40









Michael Gardner

5,4755 gold badges18 silver badges30 bronze badges




5,4755 gold badges18 silver badges30 bronze badges










asked Mar 25 at 22:49









mikeymikey

406 bronze badges




406 bronze badges







  • 1





    This seems more specific to the gradle-credentials plugin as opposed to ml-gradle, but the instructions here may help - github.com/marklogic-community/ml-gradle/wiki/… .

    – rjrudin
    Mar 26 at 13:58











  • @rjrudin I tried referring the documentation but could not get any help. Also tried setting credentialsLocation but gradle still searching in default cache directory. 'setProperty("credentialsLocation",System.getProperty("user.dir"))' If a custom directory location is passed through the credentialsLocation project property when starting the build, the credentials file will be seeked in that directory.

    – mikey
    Mar 26 at 16:07












  • Have you verified that the user running gradle has permissions on the 'gradle.encrypted.properties' file in the specified directory?

    – Michael Gardner
    Mar 26 at 22:40











  • @Michael Yes I assume the user have permissions. Is there any specific way to check the user permissions?

    – mikey
    Mar 26 at 22:48











  • @MichaelGardner ,the encrypted file gradle.encrypted.properties is created in the expected path -PcredentialsLocation=$baseDir but when I tried to read the passwords from gradle.build it is still searching in gradle default home path.

    – mikey
    Mar 27 at 8:34












  • 1





    This seems more specific to the gradle-credentials plugin as opposed to ml-gradle, but the instructions here may help - github.com/marklogic-community/ml-gradle/wiki/… .

    – rjrudin
    Mar 26 at 13:58











  • @rjrudin I tried referring the documentation but could not get any help. Also tried setting credentialsLocation but gradle still searching in default cache directory. 'setProperty("credentialsLocation",System.getProperty("user.dir"))' If a custom directory location is passed through the credentialsLocation project property when starting the build, the credentials file will be seeked in that directory.

    – mikey
    Mar 26 at 16:07












  • Have you verified that the user running gradle has permissions on the 'gradle.encrypted.properties' file in the specified directory?

    – Michael Gardner
    Mar 26 at 22:40











  • @Michael Yes I assume the user have permissions. Is there any specific way to check the user permissions?

    – mikey
    Mar 26 at 22:48











  • @MichaelGardner ,the encrypted file gradle.encrypted.properties is created in the expected path -PcredentialsLocation=$baseDir but when I tried to read the passwords from gradle.build it is still searching in gradle default home path.

    – mikey
    Mar 27 at 8:34







1




1





This seems more specific to the gradle-credentials plugin as opposed to ml-gradle, but the instructions here may help - github.com/marklogic-community/ml-gradle/wiki/… .

– rjrudin
Mar 26 at 13:58





This seems more specific to the gradle-credentials plugin as opposed to ml-gradle, but the instructions here may help - github.com/marklogic-community/ml-gradle/wiki/… .

– rjrudin
Mar 26 at 13:58













@rjrudin I tried referring the documentation but could not get any help. Also tried setting credentialsLocation but gradle still searching in default cache directory. 'setProperty("credentialsLocation",System.getProperty("user.dir"))' If a custom directory location is passed through the credentialsLocation project property when starting the build, the credentials file will be seeked in that directory.

– mikey
Mar 26 at 16:07






@rjrudin I tried referring the documentation but could not get any help. Also tried setting credentialsLocation but gradle still searching in default cache directory. 'setProperty("credentialsLocation",System.getProperty("user.dir"))' If a custom directory location is passed through the credentialsLocation project property when starting the build, the credentials file will be seeked in that directory.

– mikey
Mar 26 at 16:07














Have you verified that the user running gradle has permissions on the 'gradle.encrypted.properties' file in the specified directory?

– Michael Gardner
Mar 26 at 22:40





Have you verified that the user running gradle has permissions on the 'gradle.encrypted.properties' file in the specified directory?

– Michael Gardner
Mar 26 at 22:40













@Michael Yes I assume the user have permissions. Is there any specific way to check the user permissions?

– mikey
Mar 26 at 22:48





@Michael Yes I assume the user have permissions. Is there any specific way to check the user permissions?

– mikey
Mar 26 at 22:48













@MichaelGardner ,the encrypted file gradle.encrypted.properties is created in the expected path -PcredentialsLocation=$baseDir but when I tried to read the passwords from gradle.build it is still searching in gradle default home path.

– mikey
Mar 27 at 8:34





@MichaelGardner ,the encrypted file gradle.encrypted.properties is created in the expected path -PcredentialsLocation=$baseDir but when I tried to read the passwords from gradle.build it is still searching in gradle default home path.

– mikey
Mar 27 at 8:34












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347492%2fhow-to-access-encrypted-passwords-from-specific-location-using-gradle-credential%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55347492%2fhow-to-access-encrypted-passwords-from-specific-location-using-gradle-credential%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해