File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 6
6
jobs :
7
7
build :
8
8
runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ es_version : [ 8.5.3, 8.6.1 ]
9
12
steps :
10
13
- name : Checkout project sources
11
14
uses : actions/checkout@v2
15
18
java-version : 17
16
19
- name : Setup Gradle
17
20
uses : gradle/gradle-build-action@v2
18
- - name : Run build with Gradle Wrapper
19
- run : ./gradlew build
21
+
22
+ - name : Run release build with Gradle Wrapper
23
+ run : ./gradlew build -Pplugin.version=${{ github.ref }} -Pelasticsearch.version=${{ matrix.es_version }}
24
+
20
25
- name : Release
21
26
uses : softprops/action-gh-release@v1
22
27
if : startsWith(github.ref, 'refs/tags/')
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
6
6
7
7
dependencies {
8
8
// Update Elasticsearch version here
9
- classpath " org.elasticsearch.gradle:build-tools:8.5.3 "
9
+ classpath " org.elasticsearch.gradle:build-tools:${ property("elasticsearch.version") } "
10
10
}
11
11
}
12
12
@@ -25,16 +25,12 @@ compileJava {
25
25
apply plugin : ' elasticsearch.esplugin'
26
26
27
27
group = " cz.monitora.elasticsearch"
28
- version = " 1.0.0 "
28
+ version = " ${ property("plugin.version") } - ${ property("elasticsearch.version") } "
29
29
30
30
esplugin {
31
31
name ' monitora_utils'
32
32
description ' Utils for Elasticsearch'
33
33
classname ' cz.monitora.elasticsearch.LowerCase'
34
34
licenseFile rootProject. file(' LICENSE' )
35
35
}
36
- // dependencies {
37
- // compileOnly "org.elasticsearch:elasticsearch:8.5.3"
38
- // }
39
- // validateNebulaPom.enabled = false
40
36
Original file line number Diff line number Diff line change
1
+ elasticsearch.version =8.5.3
2
+ plugin.version =1.0.0-SNAPSHOT
You can’t perform that action at this time.
0 commit comments