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 analyzeTestJar(type: AnalyzeJar) { | |
| jar = testJar | |
| } | |
| task copy(type:Copy) { | |
| from testJar | |
| into 'build/myJars' | |
| } | |
| class AnalyzeJar extends DefaultTask { |
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
| comp$ gradle components | |
| :components | |
| ------------------------------------------------------------ | |
| Root project | |
| ------------------------------------------------------------ | |
| JVM library 'myLib' | |
| ------------------- |
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: 'jvm-component' | |
| apply plugin: 'java-lang' | |
| jvm { | |
| libraries { | |
| myLib | |
| } | |
| } |
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: 'android' | |
| android { | |
| compileSdkVersion 15 | |
| buildToolsVersion "17.0" | |
| flavorGroups "abi", "version" | |
| productFlavors { | |
| free { |
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 org.gradle.sample; | |
| import org.gradle.tooling.BuildLauncher; | |
| import org.gradle.tooling.GradleConnector; | |
| import org.gradle.tooling.ProjectConnection; | |
| import java.io.File; | |
| public class Main { | |
| public static void main(String[] args) { |
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: 'checkstyle' | |
| apply plugin: 'codenarc' | |
| plugins.withType(JavaBasePlugin) { | |
| // Apply to all projects depending on :core | |
| configurations.compile.dependencies.withType(ProjectDependency).matching { it.dependencyProject == project(":core") }.all { | |
| project.apply from: "$rootDir/gradle/taskProperties.gradle" | |
| } | |
| } |