+ All Categories
Home > Software > Gradle 2.2, 2.3 news #jggug

Gradle 2.2, 2.3 news #jggug

Date post: 28-Nov-2014
Category:
Upload: kyon-mm
View: 421 times
Download: 1 times
Share this document with a friend
Description:
2014/10/24 G* WorkshopでLTしました。 Gradleの最新情報です。
24
GRADLE NEWS KYON_MM [email protected] 2014/10/24 0
Transcript
Page 1: Gradle 2.2, 2.3 news #jggug

GRADLE NEWSKYON_MM

[email protected]

2014/10/24

0

Page 2: Gradle 2.2, 2.3 news #jggug

1

kyon_mm 27

TDD/BDDGradle master

Page 3: Gradle 2.2, 2.3 news #jggug

2 GRADLEGradle

Gradle2.1

Page 4: Gradle 2.2, 2.3 news #jggug

2.1 Gradle2.2 RC-1

Release Note

Page 5: Gradle 2.2, 2.3 news #jggug

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

Page 6: Gradle 2.2, 2.3 news #jggug

3.1 COMPONENT SELECTION RULES

( ) Gradle

Page 7: Gradle 2.2, 2.3 news #jggug

3.2 DECLARING MODULE REPLACEMENTS

ID

dependencies { modules { module("com.google.collections:google-collections") { replacedBy("com.google.guava:guava") } }}

Page 8: Gradle 2.2, 2.3 news #jggug

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' }}

Page 9: Gradle 2.2, 2.3 news #jggug

3.4 NATIVE LANGUAGE CROSS-COMPILATION IMPROVEMENTS

GCC

model { toolChains { gcc(Gcc) { eachPlatform { tc -> if (tc.platform.name == "arm") { cCompiler.executable = 'gcc-arm' } } } } }

Page 10: Gradle 2.2, 2.3 news #jggug

3.5 SUPPORT FOR BUILDING X64 BINARIES ON WINDOWSUSING GCC

Windows OS GCC 64bit

Page 11: Gradle 2.2, 2.3 news #jggug

3.6 SPECIFY VERSION CONTROL SYSTEM FOR INTELLIJ IDEA

idea ideaVCS

apply plugin: "idea"

idea { project { vcs = "Git" }}

Page 12: Gradle 2.2, 2.3 news #jggug

3.7 SPECIFY LOCATION OF LOCAL MAVEN REPOSITORYINDEPENDENTLY

Maven~/.m2

Page 13: Gradle 2.2, 2.3 news #jggug

3.8 COMPATIBILITY WITH OPENSHIFTOpenShift Gradle

OpenShift

Page 14: Gradle 2.2, 2.3 news #jggug

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}

Page 15: Gradle 2.2, 2.3 news #jggug

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/entry.txt")}

Page 16: Gradle 2.2, 2.3 news #jggug

4 GRADLE2.2

Page 17: Gradle 2.2, 2.3 news #jggug

4.1 Gradle RC

Release NoteGradle 2.3 Release Notes

Page 18: Gradle 2.2, 2.3 news #jggug

5 GRADLE 2.3Component metadata rule enhancementsNew PluginAware methods for detecting the presence ofpluginsANTLR plugin supports ANTLR version 3.X and 4.XAntlrTask running in separate process

Page 19: Gradle 2.2, 2.3 news #jggug

5.1 COMPONENT METADATA RULE ENHANCEMENTSMetaData 2.3

Page 20: Gradle 2.2, 2.3 news #jggug

5.2 NEW PLUGINAWARE METHODS FOR DETECTING THEPRESENCE OF PLUGINS

Plugin

findPlugin()hasPlugin()withPlugin()

Page 21: Gradle 2.2, 2.3 news #jggug

5.3 ANTLR PLUGIN SUPPORTS ANTLR VERSION 3.X AND 4.X

ANTLR ANTLR3, 4apply plugin: "java"apply plugin: "antlr"

repositories() { jcenter()}

dependencies { antlr 'org.antlr:antlr4:4.3'}

Page 22: Gradle 2.2, 2.3 news #jggug

5.4 ANTLRTASK RUNNING IN SEPARATE PROCESS

ANTLR Gradle Gradle

Page 23: Gradle 2.2, 2.3 news #jggug

6 CONCLUSIONGradle2.2, 2.3

Ant

Groovy ANTLR4 ANTLR4

Page 24: Gradle 2.2, 2.3 news #jggug

7 ENJOY GRADLE LIFE !


Recommended