Extracted module LuceneBankFinder from BankFinder

This commit is contained in:
dankito 2020-07-09 13:34:45 +02:00
parent f9f9ad8c06
commit 133c73e70f
8 changed files with 45 additions and 6 deletions

View File

@ -41,8 +41,10 @@ project(':LuceneBankingPersistence').projectDir = "$rootDir/persistence/LuceneBa
/* Tools */
include ':BankFinder'
include ':LuceneBankFinder'
include ':BankListCreator'
project(':BankFinder').projectDir = "$rootDir/tools/BankFinder/" as File
project(':LuceneBankFinder').projectDir = "$rootDir/tools/LuceneBankFinder/" as File
project(':BankListCreator').projectDir = "$rootDir/tools/BankListCreator/" as File

View File

@ -9,9 +9,7 @@ targetCompatibility = "7"
dependencies {
implementation project(":BankingUiCommon")
implementation "net.dankito.search:lucene-4-utils:$luceneUtilsVersion"
api project(":BankingUiCommon")
testImplementation "org.junit.jupiter:junit-jupiter:$junit5Version"
@ -20,4 +18,18 @@ dependencies {
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
}
task jarTest (type: Jar) {
from sourceSets.test.output
classifier = 'test'
}
configurations {
testOutput
}
artifacts {
testOutput jarTest
}

View File

@ -3,7 +3,7 @@ package net.dankito.banking.bankfinder
open class InMemoryBankFinder() : BankFinderBase(), IBankFinder {
internal constructor(bankList: List<BankInfo>) : this() {
constructor(bankList: List<BankInfo>) : this() {
this.bankListField = bankList
}

View File

@ -0,0 +1,25 @@
apply plugin: 'java-library'
apply plugin: 'kotlin'
ext.artifactName = "lucene-bank-finder"
sourceCompatibility = "7"
targetCompatibility = "7"
dependencies {
api project(":BankFinder")
implementation "net.dankito.search:lucene-4-utils:$luceneUtilsVersion"
testImplementation project(path: ':BankFinder', configuration: 'testOutput')
testImplementation "org.junit.jupiter:junit-jupiter:$junit5Version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
testImplementation "org.assertj:assertj-core:$assertJVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
}

View File

@ -86,7 +86,7 @@ dependencies {
implementation project(':fints4kBankingClient')
implementation project(':BankFinder')
implementation project(':LuceneBankFinder')
implementation project(':BankingPersistenceJson')
implementation project(':LuceneBankingPersistence')

View File

@ -21,7 +21,7 @@ dependencies {
implementation project(":fints4k-jvm")
api project(":BankFinder")
api project(":LuceneBankFinder")
api "net.dankito.utils:java-fx-utils:$javaFxUtilsVersion"
}