Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

update gradle version from the internet. #47

Open
talregev opened this issue Feb 24, 2015 · 12 comments
Open

update gradle version from the internet. #47

talregev opened this issue Feb 24, 2015 · 12 comments

Comments

@talregev
Copy link
Contributor

i ask already in stackoverflow.

i ask again too.
We want be able to update gradle version from the internet. when we change one or two file, all the projects will compile on the new gradle. it save us a lot of work.

start it here
we can update gradle version variable from the internet.

i think one "ugly" way, it to upload gradle zip in our repositories, and the project will always take that file (gradle.zip) without version in the name, and when will be new gradle, we will update and all the project will take the new file. need to check if my idea is working.

@talregev
Copy link
Contributor Author

any suggestions?

@stonier
Copy link
Contributor

stonier commented Feb 24, 2015

Actually...I think it is probably better to do it the hard way for now. Gradle is changing fast and java/android users are different. Java people are happy to use an old gradle, android people have to be on the bleeding edge.

That PR for gradle 2.4 should ultimately make things much easier too.

@talregev
Copy link
Contributor Author

Are you ready for upgrade all project to gradles 2.3? :)

@stonier
Copy link
Contributor

stonier commented Feb 25, 2015

Not yet. We don't have a need yet and I'd like to have it released first and then users given some time to report problems so we can get it stable.

Then would be a good time to do some more experimentation...i.e. once we know the base is solid.

@stonier
Copy link
Contributor

stonier commented Feb 25, 2015

Im also running out of time :neckbeard:

@talregev
Copy link
Contributor Author

how goes with android_core bugs?

@stonier
Copy link
Contributor

stonier commented Feb 25, 2015

Solved and solved. Not worrying about this one.

@talregev
Copy link
Contributor Author

nice!! 👍

@talregev
Copy link
Contributor Author

talregev commented Mar 6, 2015

I found a way to update gradle version from the internet.
on each project need to be add:
instated of

task wrapper(type: Wrapper) {
    gradleVersion = "2.3"
}

it need to be write:

apply from: "https://github.com/rosjava/rosjava_bootstrap/raw/indigo/gradle.gradle"

and add to default task on build.gradle on main project:

defaultTasks 'wrapper', [other tasks]

add to CMakeLists.txt

catkin_android_setup(wrapper [other tasks])

only on the SECOND compilation it will be compile on the latest gradle.

@stonier
should we try it?

@stonier
Copy link
Contributor

stonier commented Mar 6, 2015

@talregev seems to me that it will add another 'online' dependency and slow the build down. Trying to avoid both of these.

Should only need to run the gradle wrapper once in a blue moon, not every time.

@talregev
Copy link
Contributor Author

talregev commented Mar 6, 2015

ok.

but if we want to change gradle version in massive way through change only one text file, that one way to do it.

@talregev
Copy link
Contributor Author

talregev commented Mar 6, 2015

how it going the rest of the projects?
It is getting stabilize?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants