Skip to content

Commit 8d52f66

Browse files
committed
Added ability to execute dict builder via Gradle
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.
1 parent 963ddc6 commit 8d52f66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lucene/analysis/kuromoji/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
apply plugin: 'java-library'
19+
apply plugin: 'application'
1920

2021
description = 'Japanese Morphological Analyzer'
2122

@@ -25,3 +26,8 @@ dependencies {
2526

2627
moduleTestImplementation project(':lucene:test-framework')
2728
}
29+
30+
application {
31+
mainModule = 'org.apache.lucene.analysis.kuromoji' // name defined in module-info.java
32+
mainClass = 'org.apache.lucene.analysis.ja.dict.DictionaryBuilder'
33+
}

0 commit comments

Comments
 (0)