-
-
Save goofyahead/5ff6fc9625c49d1bbefa to your computer and use it in GitHub Desktop.
Revisions
-
kellyfj renamed this gist
Mar 20, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kellyfj renamed this gist
Mar 20, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kellyfj revised this gist
Mar 20, 2014 . No changes.There are no files selected for viewing
-
kellyfj revised this gist
Mar 20, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ android.libraryVariants.all { variant -> def name = variant.buildType.name if (name.equals(com.android.builder.BuilderConstants.DEBUG)) { -
kellyfj revised this gist
Mar 20, 2014 . No changes.There are no files selected for viewing
-
kellyfj revised this gist
Mar 20, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ android.libraryVariants.all { variant -> def name = variant.buildType.name if (name.equals(com.android.builder.BuilderConstants.DEBUG)) { -
kellyfj created this gist
Mar 20, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ android.libraryVariants.all { variant -> def name = variant.buildType.name if (name.equals(com.android.builder.BuilderConstants.DEBUG)) { return; // Skip debug builds. } def task = project.tasks.create "jar${name.capitalize()}", Jar task.dependsOn variant.javaCompile //Include Java classes task.from variant.javaCompile.destinationDir //Include dependent jars with some exceptions task.from configurations.compile.findAll { it.getName() != 'android.jar' && !it.getName().startsWith('junit') && !it.getName().startsWith('hamcrest') }.collect { it.isDirectory() ? it : zipTree(it) } artifacts.add('archives', task); }