migrate buildSrc plugins to includedBuild plugins
This commit is contained in:
parent
805d4c8170
commit
f12a505d22
40 changed files with 159 additions and 112 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -4,6 +4,9 @@
|
||||||
|
|
||||||
.state/
|
.state/
|
||||||
|
|
||||||
|
# Docker .env files are generated from a Gradle task
|
||||||
|
.env
|
||||||
|
|
||||||
.idea/
|
.idea/
|
||||||
!.idea/icon.svg
|
!.idea/icon.svg
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
import dev.adamko.kafkatorio.gradle.excludeGeneratedGradleDsl
|
|
||||||
import java.time.LocalDate
|
import java.time.LocalDate
|
||||||
|
import kafkatorio.extensions.excludeGeneratedGradleDsl
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
idea
|
idea
|
||||||
base
|
base
|
||||||
|
id("kafkatorio.conventions.base")
|
||||||
// `project-report`
|
// `project-report`
|
||||||
// `build-dashboard`
|
// `build-dashboard`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
plugins {
|
plugins {
|
||||||
idea
|
idea
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
kotlin("jvm") version "1.6.21"
|
kotlin("jvm") version embeddedKotlinVersion
|
||||||
kotlin("plugin.serialization") version "1.6.21"
|
kotlin("plugin.serialization") version embeddedKotlinVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
val gradleJvmTarget = "11"
|
val gradleJvmTarget = "11"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,35 @@ plugins {
|
||||||
kotlin("jvm") version embeddedKotlinVersion
|
kotlin("jvm") version embeddedKotlinVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(platform(libs.kotlin.bom))
|
||||||
|
implementation("org.jetbrains.kotlin:kotlin-serialization")
|
||||||
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
||||||
|
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable")
|
||||||
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
|
||||||
|
|
||||||
|
implementation(platform(libs.kotlinx.coroutines.bom))
|
||||||
|
implementation(libs.kotlinx.coroutines.core)
|
||||||
|
|
||||||
|
implementation(platform(libs.kotlinxSerialization.bom))
|
||||||
|
implementation(libs.kotlinxSerialization.core)
|
||||||
|
implementation(libs.kotlinxSerialization.json)
|
||||||
|
|
||||||
|
implementation("com.github.node-gradle:gradle-node-plugin:${libs.versions.gradleNodePlugin.get()}")
|
||||||
|
|
||||||
|
implementation(platform(libs.kotest.bom))
|
||||||
|
implementation("io.kotest:kotest-framework-multiplatform-plugin-gradle")
|
||||||
|
|
||||||
|
implementation("io.kvision:io.kvision.gradle.plugin:${libs.versions.kvision.get()}")
|
||||||
|
|
||||||
|
implementation("net.swiftzer.semver:semver:${libs.versions.semver.get()}")
|
||||||
|
|
||||||
|
implementation(platform(libs.okio.bom))
|
||||||
|
implementation(libs.okio.core)
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.cli)
|
||||||
|
}
|
||||||
|
|
||||||
val gradleJvmTarget = "11"
|
val gradleJvmTarget = "11"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|
|
||||||
|
|
@ -8,3 +8,11 @@ pluginManagement {
|
||||||
plugins {
|
plugins {
|
||||||
id("kafkatorio.convention.settings.repositories")
|
id("kafkatorio.convention.settings.repositories")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
versionCatalogs {
|
||||||
|
create("libs") {
|
||||||
|
from(files("../../gradle/libs.versions.toml"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package dev.adamko.kafkatorio
|
package kafkatorio.conventions
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package dev.adamko.kafkatorio
|
package kafkatorio.conventions
|
||||||
|
|
||||||
import io.kvision.gradle.KVisionExtension
|
import io.kvision.gradle.KVisionExtension
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
package dev.adamko.kafkatorio.infra
|
package kafkatorio.conventions.infra
|
||||||
|
|
||||||
import dev.adamko.kafkatorio.gradle.DOCKER_COMPOSE_TASK_GROUP
|
import kafkatorio.tasks.DockerEnvUpdateTask
|
||||||
import dev.adamko.kafkatorio.task.DockerEnvUpdateTask
|
import kafkatorio.extensions.DOCKER_COMPOSE_TASK_GROUP
|
||||||
import org.jetbrains.kotlin.util.parseSpaceSeparatedArgs
|
import org.jetbrains.kotlin.util.parseSpaceSeparatedArgs
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
base
|
base
|
||||||
id("dev.adamko.kafkatorio.infra.process-runner")
|
id("kafkatorio.conventions.infra.process-runner")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -55,6 +55,7 @@ val dockerEnvUpdate by tasks.registering(DockerEnvUpdateTask::class) {
|
||||||
properties(
|
properties(
|
||||||
"COMPOSE_PROJECT_NAME" to dockerComposeProjectName,
|
"COMPOSE_PROJECT_NAME" to dockerComposeProjectName,
|
||||||
"KAFKATORIO_VERSION" to project.version,
|
"KAFKATORIO_VERSION" to project.version,
|
||||||
|
"REGISTRY_HOST" to providers.gradleProperty("dockerContainerRegistryHost"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
package dev.adamko.kafkatorio.infra
|
package kafkatorio.conventions.infra
|
||||||
|
|
||||||
|
import org.gradle.kotlin.dsl.extra
|
||||||
|
import org.gradle.kotlin.dsl.registering
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.adamko.kafkatorio.base")
|
id("kafkatorio.conventions.base")
|
||||||
}
|
}
|
||||||
|
|
||||||
val processRunnerTaskGroup: String by extra("processes")
|
val processRunnerTaskGroup: String by extra("processes")
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package dev.adamko.kafkatorio.lang
|
package kafkatorio.conventions.lang
|
||||||
|
|
||||||
//import dev.adamko.kafkatorio.Versions
|
//import dev.adamko.kafkatorio.Versions
|
||||||
import dev.adamko.kafkatorio.relocateKotlinJsStore
|
import kafkatorio.conventions.relocateKotlinJsStore
|
||||||
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
|
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
|
||||||
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
|
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
|
||||||
//import org.jetbrains.kotlin.gradle.targets.js.npm.NpmProject
|
//import org.jetbrains.kotlin.gradle.targets.js.npm.NpmProject
|
||||||
|
|
@ -12,7 +12,7 @@ import dev.adamko.kafkatorio.relocateKotlinJsStore
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("js")
|
kotlin("js")
|
||||||
id("dev.adamko.kafkatorio.base")
|
id("kafkatorio.conventions.base")
|
||||||
}
|
}
|
||||||
|
|
||||||
//dependencies {
|
//dependencies {
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package dev.adamko.kafkatorio.lang
|
package kafkatorio.conventions.lang
|
||||||
|
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.adamko.kafkatorio.base")
|
id("kafkatorio.conventions.base")
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
package dev.adamko.kafkatorio.lang
|
package kafkatorio.conventions.lang
|
||||||
|
|
||||||
import dev.adamko.kafkatorio.relocateKotlinJsStore
|
import kafkatorio.conventions.relocateKotlinJsStore
|
||||||
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
|
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
|
||||||
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
|
//import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
|
||||||
//import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
|
//import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("dev.adamko.kafkatorio.base")
|
id("kafkatorio.conventions.base")
|
||||||
// id("dev.adamko.kafkatorio.lang.node")
|
// id("dev.adamko.kafkatorio.lang.node")
|
||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
// id("io.kotest.multiplatform") // disabled because of https://github.com/kotest/kotest/issues/3141
|
// id("io.kotest.multiplatform") // disabled because of https://github.com/kotest/kotest/issues/3141
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
package dev.adamko.kafkatorio.lang
|
package kafkatorio.conventions.lang
|
||||||
|
|
||||||
import com.github.gradle.node.npm.task.NpmInstallTask
|
import com.github.gradle.node.npm.task.NpmInstallTask
|
||||||
import dev.adamko.kafkatorio.Versions
|
import kafkatorio.conventions.Versions
|
||||||
import dev.adamko.kafkatorio.task.UpdatePackageJson
|
import kafkatorio.tasks.UpdatePackageJson
|
||||||
import kotlinx.serialization.json.put
|
import kotlinx.serialization.json.put
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.github.node-gradle.node")
|
id("com.github.node-gradle.node")
|
||||||
id("dev.adamko.kafkatorio.base")
|
id("kafkatorio.conventions.base")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package dev.adamko.kafkatorio.gradle
|
package kafkatorio.distributions
|
||||||
|
|
||||||
import org.gradle.api.artifacts.Configuration
|
import org.gradle.api.artifacts.Configuration
|
||||||
import org.gradle.api.attributes.Bundling
|
import org.gradle.api.attributes.Bundling
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package dev.adamko.kafkatorio.gradle
|
package kafkatorio.extensions
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import org.gradle.api.Project
|
import org.gradle.api.Project
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import dev.adamko.kafkatorio.gradle.filesChecksum
|
import kafkatorio.extensions.filesChecksum
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import org.gradle.api.DefaultTask
|
import org.gradle.api.DefaultTask
|
||||||
import org.gradle.api.file.DirectoryProperty
|
import org.gradle.api.file.DirectoryProperty
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import dev.adamko.kafkatorio.gradle.DOCKER_COMPOSE_TASK_GROUP
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
import kafkatorio.extensions.DOCKER_COMPOSE_TASK_GROUP
|
||||||
import org.gradle.api.file.RegularFileProperty
|
import org.gradle.api.file.RegularFileProperty
|
||||||
import org.gradle.api.logging.LogLevel
|
import org.gradle.api.logging.LogLevel
|
||||||
import org.gradle.api.model.ObjectFactory
|
import org.gradle.api.model.ObjectFactory
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import org.gradle.api.file.DirectoryProperty
|
import org.gradle.api.file.DirectoryProperty
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import dev.adamko.kafkatorio.task.UpdatePackageJson.Companion.foldParseToJsonObject
|
import kafkatorio.tasks.UpdatePackageJson.Companion.foldParseToJsonObject
|
||||||
import dev.adamko.kafkatorio.task.UpdatePackageJson.Companion.parseToJsonObject
|
import kafkatorio.tasks.UpdatePackageJson.Companion.parseToJsonObject
|
||||||
import kotlinx.serialization.json.JsonObject
|
import kotlinx.serialization.json.JsonObject
|
||||||
import org.gradle.api.Task
|
import org.gradle.api.Task
|
||||||
import org.gradle.api.internal.specs.ExplainingSpec
|
import org.gradle.api.internal.specs.ExplainingSpec
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import dev.adamko.kafkatorio.gradle.execCapture
|
import kafkatorio.extensions.execCapture
|
||||||
import org.gradle.api.DefaultTask
|
import org.gradle.api.DefaultTask
|
||||||
import org.gradle.api.logging.LogLevel
|
import org.gradle.api.logging.LogLevel
|
||||||
import org.gradle.api.tasks.Input
|
import org.gradle.api.tasks.Input
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream
|
import java.io.ByteArrayOutputStream
|
||||||
import javax.inject.Inject
|
|
||||||
import org.gradle.api.Task
|
import org.gradle.api.Task
|
||||||
import org.gradle.api.internal.specs.ExplainingSpec
|
import org.gradle.api.internal.specs.ExplainingSpec
|
||||||
import org.gradle.api.tasks.Exec
|
import org.gradle.api.tasks.Exec
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import com.github.gradle.node.npm.task.NpmTask
|
import com.github.gradle.node.npm.task.NpmTask
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package dev.adamko.kafkatorio.task
|
package kafkatorio.tasks
|
||||||
|
|
||||||
import com.github.gradle.node.NodePlugin
|
import com.github.gradle.node.NodePlugin
|
||||||
import dev.adamko.kafkatorio.*
|
import kafkatorio.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import kotlinx.serialization.encodeToString
|
import kotlinx.serialization.encodeToString
|
||||||
|
|
@ -9,7 +9,7 @@ plugins {
|
||||||
id("kafkatorio.convention.settings.repositories")
|
id("kafkatorio.convention.settings.repositories")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
versionCatalogs {
|
versionCatalogs {
|
||||||
create("libs") {
|
create("libs") {
|
||||||
from(files("../../gradle/libs.versions.toml"))
|
from(files("../../gradle/libs.versions.toml"))
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,33 @@ plugins {
|
||||||
kotlin("jvm") version embeddedKotlinVersion
|
kotlin("jvm") version embeddedKotlinVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(platform(libs.kotlin.bom))
|
||||||
|
|
||||||
|
implementation(platform(libs.kotlinx.coroutines.bom))
|
||||||
|
implementation(libs.kotlinx.coroutines.core)
|
||||||
|
|
||||||
|
implementation(platform(libs.kotlinxSerialization.bom))
|
||||||
|
implementation(libs.kotlinxSerialization.core)
|
||||||
|
implementation(libs.kotlinxSerialization.json)
|
||||||
|
|
||||||
|
implementation(platform(libs.okio.bom))
|
||||||
|
implementation(libs.okio.core)
|
||||||
|
|
||||||
|
implementation(libs.kotlinx.cli)
|
||||||
|
|
||||||
|
implementation(platform(libs.ktor.bom))
|
||||||
|
implementation(libs.ktorClient.auth)
|
||||||
|
implementation(libs.ktorClient.contentNegotiation)
|
||||||
|
implementation(libs.ktorClient.core)
|
||||||
|
implementation(libs.ktorClient.encoding)
|
||||||
|
implementation(libs.ktorClient.logging)
|
||||||
|
implementation(libs.ktorClient.cio)
|
||||||
|
implementation(libs.ktorClient.resources)
|
||||||
|
implementation(libs.ktorSerialization.kotlinxJson)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
val gradleJvmTarget = "11"
|
val gradleJvmTarget = "11"
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|
|
||||||
|
|
@ -10,3 +10,11 @@ pluginManagement {
|
||||||
plugins {
|
plugins {
|
||||||
id("kafkatorio.convention.settings.repositories")
|
id("kafkatorio.convention.settings.repositories")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
versionCatalogs {
|
||||||
|
create("libs") {
|
||||||
|
from(files("../../gradle/libs.versions.toml"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
import dev.adamko.kafkatorio.gradle.asProvider
|
import kafkatorio.distributions.asProvider
|
||||||
import dev.adamko.kafkatorio.gradle.typescriptAttributes
|
import kafkatorio.distributions.typescriptAttributes
|
||||||
import dev.adamko.kafkatorio.task.GenerateTypeScriptTask
|
import kafkatorio.tasks.GenerateTypeScriptTask
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
|
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
|
||||||
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
|
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-multiplatform`
|
id("kafkatorio.conventions.lang.kotlin-multiplatform")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
distribution
|
distribution
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import dev.adamko.kafkatorio.factoriomod.portal.FactorioModPublishTask
|
import dev.adamko.kafkatorio.factoriomod.portal.FactorioModPublishTask
|
||||||
import dev.adamko.kafkatorio.gradle.asConsumer
|
import kafkatorio.distributions.asConsumer
|
||||||
import dev.adamko.kafkatorio.gradle.asProvider
|
import kafkatorio.distributions.asProvider
|
||||||
import dev.adamko.kafkatorio.gradle.factorioModAttributes
|
import kafkatorio.distributions.factorioModAttributes
|
||||||
import dev.adamko.kafkatorio.gradle.typescriptAttributes
|
import kafkatorio.distributions.typescriptAttributes
|
||||||
import dev.adamko.kafkatorio.task.TypescriptToLuaTask
|
import kafkatorio.tasks.TypescriptToLuaTask
|
||||||
import kotlinx.serialization.json.put
|
import kotlinx.serialization.json.put
|
||||||
import kotlinx.serialization.json.putJsonObject
|
import kotlinx.serialization.json.putJsonObject
|
||||||
import net.swiftzer.semver.SemVer
|
import net.swiftzer.semver.SemVer
|
||||||
|
|
@ -12,7 +12,7 @@ import org.gradle.plugins.ide.idea.model.Module as IdeaImlModule
|
||||||
import org.gradle.plugins.ide.idea.model.Path as IdeaImlPath
|
import org.gradle.plugins.ide.idea.model.Path as IdeaImlPath
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.node
|
id("kafkatorio.conventions.lang.node")
|
||||||
distribution
|
distribution
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-jvm`
|
id("kafkatorio.conventions.lang.kotlin-jvm")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
// application
|
// application
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-jvm`
|
id("kafkatorio.conventions.lang.kotlin-jvm")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
application
|
application
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-jvm`
|
id("kafkatorio.conventions.lang.kotlin-jvm")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
application
|
application
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-jvm`
|
id("kafkatorio.conventions.lang.kotlin-jvm")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
application
|
application
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import dev.adamko.kafkatorio.task.DockerEnvUpdateTask
|
import kafkatorio.tasks.DockerEnvUpdateTask
|
||||||
import dev.adamko.kafkatorio.task.KafkaConsumerGroupsTask
|
import kafkatorio.tasks.KafkaConsumerGroupsTask
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
import dev.adamko.kafkatorio.factoriomod.FactorioMod
|
import dev.adamko.kafkatorio.factoriomod.FactorioMod
|
||||||
import dev.adamko.kafkatorio.gradle.asConsumer
|
import kafkatorio.distributions.asConsumer
|
||||||
import dev.adamko.kafkatorio.gradle.factorioModAttributes
|
import kafkatorio.distributions.factorioModAttributes
|
||||||
import dev.adamko.kafkatorio.gradle.not
|
import kafkatorio.extensions.not
|
||||||
import dev.adamko.kafkatorio.task.ProcessRunningSpec
|
import kafkatorio.tasks.ProcessRunningSpec
|
||||||
import org.gradle.kotlin.dsl.support.serviceOf
|
import org.gradle.kotlin.dsl.support.serviceOf
|
||||||
import org.jetbrains.kotlin.util.parseSpaceSeparatedArgs
|
import org.jetbrains.kotlin.util.parseSpaceSeparatedArgs
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.infra.`process-runner`
|
id("kafkatorio.conventions.infra.process-runner")
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "Start the Factorio game client"
|
description = "Start the Factorio game client"
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import dev.adamko.kafkatorio.factoriomod.FactorioMod
|
import dev.adamko.kafkatorio.factoriomod.FactorioMod
|
||||||
import dev.adamko.kafkatorio.gradle.asConsumer
|
import kafkatorio.distributions.asConsumer
|
||||||
import dev.adamko.kafkatorio.gradle.factorioModAttributes
|
import kafkatorio.distributions.factorioModAttributes
|
||||||
import org.jetbrains.kotlin.util.parseSpaceSeparatedArgs
|
import org.jetbrains.kotlin.util.parseSpaceSeparatedArgs
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.infra.`docker-compose`
|
id("kafkatorio.conventions.infra.docker-compose")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.infra.`docker-compose`
|
id("kafkatorio.conventions.infra.docker-compose")
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "Kafka cluster"
|
description = "Kafka cluster"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import dev.adamko.kafkatorio.task.DockerComposeExec
|
import kafkatorio.tasks.DockerComposeExec
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.infra.`docker-compose`
|
id("kafkatorio.conventions.infra.docker-compose")
|
||||||
}
|
}
|
||||||
|
|
||||||
description = "Send events from a Factorio server to a Kafka topic "
|
description = "Send events from a Factorio server to a Kafka topic "
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-jvm`
|
id("kafkatorio.conventions.lang.kotlin-jvm")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,10 @@
|
||||||
import dev.adamko.kafkatorio.task.DockerEnvUpdateTask
|
import kafkatorio.tasks.DockerEnvUpdateTask
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler
|
import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler
|
||||||
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
|
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
|
||||||
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
dev.adamko.kafkatorio.lang.`kotlin-js`
|
id("kafkatorio.conventions.lang.kotlin-js")
|
||||||
// dev.adamko.kafkatorio.lang.`kotlin-multiplatform`
|
|
||||||
id("io.kvision")
|
id("io.kvision")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
}
|
}
|
||||||
|
|
@ -35,9 +34,7 @@ kotlin {
|
||||||
),
|
),
|
||||||
"/kafkatorio/ws" to mapOf(
|
"/kafkatorio/ws" to mapOf(
|
||||||
"target" to "ws://localhost:12080",
|
"target" to "ws://localhost:12080",
|
||||||
// "secure" to false,
|
|
||||||
"ws" to true,
|
"ws" to true,
|
||||||
// "changeOrigin" to true,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// static = mutableListOf("$buildDir/processedResources/frontend/main")
|
// static = mutableListOf("$buildDir/processedResources/frontend/main")
|
||||||
|
|
@ -53,15 +50,12 @@ kotlin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// compilations["main"].packageJson {
|
|
||||||
// this.devDependencies["webpack-dev-server"] = "4.9.1"
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
|
|
||||||
all {
|
configureEach {
|
||||||
languageSettings.apply {
|
languageSettings {
|
||||||
optIn("kotlin.RequiresOptIn")
|
optIn("kotlin.RequiresOptIn")
|
||||||
optIn("kotlinx.serialization.ExperimentalSerializationApi")
|
optIn("kotlinx.serialization.ExperimentalSerializationApi")
|
||||||
}
|
}
|
||||||
|
|
@ -93,18 +87,6 @@ kotlin {
|
||||||
kvision("kvision-redux")
|
kvision("kvision-redux")
|
||||||
kvision("kvision-state-flow")
|
kvision("kvision-state-flow")
|
||||||
kvision("kvision-routing-navigo-ng")
|
kvision("kvision-routing-navigo-ng")
|
||||||
|
|
||||||
// implementation(devNpm("http-proxy-middleware", "^2.0.6"))
|
|
||||||
// implementation(dependencies.platform(devNpm("http-proxy-middleware", "^2.0.6")))
|
|
||||||
|
|
||||||
// implementation(dependencies.platform(npm("follow-redirects", "^1.14.8")))
|
|
||||||
// implementation(dependencies.platform(npm("nanoid", "^3.1.31")))
|
|
||||||
// implementation(dependencies.platform(npm("minimist", "^1.2.6")))
|
|
||||||
// implementation(dependencies.platform(npm("async", "^2.6.4")))
|
|
||||||
// implementation(dependencies.platform(npm("node-forge", "^1.3.0")))
|
|
||||||
// implementation(dependencies.platform(npm("socket.io", "^4.5.1")))
|
|
||||||
// implementation(dependencies.platform(devNpm("http-proxy-middleware", "^3.0.0-beta.0")))
|
|
||||||
// implementation(dependencies.platform(devNpm("webpack-dev-server", "4.9.1")))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resources.srcDir("src/main/web")
|
resources.srcDir("src/main/web")
|
||||||
|
|
@ -133,21 +115,6 @@ fun KotlinDependencyHandler.kvision(
|
||||||
implementation("io.kvision:$module:${version.get()}", configure)
|
implementation("io.kvision:$module:${version.get()}", configure)
|
||||||
}
|
}
|
||||||
|
|
||||||
////// https://youtrack.jetbrains.com/issue/KT-42420
|
|
||||||
//afterEvaluate {
|
|
||||||
// yarn {
|
|
||||||
//// resolution("mocha", "9.2.2")
|
|
||||||
//// resolution("follow-redirects", "1.14.8")
|
|
||||||
//// resolution("nanoid", "3.1.31")
|
|
||||||
//// resolution("minimist", "1.2.6")
|
|
||||||
//// resolution("async", "2.6.4")
|
|
||||||
//// resolution("node-forge", "1.3.0")
|
|
||||||
//// resolution("socket.io", "^4.5.1")
|
|
||||||
//// resolution("http-proxy-middleware", "^3.0.0-beta.0")
|
|
||||||
// resolution("webpack-dev-server", "4.9.1")
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
val dockerEnvUpdate by tasks.registering(DockerEnvUpdateTask::class) {
|
val dockerEnvUpdate by tasks.registering(DockerEnvUpdateTask::class) {
|
||||||
dotEnvFile.set(layout.projectDirectory.file("docker/.env"))
|
dotEnvFile.set(layout.projectDirectory.file("docker/.env"))
|
||||||
|
|
@ -155,6 +122,7 @@ val dockerEnvUpdate by tasks.registering(DockerEnvUpdateTask::class) {
|
||||||
properties(
|
properties(
|
||||||
"COMPOSE_PROJECT_NAME" to rootProject.name,
|
"COMPOSE_PROJECT_NAME" to rootProject.name,
|
||||||
"KAFKATORIO_VERSION" to project.version,
|
"KAFKATORIO_VERSION" to project.version,
|
||||||
|
"REGISTRY_HOST" to "dcr.adamko.dev:5000",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
tasks.assemble { dependsOn(dockerEnvUpdate) }
|
tasks.assemble { dependsOn(dockerEnvUpdate) }
|
||||||
|
|
@ -178,11 +146,6 @@ tasks.matching { it.name == "processResources" }.configureEach {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.withType<io.kvision.gradle.tasks.KVConvertPoTask>().configureEach {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
val runWebMap by tasks.registering {
|
val runWebMap by tasks.registering {
|
||||||
group = rootProject.name
|
group = rootProject.name
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,11 @@ includeBuild("./gradle-plugins/docker-compose/")
|
||||||
includeBuild("./gradle-plugins/factorio-mod-manager/")
|
includeBuild("./gradle-plugins/factorio-mod-manager/")
|
||||||
|
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("kafkatorio.convention.settings.repositories")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
include(
|
include(
|
||||||
":modules:events-library",
|
":modules:events-library",
|
||||||
|
|
||||||
|
|
@ -46,7 +51,7 @@ include(
|
||||||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
||||||
|
|
||||||
|
|
||||||
apply(from = "./buildSrc/repositories.settings.gradle.kts")
|
//apply(from = "./buildSrc/repositories.settings.gradle.kts")
|
||||||
|
|
||||||
|
|
||||||
@Suppress("UnstableApiUsage") // Central declaration of repositories is an incubating feature
|
@Suppress("UnstableApiUsage") // Central declaration of repositories is an incubating feature
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue