무식하게 배우는 gradle

  • View
    22.361

  • Download
    3

Embed Size (px)

Text of 무식하게 배우는 gradle

gradle

SpringCamp 2013 with Scala

,

gradle ?

gradle== build-tool

... build ?

CompilePackaging

, build-tool...?

build-tool

gradle

Groovy DSL

Java, Groovy, OSGi, Web and Scala

API

XML Groovy .

Gradle wrapper gradle

!

gradle ?

Groovy DSL


Rocking the gradle!

Step00: gradle

/

Step01: setupBuild

$ gradle setupBuild

Step01: setupBuild

$ gradle setupBuild --type java-library

gradle setupBuild basic

pom

java-library

Step02:

build.gradle

Step03: Task

$ ./gradlew tasks

Step04: Test

$ ./gradlew test

Step05:

$ ./gradlew eclipse

Step06:

Rocking-the-gradlerocking-webrocking-core

Step06:

rocking-the-gradle

rocking-webrocking-core

allprojectsStep07: build.gradle

subprojectsrocking-webrocking-corerocking-the-gradle

Step07:

dependencies {...compile project(:rocking-core)

}

Step07:

rocking-the-gradle

rocking-webrocking-coreDependency

Step08:

dependencies {...configurationName groupId:artifactId:version

}

Bonus: repository

http://search.maven.org

Bonus: Gradle Wrapper

Gradle wrapper

Gradle sitehttp://www.gradle.org

Gradle DSL Referencehttp://www.gradle.org/docs/current/dsl/

gradle wikihttp://wiki.kwonnam.pe.kr/gradle

github:rocking-the-gradlehttps://github.com/ihoneymon/rocking-the-gradle

github:rest-api-studyhttps://github.com/ihoneymon/rest-api-study

Q & A

Email: ihoneymon@gmail.comTwitter: @ihoneymonBlog: http://java.ihoney.pe.kr

Event Question!!

gradle setupBuild !?

gradle setupBuild basic

pom

java-library

.

2 3 4 5 6 7

.

2 3 4 5 6 7

gradle