Created
June 14, 2016 11:10
-
-
Save brettwold/e6e8b74afddd328f2c79eec4e74c924c to your computer and use it in GitHub Desktop.
Revisions
-
brettwold created this gist
Jun 14, 2016 .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,11 @@ android.libraryVariants.all { variant -> def name = variant.buildType.name if (name.indexOf("debug") > -1) { return; // Skip debug builds. } def task = project.tasks.create "jar${name.capitalize()}", Jar task.baseName = "${project.name}-${rootProject.version}" task.dependsOn variant.javaCompile task.from variant.javaCompile.destinationDir artifacts.add('archives', task); }