Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle wrapper properties #56

Closed
marioshtika opened this issue Mar 28, 2022 · 5 comments
Closed

Update gradle wrapper properties #56

marioshtika opened this issue Mar 28, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@marioshtika
Copy link

Hello everyone.

Is there a way to change the gradle wrapper properties, found in the gradle/wrapper/gradle-wrapper.properties file, using the capacitor configure?

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

I recently updated the gradle version in the build.gradle file and it is asking me to update the distributionUrl

from

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-all.zip

to

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

Thank you in advance.

@mlynch
Copy link
Contributor

mlynch commented Mar 28, 2022

Not at the moment through this tool, but supporting the .proprties files for modifications absolutely makes sense to support in the future. Will add it to the roadmap

@mlynch mlynch added the enhancement New feature or request label Mar 28, 2022
@mlynch
Copy link
Contributor

mlynch commented Apr 1, 2022

Started working on this, don't think it'll take much time to support

@marioshtika
Copy link
Author

Thank you @mlynch

Let me know if you need me to do anything, or test it when it is ready.

@mlynch mlynch closed this as completed in 94550a2 May 16, 2022
@mlynch
Copy link
Contributor

mlynch commented May 16, 2022

Now available in 2.0.10. To use:

platforms:
  android:
    properties:
       - file: gradle.properties
         entries:
            org.gradle.jvmargs: 'blah'

Let me know how it works for you!

@marioshtika
Copy link
Author

Hello @mlynch and sorry for the late response.

I am using "@trapezedev/configure": "^3.0.7", and I am getting the below message

run android properties 
[warn] Unsupported configuration option android.properties. Skipping

Is this not supported anymore?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants