Slide 1

Slide 1 text

Spring Projects Infrastructure Roy Clarkson, Spring for Android/Mobile Project Lead Gunnar Hillert, Spring Integration Twitter/GitHub: @royclarkson, @ghillert © 2012 SpringOne 2GX. All rights reserved. Do not distribute without permission. 1

Slide 2

Slide 2 text

2 2

Slide 3

Slide 3 text

What is Spring? 6 Spring Framework Spring AMQP Spring Integration Spring for Android Spring Batch Spring Data Spring Gemfire Spring Hadoop Spring Mobile Spring .NET Spring Roo Spring Security Spring Shell Spring Social Spring Web Flow 3

Slide 4

Slide 4 text

Agenda • Issue Tracking • Build • Continuous Integration/Deployment • Repositories • Source Control • Community Contributions 4 4

Slide 5

Slide 5 text

5 jira.springsource.org 5

Slide 6

Slide 6 text

6 Issue Tracking • Submit bug reports • Request features • Vote for issues • Provide feedback • Track status • Watch issues 6

Slide 7

Slide 7 text

Lifecycle of an Issue • Unassigned • Waiting For Triage • Triaged • In Progress • Resolved • Closed 7 7

Slide 8

Slide 8 text

More Information • github.com/SpringSource/spring-framework/wiki/The- Lifecycle-of-an-Issue 8 8

Slide 9

Slide 9 text

9 9

Slide 10

Slide 10 text

10 Gradle Hello World task hello { doLast { println 'Hello world!' } } 10

Slide 11

Slide 11 text

11 Demo 11

Slide 12

Slide 12 text

Building Spring 12 $ git clone git://github.com/SpringSource/ spring-framework.git $ cd spring-framework $ ./gradlew build 12

Slide 13

Slide 13 text

Projects using Gradle • Spring Framework (since Jan 2012) • Spring Integration (since Oct 2010) • Spring AMQP (since Jun 2012) • Spring for Android (since May 2011) • Spring Mobile (since Nov 2010) • Spring Social (since Oct 2010) • And more … 13 13

Slide 14

Slide 14 text

Gradle • Version 1.2 released 2012-09-12 • Gradle Wrapper • Maven-like defaults • More concise than Maven • Scripting capabilities like Ant • Supports multi-project builds • Dependency management based on Apache Ivy • Build scripts written in Groovy 14 14

Slide 15

Slide 15 text

Common Tasks for Spring Projects • clean – Deletes the build directory • build – Assembles and tests this project • dist – Creates Zip (Jars, Reference, Api Doc, Schema) • api – Generates aggregated Javadoc API documentation • reference – Generates HTML and PDF documentation • install – Install archives artifacts into local .m2 cache • eclipse – Generates all Eclipse files • idea – Generates IDEA project files • sonarAnalyze – Gather Sonar Metrics 15 15

Slide 16

Slide 16 text

16 Demo 16

Slide 17

Slide 17 text

Spring Tool Suite • Gradle Support since 2.7.0 • Import Gradle projects directly into STS • static.springsource.org/sts/docs/latest/reference/html/ gradle 17 17

Slide 18

Slide 18 text

IntelliJ IDEA • Gradle Support in IntelliJ IDEA 11 • www.jetbrains.com/idea/webhelp/gradle-2.html • confluence.jetbrains.com/display/IDEADEV/News 18 18

Slide 19

Slide 19 text

More Information • gradle.org 19 19

Slide 20

Slide 20 text

20 build.springsource.org 20

Slide 21

Slide 21 text

21 Bamboo Features • Continuous Integration • Highly Configurable • Instant Feedback • Continuous Deployment • Release Management • JIRA Integration • Plugin Support 21

Slide 22

Slide 22 text

22 sonar.springsource.org 22

Slide 23

Slide 23 text

23 Sonar Metrics 23

Slide 24

Slide 24 text

24 repo.springsource.org 24

Slide 25

Slide 25 text

25 SpringSource Artifactory • Replaces previous Maven repositories • GA releases still available in Maven Central • Unified search • Put a watch on anything • License information • Transitive resolution • Release process 25

Slide 26

Slide 26 text

SpringSource Repository 26 repo.springsource.org 26

Slide 27

Slide 27 text

SpringSource Repository • Local Repositories – libs-snapshot-local, libs-milestone-local, libs-release-local • Virtual Repositories – snapshot, milestone, release • Virtual Repositories with Third-Party Support – libs-snapshot, libs-milestone, libs-release 27 27

Slide 28

Slide 28 text

Maven 28 springsource-release SpringSource Release Repository http://repo.springsource.org/libs-release springsource-milestone SpringSource Milestone Repository http://repo.springsource.org/libs-milestone springsource-snapshot SpringSource Snapshot Repository http://repo.springsource.org/libs-snapshot 28

Slide 29

Slide 29 text

More Information • Spring Repository FAQ github.com/SpringSource/spring-framework/wiki/ SpringSource-repository-FAQ • Downloading Spring Artifacts github.com/SpringSource/spring-framework/wiki/ Downloading-Spring-artifacts 29 29

Slide 30

Slide 30 text

SpringSource on GitHub 30 github.com/SpringSource 30

Slide 31

Slide 31 text

SpringSource on GitHub • Spring Integration moved August 2011 • Spring Framework moved December 2011 • Spring Web Flow recently moved • All major projects now on GitHub 31 31

Slide 32

Slide 32 text

Benefits of GitHub • Accessible UI built around Git • Well known open source code repository • Code browsing • Commit history • Community contributions • Issue tracking • Wiki pages 32 32

Slide 33

Slide 33 text

Contributing 33 support.springsource.com/spring_committer_signup 33

Slide 34

Slide 34 text

Fork the Repository • Navigate to github.com/SpringSource/ • Select the button • Select your local GitHub account as the destination 34 34

Slide 35

Slide 35 text

Local Development Environment $ git clone [email protected]:/.git $ cd $ git remote add upstream [email protected]:SpringSource/ .git $ git fetch --all $ git remote show $ git branch -a 35 35

Slide 36

Slide 36 text

Submitting a Pull Request • Create a new topic branch based on issue number • Complete your changes • Push your branch to origin • Select when you are ready to submit your code to the project lead for review 36 $ git checkout -b -123 $ git push origin -123 36

Slide 37

Slide 37 text

Successful Pull Requests • Please note that all pull requests must be able to be cleanly merged with the upstream master’s current state • Rebase with Master 37 $ git pull --rebase upstream master 37

Slide 38

Slide 38 text

Code Reviews 38 38

Slide 39

Slide 39 text

Code Reviews • Comment on each commit or on individual lines • Markdown supported • Comments trigger notifications (@user notation) • Pull Requests can be comprised of multiple commits • Compare code between commits or branches • Contributors and Committers follow same process! 39 GitHub Pull Request = Code + Issue + Code Comments 39

Slide 40

Slide 40 text

40 Jürgenization 40

Slide 41

Slide 41 text

More Information • github.com/SpringSource/spring-framework/wiki/ Contributor-guidelines • github.com/SpringSource/spring-integration/wiki/ Contributor-Guidelines • help.github.com/articles/fork-a-repo • help.github.com/articles/using-pull-requests 41 41

Slide 42

Slide 42 text

More Information • Pro Git: Contributing to a Project http://git-scm.com/book/ch5-2.html • Pro Git: Rebasing http://git-scm.com/book/ch3-6.html • McCullough and Berglund on Mastering Git http://shop.oreilly.com/product/0636920017462.do 42 42

Slide 43

Slide 43 text

Cloud Foundry Code Reviews 43 43

Slide 44

Slide 44 text

44 44

Slide 45

Slide 45 text

Gerrit • Originally developed at Google • Web based code review and project management for Git • Shows changes in a side-by-side display • Allows inline comments by reviewers • Authorized users can initiate merges 45 45

Slide 46

Slide 46 text

Recommendation • Try GitHub first • Consider Gerrit 46 46

Slide 47

Slide 47 text

More Information • code.google.com/p/gerrit 47 47

Slide 48

Slide 48 text

Community • www.springsource.org • blog.springsource.org • twitter.com/springsource • twitter.com/springframework • forum.springsource.org • stackoverflow.com/questions/tagged/spring 48 48

Slide 49

Slide 49 text

More Sessions • Gradle the Innovation Continues - Hans Dockter • Standardizing your Enterprise Build Environment with Gradle - Luke Daley • Gradle Plugin Best Practices - Luke Daley • Building an Integration Platform with Grails and Gradle - Brian Saville 49 49

Slide 50

Slide 50 text

Q & A 50