Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Gradle 2.2, 2.3 news #jggug

1,456 views

Published on

2014/10/24 G* WorkshopでLTしました。
Gradleの最新情報です。

Published in: Software

Gradle 2.2, 2.3 news #jggug

  1. 1. GRADLE NEWS KYON_MM KYON.MM@GMAIL.COM 2014/10/24 0
  2. 2. 1 kyon_mm 27 TDD/BDD Gradle master
  3. 3. 2 GRADLE Gradle Gradle2.1
  4. 4. 2.1 Gradle2.2 RC-1 Release Note
  5. 5. 3 GRADLE 2.2 Component Selection Rules Declaring module replacements Sonar Runner plugin improvements Native language cross-compilation improvements Support for building x64 binaries on Windows using GCC Specify version control system for IntelliJ IDEA Specify location of local maven repository independently Compatibility with OpenShift Support for renaming imported Ant targets Sharing configuration files across builds
  6. 6. 3.1 COMPONENT SELECTION RULES ( ) Gradle
  7. 7. 3.2 DECLARING MODULE REPLACEMENTS ID dependencies { modules { module("com.google.collections:google-collections") { replacedBy("com.google.guava:guava") } } }
  8. 8. 3.3 SONAR RUNNER PLUGIN IMPROVEMENTS SonarQube( ) Gradle Gradle SonarQube Gradle SonarQube apply plugin: "sonar-runner" sonarRunner { toolVersion = "2.4" // Fine grained control over the runner process forkOptions { maxHeapSize = '1024m' } }
  9. 9. 3.4 NATIVE LANGUAGE CROSS-COMPILATION IMPROVEMENTS GCC model { toolChains { gcc(Gcc) { eachPlatform { tc -> if (tc.platform.name == "arm") { cCompiler.executable = 'gcc-arm' } } } } }
  10. 10. 3.5 SUPPORT FOR BUILDING X64 BINARIES ON WINDOWS USING GCC Windows OS GCC 64bit
  11. 11. 3.6 SPECIFY VERSION CONTROL SYSTEM FOR INTELLIJ IDEA idea idea VCS apply plugin: "idea" idea { project { vcs = "Git" } }
  12. 12. 3.7 SPECIFY LOCATION OF LOCAL MAVEN REPOSITORY INDEPENDENTLY Maven ~/.m2
  13. 13. 3.8 COMPATIBILITY WITH OPENSHIFT OpenShift Gradle OpenShift
  14. 14. 3.9 SUPPORT FOR RENAMING IMPORTED ANT TARGETS Gradle Ant Ant apply plugin: "java" // adds 'clean' task ant.importBuild("build.xml") { it == "clean" ? "ant-clean" : it }
  15. 15. 3.10 SHARING CONFIGURATION FILES ACROSS BUILDS zip apply plugin: "checkstyle" configurations { checkstyleConfig } dependencies { checkstyleConfig "com.company:checkstyle-config:1.0@zip" } checkstyle { // affects all Checkstyle tasks config = resources.text.fromString("""<module name="Checker">...</module>""") config = resources.text.fromFile("path/to/file.txt") config = resources.text.fromFile(someTask) config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, "path/to/archive/en try.txt") }
  16. 16. 4 GRADLE2.2
  17. 17. 4.1 Gradle RC Release Note Gradle 2.3 Release Notes
  18. 18. 5 GRADLE 2.3 Component metadata rule enhancements New PluginAware methods for detecting the presence of plugins ANTLR plugin supports ANTLR version 3.X and 4.X AntlrTask running in separate process
  19. 19. 5.1 COMPONENT METADATA RULE ENHANCEMENTS MetaData 2.3
  20. 20. 5.2 NEW PLUGINAWARE METHODS FOR DETECTING THE PRESENCE OF PLUGINS Plugin findPlugin() hasPlugin() withPlugin()
  21. 21. 5.3 ANTLR PLUGIN SUPPORTS ANTLR VERSION 3.X AND 4.X ANTLR ANTLR3, 4 apply plugin: "java" apply plugin: "antlr" repositories() { jcenter() } dependencies { antlr 'org.antlr:antlr4:4.3' }
  22. 22. 5.4 ANTLRTASK RUNNING IN SEPARATE PROCESS ANTLR Gradle Gradle
  23. 23. 6 CONCLUSION Gradle2.2, 2.3 Ant Groovy ANTLR4 ANTLR4
  24. 24. 7 ENJOY GRADLE LIFE !

×