moving version to 2.0.0-SNAPSHOT

Original commit: elastic/x-pack-elasticsearch@58e7b38de5
This commit is contained in:
uboness 2015-05-20 15:29:52 +02:00
parent 0a3c85803c
commit 7d12d314ad
3 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<groupId>org.elasticsearch</groupId> <groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-watcher</artifactId> <artifactId>elasticsearch-watcher</artifactId>
<version>1.0.0-Beta1</version> <version>2.0.0-SNAPSHOT</version>
<scm> <scm>
<connection>scm:git:git@github.com:elastic/elasticsearch-watcher.git</connection> <connection>scm:git:git@github.com:elastic/elasticsearch-watcher.git</connection>

View File

@ -3,4 +3,4 @@
- do: {watcher.info: {}} - do: {watcher.info: {}}
- is_true: version.build_hash - is_true: version.build_hash
- is_true: version.build_timestamp - is_true: version.build_timestamp
- is_false: version.build_snapshot - is_true: version.build_snapshot

View File

@ -26,8 +26,10 @@ public class WatcherVersion implements Serializable {
public static final int V_1_0_0_Beta1_ID = /*00*/1000001; public static final int V_1_0_0_Beta1_ID = /*00*/1000001;
public static final WatcherVersion V_1_0_0_Beta1 = new WatcherVersion(V_1_0_0_Beta1_ID, false, Version.V_1_5_0, LicenseVersion.V_1_0_0); public static final WatcherVersion V_1_0_0_Beta1 = new WatcherVersion(V_1_0_0_Beta1_ID, false, Version.V_1_5_0, LicenseVersion.V_1_0_0);
public static final int V_2_0_0_ID = /*00*/2000099;
public static final WatcherVersion V_2_0_0 = new WatcherVersion(V_2_0_0_ID, false, Version.V_1_5_0, LicenseVersion.V_1_0_0);
public static final WatcherVersion CURRENT = V_1_0_0_Beta1; public static final WatcherVersion CURRENT = V_2_0_0;
public static WatcherVersion readVersion(StreamInput in) throws IOException { public static WatcherVersion readVersion(StreamInput in) throws IOException {
return fromId(in.readVInt()); return fromId(in.readVInt());
@ -37,7 +39,8 @@ public class WatcherVersion implements Serializable {
switch (id) { switch (id) {
case V_1_0_0_Beta1_ID: case V_1_0_0_Beta1_ID:
return V_1_0_0_Beta1; return V_1_0_0_Beta1;
case V_2_0_0_ID:
return V_2_0_0;
default: default:
return new WatcherVersion(id, null, Version.CURRENT, LicenseVersion.CURRENT); return new WatcherVersion(id, null, Version.CURRENT, LicenseVersion.CURRENT);
} }