-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for -Dbuild.snapshot=true/false and default to building snapshot. #1409
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
description=Provide access control related features for OpenSearch 1.0.0 | ||
# | ||
# 'version': plugin's version | ||
version=1.1.0.0-SNAPSHOT | ||
version=1.1.0.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is security plugin version, not the OpenSearch version. If the goal of this PR is to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The plugin version needs to be incremented because we're building OpenSearch 1.1. Every other plugin says it's version 1.1.0.0-SNAPSHOT. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would expect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This properties file by default has a number without snapshot. Then, with a profile, we change it to be |
||
# | ||
# 'name': the plugin name | ||
name=opensearch-security | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
<groupId>org.opensearch</groupId> | ||
<artifactId>opensearch-security</artifactId> | ||
<packaging>jar</packaging> | ||
<version>1.1.0.0-SNAPSHOT</version> | ||
<version>${version}</version> | ||
<name>OpenSearch Security</name> | ||
<description>OpenSearch Security</description> | ||
<url>https://github.com/opensearch-project/security</url> | ||
|
@@ -69,6 +69,7 @@ | |
<maven.compiler.release>8</maven.compiler.release> | ||
|
||
<opensearch.version>1.1.0</opensearch.version> | ||
<version>1.1.0.0</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is referenced on the line 37 that is security plugin version. Same as this comment, doesn't seem to need a change at here. If yes, this is the example PR to bump plugin version. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It had to move to properties or you cannot set it via a profile. |
||
|
||
<!-- deps --> | ||
<netty-native.version>2.0.25.Final</netty-native.version> | ||
|
@@ -831,6 +832,18 @@ | |
</resources> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<activation> | ||
<property> | ||
<name>build.snapshot</name> | ||
<value>!false</value> | ||
</property> | ||
</activation> | ||
<properties> | ||
<version>1.1.0.0-SNAPSHOT</version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this PR is bumping security version from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this is the case, I updated the description of the PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Must be consistent with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update: by default the version comes from plugin.properties and is set to 1.1.0.0. This sets the version to 1.1.0.0-SNAPSHOT unless you specify If you put 1.1.0.0-SNAPSHOT in the properties file, then this profile condition would have to be inverted. But then the default can't be snapshot=true. |
||
<opensearch.version>1.1.0.0-SNAPSHOT</opensearch.version> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>advanced</id> | ||
<build> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes version of OpenSearch and not the security plugin to
-SNAPSHOT
. It was supposed to be part of #1335. @cliu123 I'd prefer to have a separate PR that changes OpenSearch dependency version to-SNAPSHOT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does both at build time.