Questions tagged [gradle.properties]

32 questions
1
vote
1 answer

Load common properties in build.gradle doesn't work for buildscript

I have multiple projects which share common properties. I want to manage common dependencies in one place so I decided to use this approach (from Edit section). //properties.gradle ext { pluginVersion = "x.x.x" } //build.gradle apply from:…
makozaki
  • 3,772
  • 4
  • 23
  • 47
1
vote
1 answer

How to get value from gradle.properties in .class file at the time of build

I would like to get a property value from Gradle.properties in Java class. In Java, the value should be replaced at build time, and in the .jar(.class) file the value will come but not in a .java file. So that we can change the value directly in…
1
vote
0 answers

Passing parameter value from properties file to Jenkins

I have problem with setting up my Jenkins. What I want to achieve is when I click on "Build with Parameters" option and choose specific environment, one of parameters from .properties file should be passed into variableFromApp field. I also want…
jb27
  • 93
  • 1
  • 1
  • 7
1
vote
0 answers

Unable to start daemon process i have tried many things.. i'm using android 3.0.1

Here is the Error.. Error:Failed to complete Gradle execution. Cause: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the…
1
vote
0 answers

gradle.properties special characters in proxy password

I just can't get to work gradle with my corporate proxy. I got it to work though with node.js in the .npmrc file. My password has a "<" character in the password. In the .npmrc file I had to escape it by writing "%3C"…
1
vote
1 answer

Source a file in gradle

Is there a way in gradle to 'source' a file in gradle? The project has a file (project.properties) that has about one hundred properties being exported, like export PROP1=value1 export PROP2=value2..... export PROP100=value100 These properties are…
user3366706
  • 1,529
  • 3
  • 31
  • 54
0
votes
1 answer

build.gradle file does not access to gradle.properties

I have an android project. I am attempting to call buildConfigField() function in build.gradle file, but the property that I have declared in gradle.properties file cannot be found. I have used this code in…
0
votes
1 answer

Unity 2021.3.18f-Gradle Build failed : Protocol I NEED A HERO

this is my first post about Unity, i'm migrating a project from Unity 2019.1.7 to Unity 2021.3.18f. I could update most of the packages, I think unity did almost all updates, except the OculusIntegration, which I updated following this guide :…
0
votes
0 answers

This project uses AndroidX dependencies, but the android.useAndroidX property is not enabled. Set this property to true in the gradle.properties file

I am very new to unity and have never done C#, or any other style of coding before, I have finally finished my first app but i keep getting "This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled." when I…
Neil
  • 1
0
votes
1 answer

Intershop | dB migrate

"Address already in use" This is the error which I get while doing dbmigration, I have written the AddService and Addconfiguration properties file now wanted to do dbmigration and getting this error. How to fix this? Thanks in advance Tried to check…
0
votes
1 answer

build.gradle file does not find a property from the gradle.properties file

In my build.gradle file, I have a reference to a property that is in the gradle.properties file: credentials { username "$USERNAME" password "$PASSWORD" } And in the gradle.properties…
riorio
  • 6,500
  • 7
  • 47
  • 100
0
votes
1 answer

Gradle - Could not find load main class

I need to tune the JVM memory by help of Gradle. I've writen settings in the gradle.properties file: org.gradle.jvmargs=-XX:MaxMetaspaceSize=60M but it didn't work. Then I've done it manually in an IDEA (Run>Edit Configurations...) and wrote the…
Jonas_Astley
  • 151
  • 7
0
votes
1 answer

java.io.InvalidClassException: org.jetbrains.kotlin.incremental.IncrementalModuleInfo

I am getting below exception while running my project- > Task :app:kaptGenerateStubsDebugKotlin Compilation with Kotlin compile daemon was not successful java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: …
0
votes
1 answer

Authenticate Maven Publish plugin for Gradle

I am trying to publish an artifact to Maven Central. I am using Gradle's plugin, Maven Publish. From what I have gathered, I need to put my credentials in a file, gradle.properties. I have done so and placed that file in my ~.gradle directory. I…
Suede
  • 416
  • 2
  • 5
  • 16
0
votes
1 answer

Configure gradle task issue with default Configs

I have succesfuly write my gradle.propreties file using gradle script , i will share my code , build.gradle: afterEvaluate { processDebugGoogleServices.dependsOn switchToDebug processReleaseGoogleServices.dependsOn switchToRelease } String base =…
Achin
  • 1,252
  • 4
  • 28
  • 63