Questions tagged [gradle-properties]

Gradle is a project build automation tool that uses a Groovy DSL. Gradle properties are options that make it easy to configure the Java process that will be used to execute your build.

Gradle is a build automation tool that uses a DSL. Gradle properties are options that make it easy to configure the Java process that will be used to execute your build.

Links:

Related tags:

17 questions
118
votes
10 answers

How to pass arguments from command line to Gradle

I'm trying to pass an argument from command line to a Java class. I followed this post: http://gradle.1045684.n5.nabble.com/Gradle-application-plugin-question-td5539555.html but the code does not work for me (perhaps it is not meant for JavaExec?).…
Lidia
  • 2,005
  • 5
  • 25
  • 32
18
votes
1 answer

What does it mean for a gradle property to be "experimental and unsupported"?

Several times, to solve an issue or update dependencies, I had to enable a given gradle option setting. For example, Robolectric 4.0 Migration guide states: Put this in your gradle.properties: android.enableUnitTestBinaryResources=true Likewise,…
PLNech
  • 3,087
  • 1
  • 23
  • 52
1
vote
1 answer

How can I pass a gradle property to jib via skaffold

I have a gradle build file with the following jib definition: def baseImage = 'ghcr.io/tobias-neubert/eclipse-temurin:17.0.2_8-jre' jib { from { image = baseImage auth { username = githubUser password = githubPassword } …
Tobias Neubert
  • 141
  • 1
  • 10
1
vote
1 answer

How to set a build property (the `-P` commandline argument) to null in Gradle?

When I execute gradle with the following command: ./gradlew publishToMavenLocal -PsplainVersion=null I got the following error: ... > Could not resolve all files for configuration ':graph-commons:scalaCompilerPlugins'. > Could not resolve…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
1
vote
1 answer

Android Studio does not include global gradle.properties file?

I installed Android Studio (Arctic Fox / 2020.3.1 Patch 1) for Windows and added a gradle.properties file to my username/.gradle directory. However, when I open my android project, Android Studio only recognizes the gradle.properties file that's on…
1
vote
0 answers

Gradle properties proxy not recognized

I'm trying to resolve the dependencies from a gradle project, When I opened the project and tried to synchronize gradle I got the following error: Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy…
TimeToCode
  • 901
  • 2
  • 16
  • 34
1
vote
1 answer

gradle.properties not taking values from command line

I have gradle.properties file for which I am passing value from command line as below command but not taking the value. gradle test -DsystemProp.RunnerApplication=QAEnv -Dgroups=CSP-Smoke My build.gradle file code as follows- import…
0
votes
0 answers

what is the gradle property android.sdk.channel used for?

I have seen references to the gradle property "android.sdk.channel" like here https://issuetracker.google.com/issues/206963797 and https://android-developers.googleblog.com/2021/10/whats-new-in-scalable-automated-testing.html What exactly is this…
reutsey
  • 1,743
  • 1
  • 17
  • 36
0
votes
0 answers

Gradle build fails with Out Of Memory : java heap space issue in IntelliJ version 2022.2.2

I am getting gradle build out of memory : Java heap space issue when trying to build Spring application which has multiple modules with gradle build tool. using IntelliJ 2022.2.2 ultimate edition. Gradle version - 8.1 I have tried to change…
0
votes
0 answers

gradle.properties as a yaml file

Is it possible to store gradle.properties in a yaml format file? I would like to set the plugin versions and some other properties in that file, but a yaml format is more convenient for me
0
votes
0 answers

Replacing "echo -e" with Heredoc

My jenkinsfile contains a really long one-line shell command to create gradle.properties. For better readability I replaced it with Heredoc. It does fail now though and I am unsure why. Can you spot the error? One-liner that does not fail is in this…
yelinek
  • 43
  • 5
0
votes
1 answer

How can I download gradle depedencies with proxy and without proxy

I have a build.gradle and I download some dependencies with proxy, but there are some dependencies which give 403 forbidden error and will work without proxy. How Can this be possible that gradle build knows when to use proxy and when not
0
votes
1 answer

In Gradle 7, how to disable parallel compilation using command line option "-Porg.gradle.parallel=false"?

In gradle document, -Pxxx=yyy commandline option is claimed to be able to override build property. So I want to override the property "org.gradle.parallel", which is already defined in the properties file and controls parallel execution. When I run…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
0
votes
2 answers

Gradle - Get the default value (convention) of a Property

I want to achieve a very basic thing (in any normal language): I would like to get the default value (convention) of a Property. Gradle docs in chapter Lazy configuration, describes how to apply the convention to a Property: def property =…
marverix
  • 7,184
  • 6
  • 38
  • 50
0
votes
0 answers

The project uses Gradle 2.14.1 which is incompatible with Android Studio 2020.3

While following udacity's advanced android application development course, I faced that problem in chapter 2 where I was asked to clone the "Android_me" project from their github repo, I did the same steps I was supposed to do but android studio…
1
2