diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 708e52d29..aeff00ae1 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -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 diff --git a/docs/kotlin-plugins/README.md b/docs/kotlin-plugins/README.md index 81c036557..339865136 100644 --- a/docs/kotlin-plugins/README.md +++ b/docs/kotlin-plugins/README.md @@ -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") } diff --git a/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt b/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt index 078004734..737f7bb5c 100644 --- a/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt +++ b/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt @@ -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 ) { variant -> variant.mapToMavenScope("runtime") } components.named("java", AdhocComponentWithVariants::class.java) { component -> - @Suppress("UNCHECKED_CAST") + @Suppress("UNCHECKED_CAST", "UnstableApiUsage") component.addVariantsFromConfiguration( shadowRuntimeElements as Provider ) { variant ->