• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to access property defined in local.properties.groovy file in build.gradle

 
Greenhorn
Posts: 11
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I creating a build set up in Gradle and for that I am using gradle and groovy.

In my parent build directory I have build.gradle and local.properties.groovy file to read local properties.

But I can not access any property (present in local.properties.groovy file) in my build.gradle.

can anyone please help me how to access properties inside other local properties files?

below is the code I wrote in build.gradle.  And $test.value1 is the property defined in local.properties.groovy file which I am trying to read

 
reply
    Bookmark Topic Watch Topic
  • New Topic