Updated version to 2.0.0-SNAPSHOT

Original commit: elastic/x-pack-elasticsearch@8fb8035596
This commit is contained in:
uboness 2015-08-12 20:55:26 +02:00
parent ae7d9c3048
commit c4e213fc92
14 changed files with 33 additions and 29 deletions

View File

@ -12,7 +12,7 @@
<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>x-plugins</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<properties>

View File

@ -21,10 +21,10 @@ public class MarvelVersion implements Serializable {
// AA values below 50 are beta builds, and below 99 are RC builds, with 99 indicating a release
// the (internal) format of the id is there so we can easily do after/before checks on the id
public static final int V_2_0_0_Beta1_ID = /*00*/2000001;
public static final MarvelVersion V_2_0_0_Beta1 = new MarvelVersion(V_2_0_0_Beta1_ID, true, Version.V_2_0_0_beta1, LicenseVersion.V_1_0_0);
public static final int V_2_0_0_ID = /*00*/2000099;
public static final MarvelVersion V_2_0_0 = new MarvelVersion(V_2_0_0_ID, true, Version.V_2_0_0, LicenseVersion.V_1_0_0);
public static final MarvelVersion CURRENT = V_2_0_0_Beta1;
public static final MarvelVersion CURRENT = V_2_0_0;
public static MarvelVersion readVersion(StreamInput in) throws IOException {
return fromId(in.readVInt());
@ -32,8 +32,8 @@ public class MarvelVersion implements Serializable {
public static MarvelVersion fromId(int id) {
switch (id) {
case V_2_0_0_Beta1_ID:
return V_2_0_0_Beta1;
case V_2_0_0_ID:
return V_2_0_0;
default:
return new MarvelVersion(id, null, Version.CURRENT, LicenseVersion.CURRENT);
}

View File

@ -14,11 +14,11 @@ public class MarvelVersionTests extends ESTestCase {
@Test
public void testVersionFromString() {
assertThat(MarvelVersion.fromString("2.0.0-beta1"), equalTo(MarvelVersion.V_2_0_0_Beta1));
assertThat(MarvelVersion.fromString("2.0.0"), equalTo(MarvelVersion.V_2_0_0));
}
@Test
public void testVersionNumber() {
assertThat(MarvelVersion.V_2_0_0_Beta1.number(), equalTo("2.0.0-beta1"));
assertThat(MarvelVersion.V_2_0_0.number(), equalTo("2.0.0"));
}
}

View File

@ -23,7 +23,7 @@
"total": 1
},
"versions": [
"2.0.0-beta1-SNAPSHOT"
"2.0.0-SNAPSHOT"
],
"jvm": {
"max_uptime_in_millis": 75191

View File

@ -7,14 +7,14 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>x-plugins</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Elasticsearch X-Plugins - Parent POM</name>
<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-plugin</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<properties>

View File

@ -7,7 +7,6 @@
<groupId>org.elasticsearch.qa</groupId>
<artifactId>x-plugins-qa</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>QA: Parent POM</name>
<inceptionYear>2015</inceptionYear>
@ -15,7 +14,7 @@
<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>x-plugins</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<properties>

View File

@ -8,7 +8,7 @@
<parent>
<groupId>org.elasticsearch.qa</groupId>
<artifactId>x-plugins-qa</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<!--
@ -34,7 +34,7 @@
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-shield</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>${elasticsearch.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -8,7 +8,7 @@
<parent>
<groupId>org.elasticsearch.qa</groupId>
<artifactId>x-plugins-qa</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<!--
@ -32,7 +32,7 @@
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-shield</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>${elasticsearch.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

@ -25,7 +25,7 @@
<parent>
<groupId>org.elasticsearch.qa</groupId>
<artifactId>x-plugins-qa</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<artifactId>smoke-test-watcher-with-shield</artifactId>
@ -44,7 +44,7 @@
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-shield</artifactId>
<version>${project.version}</version>
<version>${elasticsearch.version}</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -12,7 +12,7 @@
<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>x-plugins</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<properties>
@ -45,7 +45,7 @@
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>elasticsearch-license</artifactId>
<version>${project.version}</version>
<version>${elasticsearch.version}</version>
<scope>provided</scope>
</dependency>

View File

@ -32,6 +32,6 @@ public class VersionCompatibilityTests extends ESTestCase {
* Once es core supports merging cluster level custom metadata (licenses in our case), the tribe node will see some license coming from the tribe and everything will be ok.
*
*/
assertThat("Remove workaround in LicenseService class when es core supports merging cluster level custom metadata", Version.CURRENT.onOrBefore(Version.V_2_0_0_beta1), is(true));
assertThat("Remove workaround in LicenseService class when es core supports merging cluster level custom metadata", Version.CURRENT.onOrBefore(Version.V_2_0_0), is(true));
}
}

View File

@ -12,7 +12,7 @@
<parent>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>x-plugins</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
</parent>
<properties>

View File

@ -32,10 +32,10 @@ public class WatcherVersion implements Serializable {
public static final WatcherVersion V_1_0_0_RC1 = new WatcherVersion(V_1_0_0_RC1_ID, false, Version.V_1_5_0, LicenseVersion.V_1_0_0);
public static final int V_1_0_0_ID = /*00*/1000099;
public static final WatcherVersion V_1_0_0 = new WatcherVersion(V_1_0_0_ID, false, Version.V_1_5_0, LicenseVersion.V_1_0_0);
public static final int V_2_0_0_Beta1_ID = /*00*/200001;
public static final WatcherVersion V_2_0_0_Beta1 = new WatcherVersion(V_2_0_0_Beta1_ID, true, Version.V_1_5_0, LicenseVersion.V_2_0_0_beta1);
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, true, Version.V_1_5_0, LicenseVersion.V_2_0_0);
public static final WatcherVersion CURRENT = V_2_0_0_Beta1;
public static final WatcherVersion CURRENT = V_2_0_0;
public static WatcherVersion readVersion(StreamInput in) throws IOException {
return fromId(in.readVInt());
@ -51,8 +51,8 @@ public class WatcherVersion implements Serializable {
return V_1_0_0_RC1;
case V_1_0_0_ID:
return V_1_0_0;
case V_2_0_0_Beta1_ID:
return V_2_0_0_Beta1;
case V_2_0_0_ID:
return V_2_0_0;
default:
return new WatcherVersion(id, null, Version.CURRENT, LicenseVersion.CURRENT);
}

View File

@ -1,12 +1,15 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-x-dev-tools</artifactId>
<version>2.0.0-beta1-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<name>Elasticsearch Commercial Plugin Build Resources</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
@ -28,6 +31,7 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>deploy-internal</id>
@ -61,5 +65,6 @@
</activation>
</profile>
</profiles>
</project>