rework build logic

develop
Timo Bryant 2023-12-22 00:18:53 +01:00
parent c40ab54012
commit 1ef987f611
15 changed files with 42 additions and 45 deletions

View File

@ -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")
}

View File

@ -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"

3
build.gradle.kts Normal file
View File

@ -0,0 +1,3 @@
project(":libraries").subprojects {
apply(plugin = "docthor.kotlin-library-conventions")
}

11
buildSrc/build.gradle.kts Normal file
View File

@ -0,0 +1,11 @@
plugins {
`kotlin-dsl`
}
repositories {
gradlePluginPortal()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20")
}

View File

@ -0,0 +1 @@
rootProject.name = "docthor-build-logic"

View File

@ -1,7 +1,3 @@
plugins {
id("docthor.kotlin-library-conventions")
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
}

View File

@ -1,7 +1,3 @@
plugins {
id("docthor.kotlin-library-conventions")
}
dependencies {
api("org.apache.lucene:lucene-analysis-common:9.9.0")
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.9.2")

View File

@ -0,0 +1,4 @@
package de.itkl.textprocessing
class DocumentContainer {
}

View File

@ -0,0 +1,3 @@
package de.itkl.textprocessing.interfaces
interface DocumentAssetManager {}

View File

@ -0,0 +1,4 @@
package de.itkl.textprocessing.interfaces
interface DocumentExtractor {
}

View File

@ -1,7 +1,3 @@
plugins {
id("docthor.kotlin-library-conventions")
}
dependencies {
api(project(":libraries:textprocessing"))
api(project(":libraries:fileprocessing"))

View File

@ -1,15 +1,25 @@
pluginManagement {
includeBuild("build-logic")
}
//pluginManagement {
// includeBuild("build-logic")
//}
plugins {
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"
include(
"app",
"libraries:tfidf",
"libraries:textprocessing",
"libraries:fileprocessing",
)
includeDir("libraries")