Skip to content

Commit

Permalink
Chore/upgrade lucene 9.4.0 (#203)
Browse files Browse the repository at this point in the history
* chore: update lucene to 9.4.0

* fix: quarkus-lucene outdated override

* chore: deps and changelog
  • Loading branch information
dainiusjocas authored Oct 21, 2022
1 parent 26c5a80 commit 89b947d
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clj-kondo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.1.0
- uses: DeLaGuardo/clojure-lint-action@master
with:
clj-kondo-args: --lint src test
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ env:
LMGREP_FEATURE_CHARSETS: true
LMGREP_FEATURE_STEMPEL: true
LMGREP_FEATURE_RAUDIKKO: false
CLOJURE_VERSION: '1.11.1.1155'
BABASHKA_VERSION: '0.9.161'
CLOJURE_VERSION: '1.11.1.1165'
BABASHKA_VERSION: '1.0.164'
GRAALVM_VERSION: '22.2.0'

jobs:
create-gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3.1.0

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Set env variable with the release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.1.0
- uses: graalvm/setup-graalvm@v1
with:
version: ${{ env.GRAALVM_VERSION }}
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Set env variable with the release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.1.0
- uses: graalvm/setup-graalvm@v1
with:
version: ${{ env.GRAALVM_VERSION }}
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
name: docker image release per architecture
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.1.0

- name: Set env variable with the release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ on:
push:

env:
CLOJURE_VERSION: '1.11.1.1155'
BABASHKA_VERSION: '0.9.161'
CLOJURE_VERSION: '1.11.1.1165'
BABASHKA_VERSION: '1.0.164'

jobs:
unit-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v3.1.0

- name: Cache maven deps
uses: actions/[email protected].7
uses: actions/[email protected].11
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Prepare java
uses: actions/setup-java@v3.4.1
uses: actions/setup-java@v3.6.0
with:
distribution: 'zulu'
java-version: 17
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For a list of breaking changes, check [here](#breaking-changes).

### Fixed/enhanced

- Upgrade to Lucene 9.3.0
- Upgrade to Lucene 9.4.0
- Upgrade GraalVM to 22.2.0
- Option for Lucene Monitor queries index disk storage under option `:queries-index-dir`
- Update `lucene-text-analysis` to 1.0.17
Expand Down
26 changes: 13 additions & 13 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@
["src" "resources"]
:deps
{org.clojure/clojure {:mvn/version "1.11.1"}
org.clojure/tools.cli {:mvn/version "1.0.206"}
org.apache.lucene/lucene-core {:mvn/version "9.3.0"}
org.apache.lucene/lucene-analysis-common {:mvn/version "9.3.0"}
org.apache.lucene/lucene-monitor {:mvn/version "9.3.0"}
org.apache.lucene/lucene-queries {:mvn/version "9.3.0"}
org.apache.lucene/lucene-queryparser {:mvn/version "9.3.0"}
org.clojure/tools.cli {:mvn/version "1.0.214"}
org.apache.lucene/lucene-core {:mvn/version "9.4.0"}
org.apache.lucene/lucene-analysis-common {:mvn/version "9.4.0"}
org.apache.lucene/lucene-monitor {:mvn/version "9.4.0"}
org.apache.lucene/lucene-queries {:mvn/version "9.4.0"}
org.apache.lucene/lucene-queryparser {:mvn/version "9.4.0"}
metosin/jsonista {:mvn/version "0.3.6"}
lt.jocas/lucene-custom-analyzer {:mvn/version "1.0.21"}
lt.jocas/lucene-custom-analyzer {:mvn/version "1.0.24"}
lmgrep/lucene-monitor-helpers {:local/root "modules/lucene-monitor-helpers"}
lt.jocas/lucene-query-parsing {:mvn/version "1.0.4"}
lt.jocas/lucene-text-analysis {:mvn/version "1.0.17"}
lt.jocas/lucene-query-parsing {:mvn/version "1.0.6"}
lt.jocas/lucene-text-analysis {:mvn/version "1.0.20"}
babashka/fs {:mvn/version "0.1.11"}
io.quarkiverse.lucene/quarkus-lucene {:mvn/version "0.3"
:exclusions [org.apache.lucene/lucene-analyzers-common]}
io.quarkus/quarkus-arc {:mvn/version "2.12.1.Final"}
io.quarkus/quarkus-arc {:mvn/version "2.13.3.Final"}
com.github.clj-easy/graal-build-time {:mvn/version "0.1.4"}}
:aliases
{:dev
{:extra-paths ["dev" "test" "test/resources"]
:extra-deps {org.clojure/tools.deps.alpha {:git/url "https://github.com/clojure/tools.deps.alpha"
:git/sha "c0ce485ddac6ad96fcc43491318c847287299d9b"}
org.slf4j/slf4j-nop {:mvn/version "2.0.0"}
:git/sha "37ce804269b2bbc2227d7101c32013a352f76e57"}
org.slf4j/slf4j-nop {:mvn/version "2.0.3"}
criterium/criterium {:mvn/version "0.4.6"}}}
:test
{:extra-paths ["test" "test/resources" "modules/text-analysis/test"]
:extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}}
:main-opts ["-m" "cognitect.test-runner"]}
:clj-kondo
{:main-opts ["-m" "clj-kondo.main" "--lint" "src" "test"]
:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.09.08"}}
:extra-deps {clj-kondo/clj-kondo {:mvn/version "2022.10.14"}}
:jvm-opts ["-Dclojure.main.report=stderr"]}
:raudikko
{:extra-deps {lmgrep/raudikko-src {:local/root "modules/raudikko"}}
Expand Down
4 changes: 2 additions & 2 deletions modules/bundled-analyzers/deps.edn
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{:paths ["src"]
:deps {org.apache.lucene/lucene-core {:mvn/version "9.3.0"}
org.apache.lucene/lucene-analysis-common {:mvn/version "9.3.0"}}}
:deps {org.apache.lucene/lucene-core {:mvn/version "9.4.0"}
org.apache.lucene/lucene-analysis-common {:mvn/version "9.4.0"}}}
4 changes: 2 additions & 2 deletions modules/lucene-monitor-helpers/deps.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{:paths ["classes"]
:deps {org.apache.lucene/lucene-core {:mvn/version "9.3.0"}
org.apache.lucene/lucene-monitor {:mvn/version "9.3.0"}}
:deps {org.apache.lucene/lucene-core {:mvn/version "9.4.0"}
org.apache.lucene/lucene-monitor {:mvn/version "9.4.0"}}
:deps/prep-lib {:ensure "classes"
:alias :build
:fn compile-java}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.apache.lucene.store;

/**
* The class to override quarkus-lucene class
*/
final class MMapDirectoryReplacementJDK {
}
2 changes: 1 addition & 1 deletion modules/raudikko/deps.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{:paths ["target/raudikko.jar"]
:deps {org.apache.lucene/lucene-core {:mvn/version "9.3.0"}
:deps {org.apache.lucene/lucene-core {:mvn/version "9.4.0"}
fi.evident.raudikko/raudikko {:mvn/version "0.1.1"}}
:deps/prep-lib {:ensure "target/raudikko.jar"
:alias :build
Expand Down
4 changes: 2 additions & 2 deletions modules/snowball-token-filters/deps.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{:paths ["target/snowball-token-filters.jar"]
:deps {org.apache.lucene/lucene-core {:mvn/version "9.3.0"}
org.apache.lucene/lucene-analysis-common {:mvn/version "9.3.0"}}
:deps {org.apache.lucene/lucene-core {:mvn/version "9.4.0"}
org.apache.lucene/lucene-analysis-common {:mvn/version "9.4.0"}}
:deps/prep-lib {:ensure "target/snowball-token-filters.jar"
:alias :build
:fn jar}
Expand Down
4 changes: 2 additions & 2 deletions modules/stempel/deps.edn
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{:paths ["src"]
:deps {org.apache.lucene/lucene-core {:mvn/version "9.3.0"}
org.apache.lucene/lucene-analysis-stempel {:mvn/version "9.3.0"}}}
:deps {org.apache.lucene/lucene-core {:mvn/version "9.4.0"}
org.apache.lucene/lucene-analysis-stempel {:mvn/version "9.4.0"}}}

0 comments on commit 89b947d

Please sign in to comment.