Skip to content

Commit

Permalink
Replace println with debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Aug 8, 2024
1 parent dcc58e6 commit 783fe08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 71 deletions.
70 changes: 0 additions & 70 deletions SKIE/common/configuration/annotations/impl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// @file:Suppress("invisible_reference", "invisible_member")
// import org.jetbrains.kotlin.gradle.plugin.KotlinPluginLifecycle
// import org.jetbrains.kotlin.gradle.plugin.launchInRequiredStage
import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile

plugins {
// id("skie.runtime")
kotlin("multiplatform") version "@targetKotlinVersion@"
`maven-publish`
alias(libs.plugins.nexusPublish)
Expand All @@ -27,12 +23,6 @@ tasks.withType<InitializeNexusStagingRepository>().configureEach {
isEnabled = false
}

// skiePublishing {
// name = "SKIE Configuration Annotations"
// description = "Annotations to configure SKIE behavior."
// publishSources = true
// }

@smokeTestTmpRepositoryConfiguration@

val isRelease = !version.toString().endsWith("SNAPSHOT")
Expand Down Expand Up @@ -137,64 +127,4 @@ kotlin {
sourceSets["jsMain"].dependencies {
compileOnly(kotlin("stdlib-js"))
}

// jvm()
// js {
// browser()
// nodejs()
// }
//
// androidNativeArm32()
// androidNativeArm64()
// androidNativeX86()
// androidNativeX64()
//
// // iosArm32()
// iosArm64()
// iosX64()
// iosSimulatorArm64()
//
// watchosArm32()
// watchosArm64()
// // watchosX86()
// watchosX64()
// watchosSimulatorArm64()
// watchosDeviceArm64()
//
// tvosArm64()
// tvosX64()
// tvosSimulatorArm64()
//
// macosX64()
// macosArm64()
//
// linuxArm64()
// // linuxArm32Hfp()
// linuxX64()
//
// mingwX64()
// // mingwX86()
//
// // wasm32()
}

// afterEvaluate {
// println("Components:")
// components.forEach {
// println("\t${it.name}")
// }
// }

// val p = project
// project.launchInRequiredStage(KotlinPluginLifecycle.Stage.ReadyForExecution) {
// println("Components: $p")
// components.forEach { component ->
// println("\t- ${component.name} - $component")
// }
//
// println("Publications:")
// publishing.publications.forEach { publication ->
// println("\t- ${publication.name} - $publication")
// }
//
// }
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun Project.configureSkieConfigurationAnnotationsDependencySubstitution() {

val updatedCoordinate = BuildConfig.SKIE_CONFIGURATION_ANNOTATIONS_MODULE + "-" + skieInternalExtension.kotlinVersion + suffix + ":" + BuildConfig.SKIE_VERSION

println("Replacing $requested with ${updatedCoordinate}")
logger.debug("Replacing {} with {}", requested, updatedCoordinate)
useTarget(updatedCoordinate)
}
}
Expand All @@ -58,6 +58,7 @@ fun Project.configureSkieRuntimeDependencySubstitution() {

val updatedCoordinate = baseTargetModuleId + "__kgp_" + skieInternalExtension.kotlinVersion + ":" + BuildConfig.SKIE_VERSION

logger.debug("Replacing {} with {}", requested, updatedCoordinate)
useTarget(updatedCoordinate)
}
}
Expand Down

0 comments on commit 783fe08

Please sign in to comment.