Skip to content

Commit

Permalink
version 0.3.2
Browse files Browse the repository at this point in the history
support elasticsearch 8.7 ~ 8.13
  • Loading branch information
yangyaofei committed May 27, 2024
1 parent 08c54e8 commit 8bfd6c1
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
needs: release-create
strategy:
matrix:
elasticsearch-version: [ 8.7.1, 8.6.2, 8.5.3, 8.4.3, 8.3.3 ]
elasticsearch-version: [ 8.13.4, 8.11.4, 8.7.1 ]
runs-on: ubuntu-latest
steps:
- id: get_version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
elasticsearch-version: [ 8.7.1, 8.6.2, 8.5.3, 8.4.3, 8.3.3 ]
elasticsearch-version: [ 8.13.4, 8.11.4, 8.7.1 ]
name: Test
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:8.7.1
FROM docker.elastic.co/elasticsearch/elasticsearch:8.13.4
MAINTAINER yangyaofei [email protected]
#COPY --chmod=777 build/distributions/analysis-ictclas-0.3.0.zip /tmp/analysis-ictclas.zip
RUN --mount=type=bind,src=build/distributions/analysis-ictclas-0.3.0.zip,target=/tmp/analysis-ictclas.zip ./bin/elasticsearch-plugin install --batch file:///tmp/analysis-ictclas.zip
RUN --mount=type=bind,src=build/distributions/analysis-ictclas-0.3.2.zip,target=/tmp/analysis-ictclas.zip ./bin/elasticsearch-plugin install --batch file:///tmp/analysis-ictclas.zip
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ Analyzer: `ictclas_search`, `ictclas_index`
Supported version:

- 0.2.x: 8.2.0 ~ 7.14.2
- 0.3.x: 8.3.0 ~ 8.7.1
- 0.3.1: 8.3.0 ~ 8.7.1
- 0.3.2: 8.7.1 ~ 8.13.4

# Build

## 1. make config file `gradle.properties`

``` properties
elasticsearchVersion = 8.7.1
elasticsearchVersion = 8.13.4
```

## 2. build
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ esplugin {
}

group 'com.lingjoin'
version '0.3.1'
version '0.3.2'

java {
withSourcesJar()
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
networkTimeout=10000
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
19 changes: 7 additions & 12 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,11 +80,14 @@ do
esac
done

# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

Expand Down Expand Up @@ -140,16 +143,12 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -194,10 +193,6 @@ if "$cygwin" || "$msys" ; then
done
fi


# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
Expand Down
1 change: 0 additions & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand Down

0 comments on commit 8bfd6c1

Please sign in to comment.