refactor(build): convert `buildSrc` to an included build
This commit is contained in:
parent
fa7745bde2
commit
503029c17d
|
@ -1,4 +1,8 @@
|
|||
plugins { alias(libs.plugins.spotless) }
|
||||
plugins {
|
||||
alias(libs.plugins.spotless)
|
||||
id("tracelog-jvm-library") apply false
|
||||
id("tracelog-kmp-library") apply false
|
||||
}
|
||||
|
||||
spotless {
|
||||
kotlin {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
|
||||
plugins {
|
||||
`tracelog-jvm-library`
|
||||
id("tracelog-jvm-library")
|
||||
alias(libs.plugins.ksp)
|
||||
alias(libs.plugins.buildconfig)
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
plugins {
|
||||
`tracelog-jvm-library`
|
||||
id("tracelog-jvm-library")
|
||||
`java-gradle-plugin`
|
||||
alias(libs.plugins.buildconfig)
|
||||
alias(libs.plugins.ksp)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
plugins { `tracelog-kmp-library` }
|
||||
plugins { id("tracelog-kmp-library") }
|
||||
|
||||
android {
|
||||
compileSdk = 33
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("tracelog-jvm-library")
|
||||
application
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ private fun MatchResult.getMatch(groupName: String): String {
|
|||
return groups[groupName]!!.value
|
||||
}
|
||||
|
||||
fun main() {
|
||||
public fun main() {
|
||||
debuggableFunction("First parameter")
|
||||
val t = Terminal()
|
||||
messages.forEach { msg ->
|
||||
|
@ -60,12 +60,12 @@ fun main() {
|
|||
|
||||
/** Custom implementation of a logger function for use by the compiler plugin. */
|
||||
@Suppress("Unused") // Used by the generated bytecode
|
||||
fun recordMessage(message: Any?) {
|
||||
public fun recordMessage(message: Any?) {
|
||||
messages += message.toString()
|
||||
}
|
||||
|
||||
/** An example of an annotated method which will be transformed by the compiler plugin. */
|
||||
@DebugLog
|
||||
fun debuggableFunction(p0: String, p1: String = "Bar"): String {
|
||||
public fun debuggableFunction(p0: String, p1: String = "Bar"): String {
|
||||
return "Debugging is cool!"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithHostTests
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins { id("org.jetbrains.kotlin.multiplatform") }
|
||||
plugins { kotlin("multiplatform") }
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions.freeCompilerArgs.addAll(
|
||||
|
|
|
@ -2,15 +2,41 @@
|
|||
|
||||
pluginManagement {
|
||||
repositories {
|
||||
includeBuild("build-logic")
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
exclusiveContent {
|
||||
forRepository(::google)
|
||||
filter {
|
||||
includeGroup("androidx.databinding")
|
||||
includeGroup("com.android")
|
||||
includeGroup("com.android.tools.analytics-library")
|
||||
includeGroup("com.android.tools.build")
|
||||
includeGroup("com.android.tools.build.jetifier")
|
||||
includeGroup("com.android.databinding")
|
||||
includeGroup("com.android.tools.ddms")
|
||||
includeGroup("com.android.tools.layoutlib")
|
||||
includeGroup("com.android.tools.lint")
|
||||
includeGroup("com.android.tools.utp")
|
||||
includeGroup("com.google.testing.platform")
|
||||
includeModule("com.android.tools", "annotations")
|
||||
includeModule("com.android.tools", "common")
|
||||
includeModule("com.android.tools", "desugar_jdk_libs")
|
||||
includeModule("com.android.tools", "desugar_jdk_libs_configuration")
|
||||
includeModule("com.android.tools", "dvlib")
|
||||
includeModule("com.android.tools", "play-sdk-proto")
|
||||
includeModule("com.android.tools", "repository")
|
||||
includeModule("com.android.tools", "sdklib")
|
||||
includeModule("com.android.tools", "sdk-common")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositories {
|
||||
exclusiveContent {
|
||||
forRepository { google() }
|
||||
forRepository(::google)
|
||||
filter {
|
||||
includeGroup("com.android.tools")
|
||||
includeGroup("com.android.tools.analytics-library")
|
||||
|
|
Loading…
Reference in New Issue