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


Reply via email to