This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task hello << { | |
| println 'Hello world!' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'java' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| compile group: 'org.hibernate', name: 'hibernate-core', version: '3.6.7.Final' | |
| testCompile group: 'junit', name: 'junit', version: '4.+' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task test { | |
| println 'Esto se ejecuta durante la fase de configuración.' | |
| } | |
| task test << { | |
| println 'Esto se ejecuta durante la fase de ejecución.' | |
| } | |
| task test.doFirst { | |
| println 'Esto se ejecuta primero, durante la fase de ejecución' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| println 'Esto se ejecuta durante la fase de inicialización.' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task wrapper(type: Wrapper) { | |
| gradleVersion = '2.3' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.mandarine.gradle; | |
| import org.gradle.api.*; | |
| class ToysPlugin implements Plugin<Project> { | |
| public static final String GROUP = 'Toys' | |
| void apply(Project project){ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| implementation-class=com.mandarine.gradle.ToysPlugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'groovy' | |
| group = 'com.mandarine.gradle' | |
| version = '1.0' | |
| dependencies { | |
| compile gradleApi() | |
| compile localGroovy() | |
| } | |
| uploadArchives { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buildscript { | |
| repositories { | |
| flatDir name: 'libs', dirs: "/tmp/repo" | |
| } | |
| dependencies { | |
| classpath 'com.mandarine.gradle:gradle-plugin:1.0' | |
| } | |
| } | |
| apply plugin: 'toys' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <resources> | |
| <style name="SplashTheme" parent="AppTheme"> | |
| <item name="android:windowBackground">@drawable/splash</item> | |
| </style> | |
| </resources> |
OlderNewer