Skip to content

Commit 48f7e1a

Browse files
committed
Improved versioning, target names and added build instructions to the README.
1 parent a0c711d commit 48f7e1a

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,19 @@ Include the following in your elasticsearch.yml config file:
3333

3434
**Note:** If you don’t do this, they still show up on the plugins list (see later) but you’ll get errors when you try to use either of them saying that elasticsearch can’t find the plugin.
3535

36-
## Step 2: Deployment
36+
## Step 2: Build
37+
To build the plugins simply run: `gradle build`.
38+
39+
The results will be located in: `PLUGIN_NAME/build/libs/`
40+
41+
For example:
42+
43+
* `hammingdistance/build/libs/hammingdistance-0.1.0.jar`
44+
* `euclideandistance/build/libs/euclideandistance-0.1.0.jar`
45+
46+
**Note:** This has been built using Gradle v2.7.
47+
48+
## Step 3: Deployment
3749
Don't bother using the elasticsearch plugin script to install it
3850
It's just a pain the ass and all it seems to do is unpack your stuff - a bit pointless.
3951

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.cameraforensics'
2-
version '1.0-SNAPSHOT'
2+
version '0.1.0'
33

44
apply plugin: 'java'
55
apply plugin: 'java'

euclideandistance/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
group 'com.cameraforensics'
2-
version '1.0-SNAPSHOT'
2+
version '0.1.0'
33

44
sourceCompatibility = JavaVersion.VERSION_1_7
55
targetCompatibility = JavaVersion.VERSION_1_7
66

77
jar {
8-
baseName = 'elasticsearch-plugins-euclideandistance'
8+
baseName = 'euclideandistance'
99
version = '0.1.0'
1010
}
1111

hammingdistance/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
group 'com.cameraforensics'
2-
version '1.0-SNAPSHOT'
2+
version '0.1.0'
33

44
sourceCompatibility = JavaVersion.VERSION_1_7
55
targetCompatibility = JavaVersion.VERSION_1_7
66

77
jar {
8-
baseName = 'elasticsearch-plugins-hammingdistance'
8+
baseName = 'hammingdistance'
99
version = '0.1.0'
1010
}
1111

0 commit comments

Comments
 (0)