Build: Version management.

 - Splits dependencies from version constraints.
 - Adds plugins to deal with dependency updates.

Change-Id: Ib59b8033f93dfae9159faf82d613e48bbd4bf845
diff --git a/build.gradle b/build.gradle
index 3537b8d..3ab28f4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,7 +2,9 @@
     id 'scala'
     id 'java'
     id 'io.quarkus'
-    id "com.diffplug.gradle.spotless" version "3.27.0"
+    id "com.diffplug.gradle.spotless" version "${spotlessPluginVersion}"
+    id "com.github.ben-manes.versions" version "${versionsPluginVersion}"
+    id "se.patrikerdes.use-latest-versions" version "${useLatestVersionsPluginVersion}"
 }
 
 sourceCompatibility = 11
@@ -32,6 +34,14 @@
      mavenCentral()
 }
 
+tasks {
+    dependencyUpdates {
+        checkConstraints = true
+        gradleReleaseChannel = "current"
+        revision = "release"
+    }
+}
+
 dependencies {
     implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
 
@@ -65,12 +75,17 @@
     //implementation 'org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec'
     //implementation 'jakarta.persistence:jakarta.persistence-api'
 
-    implementation 'org.scala-lang:scala-library:2.13.1'
+    implementation 'org.scala-lang:scala-library'
 
-    implementation 'com.vladmihalcea:hibernate-types-52:2.9.0'
+    implementation 'com.vladmihalcea:hibernate-types-52'
 
     testImplementation 'io.quarkus:quarkus-junit5'
     testImplementation 'io.rest-assured:rest-assured'
+
+    constraints {
+        implementation "org.scala-lang:scala-library:${scalaVersion}"
+        implementation "com.vladmihalcea:hibernate-types-52:${hibernateTypesVersion}"
+    }
 }
 
 spotless {
diff --git a/gradle.properties b/gradle.properties
index 414777d..41e6824 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,6 +1,16 @@
-quarkusPluginVersion = 1.1.1.Final
-quarkusPlatformArtifactId = quarkus-universe-bom
-quarkusPlatformVersion = 1.1.1.Final
 quarkusPlatformGroupId = io.quarkus
 
-#scalaMainClassName = eu.mulk.mulkcms2.main.Main
+quarkusPlatformArtifactId = quarkus-universe-bom
+quarkusPlatformVersion = 1.1.1.Final
+quarkusPluginVersion = 1.1.1.Final
+
+#quarkusPlatformArtifactId = quarkus-bom
+#quarkusPlatformVersion = 999-SNAPSHOT
+#quarkusPluginVersion = 999-SNAPSHOT
+
+spotlessPluginVersion = 3.27.0
+versionsPluginVersion = 0.27.0
+useLatestVersionsPluginVersion = 0.2.13
+
+hibernateTypesVersion = 2.9.0
+scalaVersion = 2.13.1