| David Pletcher | 015ce0a | 2014-10-28 21:57:32 -0700 | [diff] [blame] | 1 | java_library( |
| 2 | name = 'http', |
| 3 | srcs = glob(['src/main/java/**/*.java']), |
| 4 | provided_deps = ['//lib:servlet-api-3_1'], |
| 5 | visibility = ['PUBLIC'], |
| 6 | ) |
| 7 | |
| Dave Borowitz | 054b8f3 | 2015-12-01 12:12:51 -0500 | [diff] [blame] | 8 | TESTUTIL_SRCS = glob(['src/test/**/testutil/**/*.java']) |
| 9 | |
| 10 | java_library( |
| 11 | name = 'testutil', |
| 12 | srcs = TESTUTIL_SRCS, |
| 13 | deps = [ |
| 14 | '//gerrit-extension-api:api', |
| 15 | '//lib:guava', |
| 16 | '//lib:servlet-api-3_1', |
| Dave Borowitz | 9d60d90 | 2015-12-01 13:29:03 -0500 | [diff] [blame] | 17 | '//lib/httpcomponents:httpclient', |
| David Ostrovsky | 08ea694 | 2016-04-20 08:55:24 +0200 | [diff] [blame] | 18 | '//lib/jgit/org.eclipse.jgit:jgit', |
| Dave Borowitz | 054b8f3 | 2015-12-01 12:12:51 -0500 | [diff] [blame] | 19 | ], |
| 20 | visibility = ['PUBLIC'], |
| 21 | ) |
| 22 | |
| David Pletcher | 015ce0a | 2014-10-28 21:57:32 -0700 | [diff] [blame] | 23 | java_test( |
| 24 | name = 'http_tests', |
| Dave Borowitz | 054b8f3 | 2015-12-01 12:12:51 -0500 | [diff] [blame] | 25 | srcs = glob( |
| 26 | ['src/test/java/**/*.java'], |
| 27 | excludes = TESTUTIL_SRCS, |
| 28 | ), |
| David Pletcher | 015ce0a | 2014-10-28 21:57:32 -0700 | [diff] [blame] | 29 | deps = [ |
| 30 | ':http', |
| Dave Borowitz | 054b8f3 | 2015-12-01 12:12:51 -0500 | [diff] [blame] | 31 | ':testutil', |
| David Pletcher | 015ce0a | 2014-10-28 21:57:32 -0700 | [diff] [blame] | 32 | '//lib:junit', |
| 33 | '//lib:servlet-api-3_1', |
| David Pursehouse | c3f35e6 | 2015-06-03 14:49:16 +0900 | [diff] [blame] | 34 | '//lib:truth', |
| David Pletcher | 015ce0a | 2014-10-28 21:57:32 -0700 | [diff] [blame] | 35 | '//lib/easymock:easymock', |
| 36 | ], |
| 37 | source_under_test = [':http'], |
| 38 | # TODO(sop) Remove after Buck supports Eclipse |
| 39 | visibility = ['//tools/eclipse:classpath'], |
| 40 | ) |