Skip to content

Commit

Permalink
provide Tuple4 - Tuple9 including functions map, append, glue
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Jun 2, 2024
1 parent b983fc4 commit 64bbbed
Show file tree
Hide file tree
Showing 38 changed files with 3,670 additions and 62 deletions.
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)
11 changes: 11 additions & 0 deletions gradle/code-generation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id("build-logic.kotlin-dsl-gradle-plugin")
}

allprojects {
group = "ch.tutteli.kbox.code-generation"
}

dependencies {
api(buildLibs.kbox)
}
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

0 comments on commit 64bbbed

Please sign in to comment.