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
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
alias(libs.plugins.mavenPublish)
alias(libs.plugins.pluginPublish)
alias(libs.plugins.spotless)
alias(libs.plugins.buildConfig)
}

version = providers.gradleProperty("VERSION_NAME").get()
Expand All @@ -25,6 +26,15 @@ group = providers.gradleProperty("GROUP").get()

description = providers.gradleProperty("POM_DESCRIPTION").get()

buildConfig {
packageName = "com.github.jengelman.gradle.plugins.shadow"
generateAtSync = true

sourceSets.named("main") {
buildConfigField("DEFAULT_R8_DEPENDENCY", libs.r8.map(Dependency::toString))
}
}

dokka { dokkaPublications.html { outputDirectory = rootDir.resolve("docs/api") } }

kotlin {
Expand Down
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pluginPublish = { module = "com.gradle.publish:plugin-publish-plugin", version.r
androidx-gradlePluginLints = "androidx.lint:lint-gradle:1.0.0"
# Dummy to get renovate updates, the version is used in rootProject build.gradle with spotless.
ktfmt = "com.facebook:ktfmt:0.64"
r8 = "com.android.tools:r8:9.0.32"

@Goooler Goooler Jul 4, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Downgrading to the last version to kick @renovate-bot updates.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


junit-bom = "org.junit:junit-bom:6.1.1"
assertk = "com.willowtreeapps.assertk:assertk:0.28.1"
Expand All @@ -39,3 +40,4 @@ jetbrains-dokka = "org.jetbrains.dokka:2.2.0"
mavenPublish = "com.vanniktech.maven.publish:0.37.0"
pluginPublish = { id = "com.gradle.plugin-publish", version.ref = "pluginPublish" }
spotless = "com.diffplug.spotless:8.8.0"
buildConfig = "com.github.gmazzo.buildconfig:6.0.10"
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.github.jengelman.gradle.plugins.shadow

import com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.Companion.CONFIGURATION_NAME
import com.github.jengelman.gradle.plugins.shadow.ShadowBasePlugin.Companion.EXTENSION_NAME
import com.github.jengelman.gradle.plugins.shadow.BuildConfig.DEFAULT_R8_DEPENDENCY
import org.gradle.api.NamedDomainObjectProvider
import org.gradle.api.Plugin
import org.gradle.api.Project
Expand Down Expand Up @@ -54,7 +53,6 @@ public abstract class ShadowBasePlugin : Plugin<Project> {
public const val EXTENSION_NAME: String = SHADOW
public const val CONFIGURATION_NAME: String = SHADOW
public const val R8_CONFIGURATION_NAME: String = "shadowR8"
internal const val DEFAULT_R8_DEPENDENCY: String = "com.android.tools:r8:9.1.31"

@get:JvmSynthetic
public inline val ConfigurationContainer.shadow: NamedDomainObjectProvider<Configuration>
Expand Down