Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
check-links:
runs-on: ubuntu-latest # TODO: https://github.com/UmbrellaDocs/linkspector/issues/149
runs-on: ubuntu-24.04-arm
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v7
Expand Down
5 changes: 2 additions & 3 deletions docs/kotlin-plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,17 @@ automatically configure additional tasks for bundling the shadowed JAR for its `
val ktorVersion = "3.1.0"

kotlin {
@Suppress("OPT_IN_USAGE")
jvm().mainRun {
// Optionally, set the main class for `runJvm`.
mainClass = "myapp.MainKt"
}
sourceSets {
val commonMain = getByName("commonMain") {
commonMain {
dependencies {
implementation("io.ktor:ktor-client-core:$ktorVersion")
}
}
val jvmMain = getByName("jvmMain") {
jvmMain {
dependencies {
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ constructor(private val softwareComponentFactory: SoftwareComponentFactory) : Pl
val shadowRuntimeElements = configurations.shadowRuntimeElements
val shadowComponent = softwareComponentFactory.adhoc(COMPONENT_NAME)
components.add(shadowComponent)
@Suppress("UNCHECKED_CAST")
@Suppress("UNCHECKED_CAST", "UnstableApiUsage")
shadowComponent.addVariantsFromConfiguration(
shadowRuntimeElements as Provider<ConsumableConfiguration>
) { variant ->
variant.mapToMavenScope("runtime")
}
components.named("java", AdhocComponentWithVariants::class.java) { component ->
@Suppress("UNCHECKED_CAST")
@Suppress("UNCHECKED_CAST", "UnstableApiUsage")
component.addVariantsFromConfiguration(
shadowRuntimeElements as Provider<ConsumableConfiguration>
) { variant ->
Expand Down