How do I upgrade Gradle?
up vote
26
down vote
favorite
This shows that Gradle
is up to date:
thufir@doge:~$ sudo apt install gradle
Reading package lists... Done
Building dependency tree
Reading state information... Done
gradle is already the newest version (2.10-1).
0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded.
How do I upgrade to Gradle
4.x? Preferably, with umake rather than SDKMAN! which seems to be what they suggest.
(I don't want to update all the packages due to a slow connection.)
apt upgrade versions ubuntu-make gradle
add a comment |
up vote
26
down vote
favorite
This shows that Gradle
is up to date:
thufir@doge:~$ sudo apt install gradle
Reading package lists... Done
Building dependency tree
Reading state information... Done
gradle is already the newest version (2.10-1).
0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded.
How do I upgrade to Gradle
4.x? Preferably, with umake rather than SDKMAN! which seems to be what they suggest.
(I don't want to update all the packages due to a slow connection.)
apt upgrade versions ubuntu-make gradle
add a comment |
up vote
26
down vote
favorite
up vote
26
down vote
favorite
This shows that Gradle
is up to date:
thufir@doge:~$ sudo apt install gradle
Reading package lists... Done
Building dependency tree
Reading state information... Done
gradle is already the newest version (2.10-1).
0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded.
How do I upgrade to Gradle
4.x? Preferably, with umake rather than SDKMAN! which seems to be what they suggest.
(I don't want to update all the packages due to a slow connection.)
apt upgrade versions ubuntu-make gradle
This shows that Gradle
is up to date:
thufir@doge:~$ sudo apt install gradle
Reading package lists... Done
Building dependency tree
Reading state information... Done
gradle is already the newest version (2.10-1).
0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded.
How do I upgrade to Gradle
4.x? Preferably, with umake rather than SDKMAN! which seems to be what they suggest.
(I don't want to update all the packages due to a slow connection.)
apt upgrade versions ubuntu-make gradle
apt upgrade versions ubuntu-make gradle
edited Nov 10 '17 at 11:54
serv-inc
1,4831420
1,4831420
asked Jul 5 '17 at 2:26
Thufir
1,48884391
1,48884391
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
43
down vote
accepted
You could use the ppa:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt upgrade gradle
I got error while runningupgrade gradle
asThe following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run thissudo apt-get -f install
thensudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.
– Anum Sheraz
Jul 20 at 15:55
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems likesudo apt-get -f install
fixed its problem.
– serv-inc
Jul 21 at 9:52
1
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
add a comment |
up vote
2
down vote
You can also tell Gradle to update itself using a Gradle wrapper.
First you create the wrapper, then tell it to use the Gradle version of your choice:
gradle wrapper
./gradlew wrapper --gradle-version 4.9
Now this project will use Gradle 4.9, independent of what's installed.
However, you need to remember to run Gradle through the wrapper, i.e., run ./gradlew
instead of plain gradle
.
The wrapper allows you to have different projects using different Gradle versions easily.
When you commit the created wrapper to source control, everybody who checks out the project will use the same Gradle version. This can help a lot with incompatible build scripts, when something has changed between Gradle versions.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
43
down vote
accepted
You could use the ppa:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt upgrade gradle
I got error while runningupgrade gradle
asThe following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run thissudo apt-get -f install
thensudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.
– Anum Sheraz
Jul 20 at 15:55
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems likesudo apt-get -f install
fixed its problem.
– serv-inc
Jul 21 at 9:52
1
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
add a comment |
up vote
43
down vote
accepted
You could use the ppa:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt upgrade gradle
I got error while runningupgrade gradle
asThe following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run thissudo apt-get -f install
thensudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.
– Anum Sheraz
Jul 20 at 15:55
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems likesudo apt-get -f install
fixed its problem.
– serv-inc
Jul 21 at 9:52
1
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
add a comment |
up vote
43
down vote
accepted
up vote
43
down vote
accepted
You could use the ppa:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt upgrade gradle
You could use the ppa:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt upgrade gradle
answered Nov 10 '17 at 11:10
serv-inc
1,4831420
1,4831420
I got error while runningupgrade gradle
asThe following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run thissudo apt-get -f install
thensudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.
– Anum Sheraz
Jul 20 at 15:55
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems likesudo apt-get -f install
fixed its problem.
– serv-inc
Jul 21 at 9:52
1
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
add a comment |
I got error while runningupgrade gradle
asThe following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run thissudo apt-get -f install
thensudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.
– Anum Sheraz
Jul 20 at 15:55
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems likesudo apt-get -f install
fixed its problem.
– serv-inc
Jul 21 at 9:52
1
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
I got error while running
upgrade gradle
as The following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run this sudo apt-get -f install
then sudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.– Anum Sheraz
Jul 20 at 15:55
I got error while running
upgrade gradle
as The following packages have unmet dependencies. powershell : Depends: liblttng-ust0 but it is not installed
. I have to run this sudo apt-get -f install
then sudo apt-get -f install gradle
. This way, it deletes the previous one and installs the latest from scratch.– Anum Sheraz
Jul 20 at 15:55
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems like
sudo apt-get -f install
fixed its problem.– serv-inc
Jul 21 at 9:52
@AnumSheraz: powershell is in another repository altogether. It should not have anything to do with gradle. But it seems like
sudo apt-get -f install
fixed its problem.– serv-inc
Jul 21 at 9:52
1
1
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
you're lifesaver. My gradle version was 2 and throws that exception: gradle failed to apply plugin id 'com.google.protobuf' After update gradle the problem is gone. Thanks.
– kodmanyagha
Oct 21 at 11:21
add a comment |
up vote
2
down vote
You can also tell Gradle to update itself using a Gradle wrapper.
First you create the wrapper, then tell it to use the Gradle version of your choice:
gradle wrapper
./gradlew wrapper --gradle-version 4.9
Now this project will use Gradle 4.9, independent of what's installed.
However, you need to remember to run Gradle through the wrapper, i.e., run ./gradlew
instead of plain gradle
.
The wrapper allows you to have different projects using different Gradle versions easily.
When you commit the created wrapper to source control, everybody who checks out the project will use the same Gradle version. This can help a lot with incompatible build scripts, when something has changed between Gradle versions.
add a comment |
up vote
2
down vote
You can also tell Gradle to update itself using a Gradle wrapper.
First you create the wrapper, then tell it to use the Gradle version of your choice:
gradle wrapper
./gradlew wrapper --gradle-version 4.9
Now this project will use Gradle 4.9, independent of what's installed.
However, you need to remember to run Gradle through the wrapper, i.e., run ./gradlew
instead of plain gradle
.
The wrapper allows you to have different projects using different Gradle versions easily.
When you commit the created wrapper to source control, everybody who checks out the project will use the same Gradle version. This can help a lot with incompatible build scripts, when something has changed between Gradle versions.
add a comment |
up vote
2
down vote
up vote
2
down vote
You can also tell Gradle to update itself using a Gradle wrapper.
First you create the wrapper, then tell it to use the Gradle version of your choice:
gradle wrapper
./gradlew wrapper --gradle-version 4.9
Now this project will use Gradle 4.9, independent of what's installed.
However, you need to remember to run Gradle through the wrapper, i.e., run ./gradlew
instead of plain gradle
.
The wrapper allows you to have different projects using different Gradle versions easily.
When you commit the created wrapper to source control, everybody who checks out the project will use the same Gradle version. This can help a lot with incompatible build scripts, when something has changed between Gradle versions.
You can also tell Gradle to update itself using a Gradle wrapper.
First you create the wrapper, then tell it to use the Gradle version of your choice:
gradle wrapper
./gradlew wrapper --gradle-version 4.9
Now this project will use Gradle 4.9, independent of what's installed.
However, you need to remember to run Gradle through the wrapper, i.e., run ./gradlew
instead of plain gradle
.
The wrapper allows you to have different projects using different Gradle versions easily.
When you commit the created wrapper to source control, everybody who checks out the project will use the same Gradle version. This can help a lot with incompatible build scripts, when something has changed between Gradle versions.
answered Aug 21 at 14:59
Robert
1607
1607
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f932083%2fhow-do-i-upgrade-gradle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown