Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spring Projects Infrastructure

Spring Projects Infrastructure

Presented at SpringOne 2GX 2012

Roy Clarkson

October 16, 2012
Tweet

More Decks by Roy Clarkson

Other Decks in Technology

Transcript

  1. 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
  2. 2 2

  3. 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
  4. Agenda • Issue Tracking • Build • Continuous Integration/Deployment •

    Repositories • Source Control • Community Contributions 4 4
  5. 6 Issue Tracking • Submit bug reports • Request features

    • Vote for issues • Provide feedback • Track status • Watch issues 6
  6. Lifecycle of an Issue • Unassigned • Waiting For Triage

    • Triaged • In Progress • Resolved • Closed 7 7
  7. 9 9

  8. 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
  9. 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
  10. 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
  11. 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
  12. IntelliJ IDEA • Gradle Support in IntelliJ IDEA 11 •

    www.jetbrains.com/idea/webhelp/gradle-2.html • confluence.jetbrains.com/display/IDEADEV/News 18 18
  13. 21 Bamboo Features • Continuous Integration • Highly Configurable •

    Instant Feedback • Continuous Deployment • Release Management • JIRA Integration • Plugin Support 21
  14. 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
  15. 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
  16. Maven 28 <repository> <id>springsource-release</id> <name>SpringSource Release Repository</name> <url>http://repo.springsource.org/libs-release</url> </repository> <repository>

    <id>springsource-milestone</id> <name>SpringSource Milestone Repository</name> <url>http://repo.springsource.org/libs-milestone</url> </repository> <repository> <id>springsource-snapshot</id> <name>SpringSource Snapshot Repository</name> <url>http://repo.springsource.org/libs-snapshot</url> </repository> 28
  17. 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
  18. 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
  19. 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
  20. Fork the Repository • Navigate to github.com/SpringSource/<project> • Select the

    button • Select your local GitHub account as the destination 34 34
  21. Local Development Environment $ git clone [email protected]:<username>/<project>.git $ cd <project>

    $ git remote add upstream [email protected]:SpringSource/ <project>.git $ git fetch --all $ git remote show $ git branch -a 35 35
  22. 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 <project>-123 $ git push origin <project>-123 36
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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