diff --git a/pom.xml b/pom.xml index d0f3e46c597..128b23a9489 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.elasticsearch elasticsearch-shield - 1.0.0 + 2.0.0-SNAPSHOT scm:git:git@github.com:elasticsearch/elasticsearch-shield.git diff --git a/src/main/java/org/elasticsearch/shield/ShieldVersion.java b/src/main/java/org/elasticsearch/shield/ShieldVersion.java index 69a28b0e0c6..31b2e89386e 100644 --- a/src/main/java/org/elasticsearch/shield/ShieldVersion.java +++ b/src/main/java/org/elasticsearch/shield/ShieldVersion.java @@ -26,8 +26,10 @@ public class ShieldVersion implements Serializable { public static final int V_1_0_0_ID = /*00*/1000099; public static final ShieldVersion V_1_0_0 = new ShieldVersion(V_1_0_0_ID, false, Version.V_1_4_2, LicenseVersion.V_1_0_0); + public static final int V_2_0_0_ID = /*00*/2000099; + public static final ShieldVersion V_2_0_0 = new ShieldVersion(V_2_0_0_ID, true, Version.V_1_4_2, LicenseVersion.V_1_0_0); - public static final ShieldVersion CURRENT = V_1_0_0; + public static final ShieldVersion CURRENT = V_2_0_0; public static ShieldVersion readVersion(StreamInput in) throws IOException { return fromId(in.readVInt()); @@ -35,8 +37,8 @@ public class ShieldVersion implements Serializable { public static ShieldVersion fromId(int id) { switch (id) { - case V_1_0_0_ID: - return V_1_0_0; + case V_1_0_0_ID: return V_1_0_0; + case V_2_0_0_ID: return V_2_0_0; default: return new ShieldVersion(id, null, Version.CURRENT, LicenseVersion.CURRENT);