Justin Morey | c5c1c31 | 2014-03-05 13:06:08 -0600 | [diff] [blame] | 1 | apply plugin: 'java' |
| 2 | |
| 3 | sourceSets { |
| 4 | main { |
| 5 | java { |
| 6 | srcDirs = ['src'] |
| 7 | include 'org/**', |
| 8 | 'junit/extensions/**', |
Brett Chabot | cdf692b | 2014-04-30 22:54:01 -0700 | [diff] [blame^] | 9 | // remove these packages since they are in android.test.runner |
| 10 | // and proguard complains if they are present |
| 11 | // 'junit/runner/**', |
| 12 | // 'junit/textui/**', |
Justin Morey | c5c1c31 | 2014-03-05 13:06:08 -0600 | [diff] [blame] | 13 | 'junit/framework/ComparisonCompactor.java', |
| 14 | 'junit/framework/JUnit4TestAdapterCache.java', |
| 15 | 'junit/framework/JUnit4TestAdapter.java', |
| 16 | 'junit/framework/JUnit4TestCaseFacade.java' |
| 17 | } |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | jar { |
| 22 | baseName 'junit4' |
| 23 | classifier 'target' |
| 24 | } |
| 25 | |
| 26 | dependencies { |
| 27 | compile getAndroidPrebuilt('4') |
Justin Morey | 77ea5df | 2014-03-17 00:40:08 -0500 | [diff] [blame] | 28 | compile project(':hamcrest') |
Brett Chabot | cdf692b | 2014-04-30 22:54:01 -0700 | [diff] [blame^] | 29 | } |