SlideShare una empresa de Scribd logo
1 de 50
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.
2
What is Spring?

                           Spring Mobile          Spring Gemfire
       Spring AMQP
                                         Spring for Android
                                                                Spring Hadoop
           Spring Batch

                        Spring Framework
                                                                    Spring Social
    Spring .NET            Spring Integration
                                                  Spring Security
                  Spring Data
Spring Shell                                                   Spring Web Flow
                                 Spring Roo
6
Agenda
•       Issue Tracking
•       Build
•       Continuous Integration/Deployment
•       Repositories
•       Source Control
•       Community Contributions




    4
jira.springsource.org
5
Issue Tracking
•       Submit bug reports
•       Request features
•       Vote for issues
•       Provide feedback
•       Track status
•       Watch issues




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




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




 8
9
Gradle Hello World

          task hello {
          	 doLast {
          	 	 println 'Hello world!'
          	 }
          }




10
Demo




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




 12
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
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
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
Demo




16
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
IntelliJ IDEA
• Gradle Support in IntelliJ IDEA 11
• www.jetbrains.com/idea/webhelp/gradle-2.html
• confluence.jetbrains.com/display/IDEADEV/News




 18
More Information
• gradle.org




 19
build.springsource.org

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



    21
sonar.springsource.org

22
Sonar Metrics




23
repo.springsource.org

24
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
SpringSource Repository




      repo.springsource.org




26
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
Maven
<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
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
SpringSource on GitHub




            github.com/SpringSource
30
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
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
Contributing




     support.springsource.com/spring_committer_signup
33
Fork the Repository
• Navigate to github.com/SpringSource/<project>
• Select the         button
• Select your local GitHub account as the destination




 34
Local Development Environment
$ git clone git@github.com:<username>/<project>.git
$ cd <project>
$ git remote add upstream git@github.com:SpringSource/
<project>.git
$ git fetch --all
$ git remote show
$ git branch -a




 35
Submitting a Pull Request
• Create a new topic branch based on issue number
$ git checkout -b <project>-123

• Complete your changes
• Push your branch to origin
$ git push origin <project>-123

• Select              when you are ready to submit your
  code to the project lead for review
 36
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

 $ git pull --rebase upstream master




 37
Code Reviews




38
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!

                   GitHub Pull Request = Code + Issue + Code Comments



    39
Jürgenization


40
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
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
Cloud Foundry Code Reviews




43
44
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
Recommendation
• Try GitHub first
• Consider Gerrit




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




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




    48
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
Q&A

Más contenido relacionado

La actualidad más candente

Using ActiveObjects in Atlassian Plugins
Using ActiveObjects in Atlassian PluginsUsing ActiveObjects in Atlassian Plugins
Using ActiveObjects in Atlassian Plugins
Atlassian
 
OpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using DjangoOpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using Django
David Lapsley
 

La actualidad más candente (20)

03 integrate webapisignalr
03 integrate webapisignalr03 integrate webapisignalr
03 integrate webapisignalr
 
06 integrate elasticsearch
06 integrate elasticsearch06 integrate elasticsearch
06 integrate elasticsearch
 
04 integrate entityframework
04 integrate entityframework04 integrate entityframework
04 integrate entityframework
 
Using ActiveObjects in Atlassian Plugins
Using ActiveObjects in Atlassian PluginsUsing ActiveObjects in Atlassian Plugins
Using ActiveObjects in Atlassian Plugins
 
01 startoff angularjs
01 startoff angularjs01 startoff angularjs
01 startoff angularjs
 
Spring boot Introduction
Spring boot IntroductionSpring boot Introduction
Spring boot Introduction
 
02 integrate highchart
02 integrate highchart02 integrate highchart
02 integrate highchart
 
All your data belong to us - The Active Objects Plugin
All your data belong to us - The Active Objects PluginAll your data belong to us - The Active Objects Plugin
All your data belong to us - The Active Objects Plugin
 
PUC SE Day 2019 - SpringBoot
PUC SE Day 2019 - SpringBootPUC SE Day 2019 - SpringBoot
PUC SE Day 2019 - SpringBoot
 
Dropwizard Internals
Dropwizard InternalsDropwizard Internals
Dropwizard Internals
 
Java springboot microservice - Accenture Technology Meetup
Java springboot microservice - Accenture Technology MeetupJava springboot microservice - Accenture Technology Meetup
Java springboot microservice - Accenture Technology Meetup
 
Full Stack Scala
Full Stack ScalaFull Stack Scala
Full Stack Scala
 
Inside Azure Diagnostics
Inside Azure DiagnosticsInside Azure Diagnostics
Inside Azure Diagnostics
 
Iac d.damyanov 4.pptx
Iac d.damyanov 4.pptxIac d.damyanov 4.pptx
Iac d.damyanov 4.pptx
 
REST APIs with Spring
REST APIs with SpringREST APIs with Spring
REST APIs with Spring
 
05 integrate redis
05 integrate redis05 integrate redis
05 integrate redis
 
RESTful web apps with Apache Sling - 2013 version
RESTful web apps with Apache Sling - 2013 versionRESTful web apps with Apache Sling - 2013 version
RESTful web apps with Apache Sling - 2013 version
 
OpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using DjangoOpenStack Horizon: Controlling the Cloud using Django
OpenStack Horizon: Controlling the Cloud using Django
 
Automating Your Microsoft Azure Environment (DevLink 2014)
Automating Your Microsoft Azure Environment (DevLink 2014)Automating Your Microsoft Azure Environment (DevLink 2014)
Automating Your Microsoft Azure Environment (DevLink 2014)
 
Chef - managing yours servers with Code
Chef - managing yours servers with CodeChef - managing yours servers with Code
Chef - managing yours servers with Code
 

Destacado (7)

Federal Government India
Federal Government IndiaFederal Government India
Federal Government India
 
Cultura de India
Cultura de IndiaCultura de India
Cultura de India
 
Clinical Trials Introduction
Clinical Trials IntroductionClinical Trials Introduction
Clinical Trials Introduction
 
Diapositivas india
Diapositivas india Diapositivas india
Diapositivas india
 
La india
La indiaLa india
La india
 
Introduction to clinical research
Introduction to clinical researchIntroduction to clinical research
Introduction to clinical research
 
Clinical Trials
Clinical TrialsClinical Trials
Clinical Trials
 

Similar a S2GX 2012 - Spring Projects Infrastructure

GR8CONF Contributing Back To Grails
GR8CONF Contributing Back To GrailsGR8CONF Contributing Back To Grails
GR8CONF Contributing Back To Grails
bobbywarner
 
What's new with tooling for Spring, Grails, and the Cloud
What's new with tooling for Spring, Grails, and the CloudWhat's new with tooling for Spring, Grails, and the Cloud
What's new with tooling for Spring, Grails, and the Cloud
martinlippert
 
Understanding Distributed Source Control
Understanding Distributed Source ControlUnderstanding Distributed Source Control
Understanding Distributed Source Control
Lorna Mitchell
 

Similar a S2GX 2012 - Spring Projects Infrastructure (20)

Spring Projects Infrastructure
Spring Projects InfrastructureSpring Projects Infrastructure
Spring Projects Infrastructure
 
GR8CONF Contributing Back To Grails
GR8CONF Contributing Back To GrailsGR8CONF Contributing Back To Grails
GR8CONF Contributing Back To Grails
 
What's new with tooling for Spring, Grails, and the Cloud
What's new with tooling for Spring, Grails, and the CloudWhat's new with tooling for Spring, Grails, and the Cloud
What's new with tooling for Spring, Grails, and the Cloud
 
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX AppsFrom GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
From GitHub Source to GitHub Release: Free CICD Pipelines For JavaFX Apps
 
Open up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHubOpen up your platform with Open Source and GitHub
Open up your platform with Open Source and GitHub
 
Android gradle-build-system-overview
Android gradle-build-system-overviewAndroid gradle-build-system-overview
Android gradle-build-system-overview
 
Git_Git_Lab_1664715263.pdf
Git_Git_Lab_1664715263.pdfGit_Git_Lab_1664715263.pdf
Git_Git_Lab_1664715263.pdf
 
CI-CD Jenkins, GitHub Actions, Tekton
CI-CD Jenkins, GitHub Actions, Tekton CI-CD Jenkins, GitHub Actions, Tekton
CI-CD Jenkins, GitHub Actions, Tekton
 
Managing Open Source Software in the GitHub Era
Managing Open Source Software in the GitHub EraManaging Open Source Software in the GitHub Era
Managing Open Source Software in the GitHub Era
 
Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023
Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023
Github Copilot vs Amazon CodeWhisperer for Java developers at JCON 2023
 
Cocoapods in action
Cocoapods in actionCocoapods in action
Cocoapods in action
 
Building Web Apps in Ratpack
Building Web Apps in RatpackBuilding Web Apps in Ratpack
Building Web Apps in Ratpack
 
ePOM - Fundamentals of Research Software Development - Code Version Control
ePOM - Fundamentals of Research Software Development - Code Version ControlePOM - Fundamentals of Research Software Development - Code Version Control
ePOM - Fundamentals of Research Software Development - Code Version Control
 
Philly CocoaHeads 20160414 - Building Your App SDK With Swift
Philly CocoaHeads 20160414 - Building Your App SDK With SwiftPhilly CocoaHeads 20160414 - Building Your App SDK With Swift
Philly CocoaHeads 20160414 - Building Your App SDK With Swift
 
Understanding Distributed Source Control
Understanding Distributed Source ControlUnderstanding Distributed Source Control
Understanding Distributed Source Control
 
Google App Engine Java, Groovy and Gaelyk
Google App Engine Java, Groovy and GaelykGoogle App Engine Java, Groovy and Gaelyk
Google App Engine Java, Groovy and Gaelyk
 
Migrating To GitHub
Migrating To GitHub  Migrating To GitHub
Migrating To GitHub
 
Alfresco DevCon 2018: SDK 3 Multi Module project using Nexus 3 for releases a...
Alfresco DevCon 2018: SDK 3 Multi Module project using Nexus 3 for releases a...Alfresco DevCon 2018: SDK 3 Multi Module project using Nexus 3 for releases a...
Alfresco DevCon 2018: SDK 3 Multi Module project using Nexus 3 for releases a...
 
Mini-training: Let’s Git It!
Mini-training: Let’s Git It!Mini-training: Let’s Git It!
Mini-training: Let’s Git It!
 
Gerrit + Jenkins = Continuous Delivery For Big Data
Gerrit + Jenkins = Continuous Delivery For Big DataGerrit + Jenkins = Continuous Delivery For Big Data
Gerrit + Jenkins = Continuous Delivery For Big Data
 

Más de Gunnar Hillert

Más de Gunnar Hillert (10)

High Precision GPS Positioning for Spring Developers
High Precision GPS Positioning for Spring DevelopersHigh Precision GPS Positioning for Spring Developers
High Precision GPS Positioning for Spring Developers
 
Migrating to Angular 5 for Spring Developers
Migrating to Angular 5 for Spring DevelopersMigrating to Angular 5 for Spring Developers
Migrating to Angular 5 for Spring Developers
 
s2gx2015 who needs batch
s2gx2015 who needs batchs2gx2015 who needs batch
s2gx2015 who needs batch
 
Atlanta JUG - Integrating Spring Batch and Spring Integration
Atlanta JUG - Integrating Spring Batch and Spring IntegrationAtlanta JUG - Integrating Spring Batch and Spring Integration
Atlanta JUG - Integrating Spring Batch and Spring Integration
 
DevNexus 2013 - Introduction to WebSockets
DevNexus 2013 - Introduction to WebSocketsDevNexus 2013 - Introduction to WebSockets
DevNexus 2013 - Introduction to WebSockets
 
Introduction to WebSockets
Introduction to WebSocketsIntroduction to WebSockets
Introduction to WebSockets
 
S2GX 2012 - What's New in Spring Integration
S2GX 2012 - What's New in Spring IntegrationS2GX 2012 - What's New in Spring Integration
S2GX 2012 - What's New in Spring Integration
 
S2GX 2012 - Introduction to Spring Integration and Spring Batch
S2GX 2012 - Introduction to Spring Integration and Spring BatchS2GX 2012 - Introduction to Spring Integration and Spring Batch
S2GX 2012 - Introduction to Spring Integration and Spring Batch
 
Cloud Foundry for Spring Developers
Cloud Foundry for Spring DevelopersCloud Foundry for Spring Developers
Cloud Foundry for Spring Developers
 
jRecruiter - The AJUG Job Posting Service
jRecruiter - The AJUG Job Posting ServicejRecruiter - The AJUG Job Posting Service
jRecruiter - The AJUG Job Posting Service
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 

S2GX 2012 - Spring Projects Infrastructure

  • 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.
  • 2. 2
  • 3. What is Spring? Spring Mobile Spring Gemfire Spring AMQP Spring for Android Spring Hadoop Spring Batch Spring Framework Spring Social Spring .NET Spring Integration Spring Security Spring Data Spring Shell Spring Web Flow Spring Roo 6
  • 4. Agenda • Issue Tracking • Build • Continuous Integration/Deployment • Repositories • Source Control • Community Contributions 4
  • 6. Issue Tracking • Submit bug reports • Request features • Vote for issues • Provide feedback • Track status • Watch issues 6
  • 7. Lifecycle of an Issue • Unassigned • Waiting For Triage • Triaged • In Progress • Resolved • Closed 7
  • 9. 9
  • 10. Gradle Hello World task hello { doLast { println 'Hello world!' } } 10
  • 12. Building Spring $ git clone git://github.com/SpringSource/ spring-framework.git $ cd spring-framework $ ./gradlew build 12
  • 13. 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
  • 14. 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
  • 15. 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
  • 17. 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
  • 18. IntelliJ IDEA • Gradle Support in IntelliJ IDEA 11 • www.jetbrains.com/idea/webhelp/gradle-2.html • confluence.jetbrains.com/display/IDEADEV/News 18
  • 21. Bamboo Features • Continuous Integration • Highly Configurable • Instant Feedback • Continuous Deployment • Release Management • JIRA Integration • Plugin Support 21
  • 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
  • 26. SpringSource Repository repo.springsource.org 26
  • 27. 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
  • 28. Maven <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
  • 29. 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
  • 30. SpringSource on GitHub github.com/SpringSource 30
  • 31. 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
  • 32. 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
  • 33. Contributing support.springsource.com/spring_committer_signup 33
  • 34. Fork the Repository • Navigate to github.com/SpringSource/<project> • Select the button • Select your local GitHub account as the destination 34
  • 35. Local Development Environment $ git clone git@github.com:<username>/<project>.git $ cd <project> $ git remote add upstream git@github.com:SpringSource/ <project>.git $ git fetch --all $ git remote show $ git branch -a 35
  • 36. Submitting a Pull Request • Create a new topic branch based on issue number $ git checkout -b <project>-123 • Complete your changes • Push your branch to origin $ git push origin <project>-123 • Select when you are ready to submit your code to the project lead for review 36
  • 37. 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 $ git pull --rebase upstream master 37
  • 39. 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! GitHub Pull Request = Code + Issue + Code Comments 39
  • 41. 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
  • 42. 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
  • 43. Cloud Foundry Code Reviews 43
  • 44. 44
  • 45. 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
  • 46. Recommendation • Try GitHub first • Consider Gerrit 46
  • 48. Community • www.springsource.org • blog.springsource.org • twitter.com/springsource • twitter.com/springframework • forum.springsource.org • stackoverflow.com/questions/tagged/spring 48
  • 49. 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
  • 50. Q&A

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n