Skip to content

Commit

Permalink
Added ability to execute dict builder via Gradle
Browse files Browse the repository at this point in the history
Leveraging Gradle to execute the builder makes the command
configuration much easier as the human engineer now does not
to set the Lucene classpath manually before running the command.
  • Loading branch information
azagniotov committed Aug 22, 2023
1 parent 963ddc6 commit 8d52f66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lucene/analysis/kuromoji/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

apply plugin: 'java-library'
apply plugin: 'application'

description = 'Japanese Morphological Analyzer'

Expand All @@ -25,3 +26,8 @@ dependencies {

moduleTestImplementation project(':lucene:test-framework')
}

application {
mainModule = 'org.apache.lucene.analysis.kuromoji' // name defined in module-info.java
mainClass = 'org.apache.lucene.analysis.ja.dict.DictionaryBuilder'
}

0 comments on commit 8d52f66

Please sign in to comment.