From 9e0cadb754083b5bd1f609edd6d4f3d86b74b2b2 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 4 Jan 2019 10:18:47 +0100
Subject: [PATCH] chore: add maven versioning skeleton

---
 lib/versioning/maven/index.js | 46 +++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 lib/versioning/maven/index.js

diff --git a/lib/versioning/maven/index.js b/lib/versioning/maven/index.js
new file mode 100644
index 0000000000..3ce865ec75
--- /dev/null
+++ b/lib/versioning/maven/index.js
@@ -0,0 +1,46 @@
+/* istanbul ignore file */
+
+const { compare } = require('./compare');
+
+const equals = (a, b) => compare(a, b) === 0;
+
+// TODO getMajor
+const getMajor = () => 0;
+
+// TODO getMinor
+const getMinor = () => 0;
+
+// TODO getPatch
+const getPatch = () => 0;
+
+const isGreaterThan = (a, b) => compare(a, b) === 1;
+
+// TODO isStable
+const isStable = () => true;
+
+// TODO isVersion
+const isVersion = () => true;
+
+const maxSatisfyingVersion = (versions, range) =>
+  versions.find(version => equals(version, range));
+
+const getNewValue = (currentValue, rangeStrategy, fromVersion, toVersion) =>
+  toVersion;
+
+module.exports = {
+  equals,
+  getMajor,
+  getMinor,
+  getPatch,
+  isCompatible: isVersion,
+  isGreaterThan,
+  isSingleVersion: isVersion,
+  isStable,
+  isValid: isVersion,
+  isVersion,
+  matches: equals,
+  maxSatisfyingVersion,
+  minSatisfyingVersion: maxSatisfyingVersion,
+  getNewValue,
+  sortVersions: compare,
+};
-- 
GitLab