Bump version to release 2.2.2. (#1099)

diff --git a/lib/src/cli/formatter_options.dart b/lib/src/cli/formatter_options.dart
index 210247f..c5ca1ce 100644
--- a/lib/src/cli/formatter_options.dart
+++ b/lib/src/cli/formatter_options.dart
@@ -13,7 +13,7 @@
 import 'summary.dart';
 
 // Note: The following line of code is modified by tool/grind.dart.
-const dartStyleVersion = '2.2.1';
+const dartStyleVersion = '2.2.2';
 
 /// Global options that affect how the formatter produces and uses its outputs.
 class FormatterOptions {
diff --git a/pubspec.yaml b/pubspec.yaml
index 475dc08..44ece2b 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
 name: dart_style
 # Note: See tool/grind.dart for how to bump the version.
-version: 2.2.2-dev
+version: 2.2.2
 description: >-
   Opinionated, automatic Dart source code formatter.
   Provides an API and a CLI tool.