Thanks! That did it. Which raises two questions: 1) Why doesn't gradle log anywhere that it's reading that file? 2) Why doesn't the dot notation work from that file but does from the other locations?
-Jim Moore On Mon, May 9, 2011 at 7:33 AM, Elmar Kretzer <[email protected]> wrote: > Don`t know if you already solved the problem > > try to use > > artifactoryPublishUsername > > as far as i can remember i had a similar problem > - even with artifactory properties ;-) - and now i only use properties > without dot syntax. > > hope this might help you > > Elmar > > > Am 08.05.2011 um 04:42 schrieb Jim Moore: > > What's odd is that while I see tests in the Gradle codebase to support > loading ~/.gradle/gradle.properties, I don't see anywhere that it's actually > being done. Is nobody else trying to use ~/.gradle/gradle.properties ?? > > -Jim Moore > > > On Thu, May 5, 2011 at 12:28 PM, Jim Moore <[email protected]> wrote: > >> OSX. Yes, it's the same directory as where the cache resides. >> >> -Jim Moore >> >> >> On Thu, May 5, 2011 at 10:24 AM, <[email protected]> wrote: >> >>> Sorry for the red herring. >>> >>> What is your environment? Linux? Windows cmd.exe? Windows + Cygwin? >>> >>> In Windows + Cygwin, I've noticed that cygwin and gradle can have >>> different >>> ideas of where my home directory is. Is there a cache directory under >>> ~/.gradle? If there is not, then you may try to find the .gradle dir >>> that >>> has the cache folder. >>> >>> Unfortunately I'm just guessing. Sorry to run you down rabbit trails :) >>> >>> >>> Jeremy D. Young >>> Web Architect >>> O'Reilly Auto Parts >>> >>> Jim Moore <[email protected]> wrote on 05/05/2011 10:51:32 AM: >>> >>> > From: Jim Moore <[email protected]> >>> > To: [email protected] >>> > Date: 05/05/2011 10:58 AM >>> > Subject: Re: [gradle-user] ~/.gradle/gradle.properties not being read >>> > >>> > If I copy that same file into the root of my project, everything >>> > works. But of course I don't want to check in my credentials. >>> > >>> > -Jim Moore >>> > >>> >>> > On Thu, May 5, 2011 at 9:49 AM, <[email protected]> wrote: >>> > Is your gradle.properties file formatted properly? >>> > >>> > name1=value1 >>> > name2=value2 >>> > >>> > Are colons valid? I could be ignorant of alternatives, but I thought >>> that >>> > was the only option. >>> > >>> > >>> > Jeremy D. Young >>> > Web Architect >>> > O'Reilly Auto Parts >>> > >>> > Jim Moore <[email protected]> wrote on 05/05/2011 09:02:41 AM: >>> > >>> > > From: Jim Moore <[email protected]> >>> > > To: Gradle-User <[email protected]> >>> > > Date: 05/05/2011 09:12 AM >>> > > Subject: [gradle-user] ~/.gradle/gradle.properties not being read >>> > > >>> > > I'm trying to get the following to work in 1.0-milestone-3, since >>> > > the company's repo is authenticated ("private" information replaced >>> > > with ellipses): >>> > > >>> > > buildscript { >>> > > repositories { >>> > > mavenRepo name: 'plugins-repo', urls: "${project.getProperty >>> > > ('artifactory.contextUrl')}/plugins-releases" >>> > > >>> > > org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials >>> > > ("Artifactory Realm", "....", "${project.getProperty >>> > > ('artifactory.publish.username')}", "${project.getProperty >>> > > ('artifactory.publish.password')}") >>> > > } >>> > > apply from: "http://gradle.artifactoryonline.com/gradle/plugins/ >>> > > org/jfrog/buildinfo/build-info-extractor-gradle/1.0.1/ >>> > > artifactoryplugin-1.0.1.gradle" >>> > > } >>> > > >>> > > I have a ~/.gradle/gradle.properties file that looks like this: >>> > > >>> > > artifactory.contextUrl: https://.... >>> > > artifactory.resolve.repoKey: repo >>> > > artifactory.publish.username: .... >>> > > artifactory.publish.password: .... >>> > > >>> > > However, when it runs it doesn't even try to read it: >>> > > >>> > > [INFO] [org.gradle.BuildLogger] Starting Build >>> > > [DEBUG] [org.gradle.BuildLogger] Gradle user >>> home: /Users/jmoore/.gradle >>> > > [DEBUG] [org.gradle.BuildLogger] Current >>> dir: /usr/local/files/src/myproj >>> > > [DEBUG] [org.gradle.BuildLogger] Settings file: null >>> > > [DEBUG] [org.gradle.BuildLogger] Build file: null >>> > > [DEBUG] [org.gradle.BuildLogger] Select default project: with >>> > > project directory '/usr/local/files/src/myproj' >>> > > [DEBUG] [org.gradle.initialization.BuildSourceBuilder] Starting to >>> > > build the build sources. >>> > > [DEBUG] [org.gradle.initialization.BuildSourceBuilder] Gradle source >>> > > dir does not exist. We leave. >>> > > [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] >>> > > Found env project properties: [] >>> > > [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] >>> > > Found system project properties: [] >>> > > [DEBUG] >>> > > [org.gradle.initialization.ScriptEvaluatingSettingsProcessor] >>> > > Timing: Processing settings took: 0.021 secs >>> > > [INFO] [org.gradle.BuildLogger] Settings evaluated using settings >>> > > file '/usr/local/files/src/myproj/settings.gradle'. >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] Loading Project >>> objects >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] Looking for project >>> > > properties from: /usr/local/files/src/myproj/gradle.properties >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] project property >>> > > file does not exists. We continue! >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] Looking for project >>> > > properties from: /usr/local/files/src/myproj/plugins/artifactory/ >>> > > gradle.properties >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] project property >>> > > file does not exists. We continue! >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] Looking for project >>> > > properties from: /usr/local/files/src/myproj/common/gradle.properties >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] project property >>> > > file does not exists. We continue! >>> > > [DEBUG] [org.gradle.initialization.BuildLoader] Timing: Loading >>> > > projects took: 0.032 secs >>> > > [INFO] [org.gradle.BuildLogger] Projects loaded. Root project using >>> > > build file '/usr/local/files/src/myproj/build.gradle'. >>> > > ........ >>> > > [ERROR] [org.gradle.BuildExceptionReporter] Caused by: >>> > > groovy.lang.MissingPropertyException: Could not find property >>> > > 'artifactory.contextUrl' on root project 'myproj'. >>> > > >>> > > Does it matter that I'm using the Gradle Wrapper? >>> > > >>> > > -Jim Moore >>> > > >>> > > >>> > > -- >>> > > This message has been scanned for viruses and >>> > > dangerous content by MailScanner, and is >>> > > believed to be clean. >>> > >>> > This communication and any attachments are confidential, protected >>> > by Communications Privacy Act 18 USCS § 2510, solely for the use of >>> > the intended recipient, and may contain legally privileged material. >>> > If you are not the intended recipient, please return or destroy it >>> > immediately. Thank you. >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe from this list, please visit: >>> > >>> > http://xircles.codehaus.org/manage_email >>> > >>> >>> > >>> > >>> > -- >>> > This message has been scanned for viruses and >>> > dangerous content by MailScanner, and is >>> > believed to be clean. >>> >>> This communication and any attachments are confidential, protected by >>> Communications Privacy Act 18 USCS § 2510, solely for the use of the >>> intended recipient, and may contain legally privileged material. If you are >>> not the intended recipient, please return or destroy it immediately. Thank >>> you. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> > >
