ancient-stone-50795
09/06/2015, 2:56 PMdiff --git a/BUILD.tools b/BUILD.tools
index ec705fb..0db350e 100644
--- a/BUILD.tools
+++ b/BUILD.tools
@@ -70,3 +70,13 @@ jar_library(name = 'scrooge-linter',
dependencies = [
'3rdparty:thrift',
])
+
+jar_library(name = 'wire-compiler',
+ jars = [
+ jar(org='com.squareup.wire', name='wire-compiler', rev='2.0.0-BETA4')
+ ])
+
+jar_library(name = 'wire-runtime',
+ jars = [
+ jar(org='com.squareup.wire', name='wire-runtime', rev='2.0.0-BETA4')
+ ])
diff --git a/examples/src/wire/org/pantsbuild/example/temperature/BUILD b/examples/src/wire/org/pantsbuild/example/temperature/BUILD
index 30480f0..c3f55a7 100644
--- a/examples/src/wire/org/pantsbuild/example/temperature/BUILD
+++ b/examples/src/wire/org/pantsbuild/example/temperature/BUILD
@@ -9,5 +9,5 @@ java_wire_library(name='temperature',
# - wire 2.x, the compiler expects the service_factory interface.
# To switch between versions of wire you will also need to edit the
# //:wire-compiler and //:wire-runtime targets in BUILD.tools
- service_writer='com.squareup.wire.SimpleServiceWriter',
+ service_factory='com.squareup.wire.SimpleServiceFactory',
)