LoginSignup
1
0

More than 5 years have passed since last update.

Gradle hello world

Posted at

gradleでHello world

gradle install

$ brew install gradle 4.7

version 確認

$ gradle -version
実行結果
------------------------------------------------------------
Gradle 4.7
------------------------------------------------------------

Build time:   2018-04-18 09:09:12 UTC
Revision:     b9a962bf70638332300e7f810689cb2febbd4a6c

Groovy:       2.4.12
Ant:          Apache Ant(TM) version 1.9.9 compiled on February 2 2017
JVM:          1.8.0_51 (Oracle Corporation 25.51-b03)
OS:           Mac OS X 10.13.4 x86_64

Create Project(IntelliJ)

1.File → new → project
2.Gradle → Next → 省略
3.Finish

import

gradle 編集

Task helloWorld << {
    println "Hello, world"
}

実行(Terminal上) ※option + F12 + fn で開ける

$ gradle :helloWorld
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0