java.lang.IllegalArgumentException: Plugin [opensearch-security] was built for OpenSearch version 2.17.2 but version 2.17.1 is running

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.17.1

Describe the issue: This is a follow up question to the solved query Where can I find opensearch security plugin for 2.17.1 for Mac?

I am new to Opensearch. I tried building the security plugin by following the instructions at https://github.com/opensearch-project/security/blob/2.17/DEVELOPER_GUIDE.md

git clone https://github.com/opensearch-project/security.git

git checkout 2.17 (I could not find 2.17.1 branch)

When I build and deploy the plugin I am getting following error
java.lang.IllegalArgumentException: Plugin [opensearch-security] was built for OpenSearch version 2.17.2 but version 2.17.1 is running

Where can I get the source code for 2.17.1?

Configuration:

Relevant Logs or Screenshots:

@Andya you can use the following command:

./gradlew clean assemble -Dopensearch.version=2.17.1

this will build it for the correct version

thanks @Anthony

1 Like