Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide Tuple4 - Tuple9 including functions map, append, glue #226

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,34 @@ buildscript {
// and we want that it to apply the ch.tutteli conventions
rootProject.version = "1.2.0"
rootProject.group = "ch.tutteli.kbox"
rootProject.description = "A utility library for Kotlin "
rootProject.description = "A utility library for Kotlin"
extra.set("generationFolder", project.files("src/commonMain/generated/kotlin"))
extra.set("generationTestFolder", project.files("src/commonTest/generated/kotlin"))
}
val generationFolder: ConfigurableFileCollection by extra
val generationTestFolder: ConfigurableFileCollection by extra


plugins {
id("build-logic.published-kotlin-multiplatform")
id("code-generation.generate")
alias(libs.plugins.detekt)
alias(libs.plugins.nexus.publish)
}



kotlin {
sourceSets {
commonMain {
kotlin.srcDir(generationFolder)
}

commonTest {

kotlin.srcDir(generationTestFolder)
dependencies {
implementation(libs.atrium.fluent.get().let { "${it.module}:${it.version}"}) {
implementation(libs.atrium.fluent.get().let { "${it.module}:${it.version}" }) {
exclude(group = "ch.tutteli.kbox")
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/build-logic/basics/src/main/kotlin/extensions.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.gradle.api.DomainObjectCollection
import org.gradle.kotlin.dsl.withType

// TODO check if already moved into own tegonal repo and fetch via gt
// TODO 1.5.0 check if already moved into own tegonal repo and fetch via gt
// copied from com.github.vlsi.gradle.dsl.configureEach, using this instead so that we don't have to import
inline fun <reified S : Any> DomainObjectCollection<in S>.configureEach(noinline configuration: S.() -> Unit) =
withType().configureEach(configuration)
3 changes: 0 additions & 3 deletions gradle/buildLibs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[versions]
dokka = "1.9.20"
jacocoTool = "0.8.9"
# using the latest kbox version in the build-logic itself
kbox = "1.2.0"
kotlin = "2.0.0"
task-tree = "3.0.0"
tutteli = "5.0.1"
Expand All @@ -11,7 +9,6 @@ vlsi = "1.90"
[libraries]
dokka-plugin = { module = "org.jetbrains.dokka:org.jetbrains.dokka.gradle.plugin", version.ref = "dokka" }
dokka-base = { module = "org.jetbrains.dokka:dokka-base", version.ref = "dokka" }
kbox = { module = "ch.tutteli.kbox:kbox", version.ref = "kbox" }
kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
taskTree = { module = "com.dorongold.plugins:task-tree", version.ref = "task-tree" }

Expand Down
7 changes: 7 additions & 0 deletions gradle/code-generation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
id("build-logic.kotlin-dsl-gradle-plugin")
}

allprojects {
group = "ch.tutteli.kbox.code-generation"
}
24 changes: 24 additions & 0 deletions gradle/code-generation/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
rootProject.name = "code-generation"

pluginManagement {
includeBuild("../build-logic-conventions")
}

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
gradlePluginPortal()
}
versionCatalogs {
create("libs") {
from(files("../libs.versions.toml"))
}
}
versionCatalogs {
create("buildLibs") {
from(files("../buildLibs.versions.toml"))
}
}
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
Loading
Loading