forked from msfroh/lucene-university
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
26 lines (22 loc) · 851 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
apply plugin: 'java'
repositories {
mavenLocal()
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://archiva-repository.apache.org/archiva/repository/snapshots/" }
}
/*
If you want to use the latest snapshot version you can generate it by using cloning lucene and install locally into maven
`./gradlew clean assemble publishToMavenLocal`
*/
/*
To build with a different version of lucene you can use
./gradlew clean build -Dlucene.version=9.8.0
*/
def version = System.getProperty("lucene.version", "10.0.0-SNAPSHOT")
dependencies {
implementation "org.apache.lucene:lucene-core:${version}"
implementation "org.apache.lucene:lucene-queries:${version}"
implementation "org.apache.lucene:lucene-codecs:${version}"
}