Conoha VPS
Ubuntu 16.04


Ubuntu 16.04で、apt update してもGradle 2.10が最新となっています。Spring BootなどをGradle Buildするには、4.0以上が必要となるため、最新化する必要があります。

Gradle 4.0 インストール手順

$ sudo add-apt-repository ppa:cwchien/gradle
 Gradle is a Groovy based build system.
 Gradle is build automation evolved. Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or indeed anything else.
 Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build. Powered by a Groovy DSL and packed with innovation, Gradle provides a declarative way to describe all kinds of builds through sensible defaults. Gradle is quickly becoming the build system of choice for many open source projects, leading edge enterprises and legacy automation challenges.
 More info: <>
 More info:
 Press [ENTER] to continue or ctrl-c to cancel adding it
 gpg: keyring `/tmp/tmpqrodzjo8/secring.gpg' created
gpg: requesting key 9DXXAF36 from hkp server
gpg: /tmp/tmpqrodzjXX/trustdb.gpg: trustdb created
gpg: key 9DXXAF36: public key "Launchpad PPA for Cheng-Wei Chien" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)


$ sudo apt-get update
Hit:1 xenial InRelease
Hit:2 xenial-updates InRelease
Hit:3 xenial-backports InRelease
Get:4 xenial InRelease [17.5 kB]
Hit:5 xenial-security InRelease
Ign:6 binary/ InRelease
Hit:7 binary/ Release
Get:9 xenial/main amd64 Packages [2,348 B]
Hit:10 xenial InRelease
Get:11 xenial/main i386 Packages [2,348 B]
Get:12 xenial/main Translation-en [1,216 B]
Fetched 23.4 kB in 2s (9,956 B/s)
Reading package lists... Done


$ sudo apt-get upgrade gradle
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
 ant ant-optional antlr aspectj bnd findbugs groovy2 ivy java-wrappers junit
Setting up ubuntu-server (1.361.1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for resolvconf (1.78ubuntu5) ...


$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
 ant ant-optional antlr aspectj bnd findbugs groovy2 ivy java-wrappers junit
Removing libosgi-core-java (6.0.0-1) ...
Removing libosgi-annotation-java (6.0.0-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...


$ gradle -v
Gradle 4.3.1
Build time: 2017-11-08 08:59:45 UTC
Revision: e4f4804807ef7c2829da51877861ff06e07e006d
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_151 (Oracle Corporation 25.151-b12)
OS: Linux 4.4.0-98-generic amd64





メールアドレスが公開されることはありません。 * が付いている欄は必須項目です


no image


業務系アプリ開発ではまだまだAntだけ使っている所が多いのではないだろうか。 これから新規開発するプロジェクトでは、Mavenを使い始めるというケースが多かもしれない。 MavenはAntを含んでいる …

no image

Gradle 実行時のエラー

——————— 環境 Conoha VPS Ubuntu 16.04 ———&# …

no image


1.序章 クラウド開発環境とは何か? クラウド開発環境の構築で挫折しないために クラウド開発環境を効果的に習得する順序 2.Linux OSとは何か? クラウドサービス(IaaS)を申し込む Linu …

no image

EclipseからMaven-Git Hubの連携

アプリ開発でこういう環境があります。 IDE:Eclipse 構成管理:Maven ソース管理:Git Hub こういう環境はどのように作っていけばいいのでしょうか? 特に、Mavenから先か、Git …