rework build logic
parent
c40ab54012
commit
1ef987f611
|
|
@ -1,19 +0,0 @@
|
||||||
/*
|
|
||||||
* This file was generated by the Gradle 'init' task.
|
|
||||||
*
|
|
||||||
* This project uses @Incubating APIs which are subject to change.
|
|
||||||
*/
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
// Support convention plugins written in Kotlin. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
|
|
||||||
`kotlin-dsl`
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
// Use the plugin portal to apply community plugins in convention plugins.
|
|
||||||
gradlePluginPortal()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20")
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
/*
|
|
||||||
* This file was generated by the Gradle 'init' task.
|
|
||||||
*
|
|
||||||
* This settings file is used to specify which projects to include in your build-logic build.
|
|
||||||
* This project uses @Incubating APIs which are subject to change.
|
|
||||||
*/
|
|
||||||
|
|
||||||
rootProject.name = "docthor-build-logic"
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
project(":libraries").subprojects {
|
||||||
|
apply(plugin = "docthor.kotlin-library-conventions")
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
plugins {
|
||||||
|
`kotlin-dsl`
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20")
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
rootProject.name = "docthor-build-logic"
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
plugins {
|
|
||||||
id("docthor.kotlin-library-conventions")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
plugins {
|
|
||||||
id("docthor.kotlin-library-conventions")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("org.apache.lucene:lucene-analysis-common:9.9.0")
|
api("org.apache.lucene:lucene-analysis-common:9.9.0")
|
||||||
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.9.2")
|
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.9.2")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
package de.itkl.textprocessing
|
||||||
|
|
||||||
|
class DocumentContainer {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
package de.itkl.textprocessing.interfaces
|
||||||
|
|
||||||
|
interface DocumentAssetManager {}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
package de.itkl.textprocessing.interfaces
|
||||||
|
|
||||||
|
interface DocumentExtractor {
|
||||||
|
}
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
plugins {
|
|
||||||
id("docthor.kotlin-library-conventions")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":libraries:textprocessing"))
|
api(project(":libraries:textprocessing"))
|
||||||
api(project(":libraries:fileprocessing"))
|
api(project(":libraries:fileprocessing"))
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,25 @@
|
||||||
pluginManagement {
|
//pluginManagement {
|
||||||
includeBuild("build-logic")
|
// includeBuild("build-logic")
|
||||||
}
|
//}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun includeDir(path: String) {
|
||||||
|
file(path)
|
||||||
|
.listFiles()!!
|
||||||
|
.filter { it.isDirectory }
|
||||||
|
.filter { dir ->
|
||||||
|
dir.resolve("build.gradle.kts").exists() }
|
||||||
|
.forEach { dir ->
|
||||||
|
val includeString = listOf(path, dir.name).joinToString(":")
|
||||||
|
include(includeString)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rootProject.name = "docthor"
|
rootProject.name = "docthor"
|
||||||
include(
|
include(
|
||||||
"app",
|
"app",
|
||||||
"libraries:tfidf",
|
|
||||||
"libraries:textprocessing",
|
|
||||||
"libraries:fileprocessing",
|
|
||||||
)
|
)
|
||||||
|
includeDir("libraries")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue