diff --git a/WORKSPACE b/WORKSPACE index cd19c747aa..e8e2ecf5c7 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -411,6 +411,12 @@ maven_jar( sha1 = '6720c93d14225c3e12c4a69768a0370c80e376a3', ) +maven_jar( + name = 'jsoup', + artifact = 'org.jsoup:jsoup:1.9.2', + sha1 = '5e3bda828a80c7a21dfbe2308d1755759c2fd7b4', +) + OW2_VERS = '5.1' maven_jar( diff --git a/lib/BUCK b/lib/BUCK index c01d75a3d3..ad860ff12d 100644 --- a/lib/BUCK +++ b/lib/BUCK @@ -20,6 +20,7 @@ define_license(name = 'highlightjs') define_license(name = 'icu4j') define_license(name = 'jgit') define_license(name = 'jsch') +define_license(name = 'jsoup') define_license(name = 'MPL1.1') define_license(name = 'moment') define_license(name = 'OFL1.1') diff --git a/lib/LICENSE-jsoup b/lib/LICENSE-jsoup new file mode 100644 index 0000000000..9e15540218 --- /dev/null +++ b/lib/LICENSE-jsoup @@ -0,0 +1,21 @@ +The MIT License + +© 2009-2016, Jonathan Hedley + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/lib/jsoup/BUCK b/lib/jsoup/BUCK new file mode 100644 index 0000000000..8d8dab0781 --- /dev/null +++ b/lib/jsoup/BUCK @@ -0,0 +1,20 @@ +include_defs('//lib/maven.defs') + +VERSION = '1.9.2' + +java_library( + name = 'jsoup', + exported_deps = [ + ':jsoup_library', + ], + visibility = ['PUBLIC'], +) + +maven_jar( + name = 'jsoup_library', + id = 'org.jsoup:jsoup:' + VERSION, + sha1 = '5e3bda828a80c7a21dfbe2308d1755759c2fd7b4', + license = 'jsoup', + exclude_java_sources = True, + visibility = ['PUBLIC'], +) diff --git a/lib/jsoup/BUILD b/lib/jsoup/BUILD new file mode 100644 index 0000000000..e4d58c9c2e --- /dev/null +++ b/lib/jsoup/BUILD @@ -0,0 +1,6 @@ +java_library( + name = 'jsoup', + exports = ['@jsoup//jar'], + visibility = ['//visibility:public'], + data = ['//lib:LICENSE-jsoup'], +)