2. Agenda
● Gradle in general
● Buildship
– Explanation
– Demo
– Future plans
● Questions
Please ask questions at any the time!
3. What is Gradle?
● Buildtool (Concepts of both Ant and Maven)
● Groovy based DSL instead of XML
● Multi-project builds
● Polyglot Builds
● Incremental Build
● Lots of Plugins
➔ apply plugin: 'java'
➔ https://plugins.gradle.org/
5. Gradle Wrapper
● Project may contain a Gradle wrapper
● Linux / Mac
➢ gradlew
● Windows
➢ gradlew.bat
./gradlew build
6. What is needed for Gradle?
● Java 6 or higher (JDK or JRE)
● No Groovy installation required
● Add “GRADLE_HOME/bin” to your path
● Latest Version 2.7 (14th
of September)
You can check installation with the “gradle -v” command in a terminal
https://docs.gradle.org/current/release-notes
9. Beginning of the screenshot
slides,
which where shown live in
Eclipse
10.
11. We recommend to leave it like in the sreenshot,
because all settings made here are only locally in your Eclipse IDE
and therefore won't be available for others who checkout the Projects
Tip : Rather specify
your settings
in the Gradle build files
12. Gradle automatically chooses
the right version, which is defined
in the build files or
the latest, if no version is defined.
The preview also shows the
project structure of
the overall import
13. Gradle Task View
Shows the tasks of the Gradle projects
Filter options in the
View's menu
14. Gradle Execution View
See all running tasks with options to open test files, see failures and (re-)run tests
17. The New Wizard uses the
gradle init --type 'java-library'
command to create this Project
18. End of the screenshot slides,
which where shown live in
Eclipse
19. Buildship Libraries
● Several Eclipse IDE Libraries (Resources,
JDT...)
● Google Guava
● Google GSON
● SLF4J
● Gradle Tooling API
● Testing: Spock, SWTBot tests
Obtained from Eclipse Orbit
Will soon be part of Eclipse Orbit
http://download.eclipse.org/tools/orbit/downloads/
20. Current Features
● Import Gradle projects
● Create new Gradle projects
● Run Gradle tasks in the IDE
– It is recommended to use the latest Gradle Version
● Visualize Gradle task execution
21. What is needed for Buildship?
● Java 6 or higher (JDK or JRE)
● At least Eclipse 3.6
● Gradle will be downloaded automatically
● Certain Features depend on the Gradle version
22. Future Plans
● Task favorites
● Run Configuration history in Task View
● Components View
● Plugins View
● Run configuration in debug mode
● Gradle Editor
● Gradle Perspective for Buildmasters
● ...AndMore
24. Do not miss the Eclipse HackathonEclipse Hackathon
18.09.2015 18:00
https://wiki.eclipse.org/Hackathon_Hamburg_2015_Q4
You can also
contribute to
Buildship
25. Thank you for your
attention!
Simon Scholz
https://twitter.com/simonscholz
Editor's Notes
Incremental builds, build caching and parallelization drives the Gradle daemon to new heights of performance
Out of the box, Gradle handles transitive dependencies that resolve across multiple repository types including Maven, Ivy, flat files.
Linkedin uses Gradle to build 60 different programming languages including Java, Scala, Python, C/C++, Android, IOS and many many more.
Robust build analytic capabilities that allow build masters to see exactly what needs to be optimized and zero in on build problems. Gain insight into the efficiency of the build pipeline including which modules are outperforming and which are lagging.
Make sure that the builds runs the same everywhere