- use kxs-ts-gen for TypeScript schemas
- update schema files, so they're tidier (no need for typescript-generator workarounds)
- version bumps (kotlin, gradle, tstl, factorio, kotest)
- improve kxs binary format (use okio)
- move schema files package ('events' wasn't needed)
- tidy up topic creation, naming. base it off classes, make util functions
60 lines
1.8 KiB
Kotlin
60 lines
1.8 KiB
Kotlin
@Suppress("UnstableApiUsage") // Central declaration of repositories is an incubating feature
|
|
dependencyResolutionManagement {
|
|
|
|
// https://github.com/gradle/gradle/issues/15754#issuecomment-763614651
|
|
// https://github.com/gradle/gradle/blob/09fcaacc9848f09aa584b4119be9271bee6916e6/build-logic/build-logic-base/settings-plugin/src/main/kotlin/gradlebuild.repositories.settings.gradle.kts#L68
|
|
|
|
// Cannot use 'FAIL_ON_PROJECT_REPOS' because
|
|
// - the 'gradle-guides-plugin' adds a repo (which it should not do)
|
|
// - the 'kotlin-gradle-plugin' adds a repo (and removes it afterwards) to download NodeJS
|
|
// repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
|
|
|
repositories {
|
|
myMavenLocal()
|
|
mavenCentral()
|
|
jitpack()
|
|
gradlePluginPortal()
|
|
|
|
// Declare the Node.js download repository
|
|
ivy("https://nodejs.org/dist/") {
|
|
name = "Node Distributions at $url"
|
|
patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") }
|
|
metadataSources { artifact() }
|
|
content { includeModule("org.nodejs", "node") }
|
|
}
|
|
ivy("https://github.com/yarnpkg/yarn/releases/download") {
|
|
name = "Yarn Distributions at $url"
|
|
patternLayout { artifact("v[revision]/[artifact](-v[revision]).[ext]") }
|
|
metadataSources { artifact() }
|
|
content { includeModule("com.yarnpkg", "yarn") }
|
|
}
|
|
}
|
|
|
|
pluginManagement {
|
|
repositories {
|
|
myMavenLocal()
|
|
gradlePluginPortal()
|
|
mavenCentral()
|
|
jitpack()
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
fun RepositoryHandler.jitpack() {
|
|
maven("https://jitpack.io")
|
|
}
|
|
|
|
|
|
fun RepositoryHandler.myMavenLocal(enabled: Boolean = true) {
|
|
if (enabled) {
|
|
logger.lifecycle("Maven local is enabled")
|
|
mavenLocal {
|
|
content {
|
|
includeGroup("dev.adamko")
|
|
includeGroup("dev.adamko.kxtsgen")
|
|
}
|
|
}
|
|
}
|
|
}
|