Make publication validator part of the project (#1820)

Before, publication validator was just lying nearby, in these
files, and built and run separately. Now, it is compiled
alongside the main project (in the `test` gradle configuration), so
its breakage will be detected during normal usage. Still, it is
only run when a special gradle property, `DeployVersion`, is
defined.
diff --git a/settings.gradle b/settings.gradle
index 5bce054..15d377d 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -40,3 +40,5 @@
 
 module('js/js-stub')
 module('js/example-frontend-js')
+
+module('publication-validator')