Skip to content

Commit

Permalink
feat: rename FindInlineMembersTask to FindKotlinMagicTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Aug 21, 2024
1 parent 1365d54 commit 475a0f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ antlr-shadowed = "4.10.1.6"
asm-relocated = "9.6.0.1"
caffeine = "3.1.8"
commons-io = "2.16.0"
dagp = "1.31.0"
dagp = "1.33.0"
error-prone = "2.26.1"
gradle-publish-plugin = "1.1.0"
grammar = "0.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ internal class ProjectPlugin(private val project: Project) {
}

// Find the inline members of this project's dependencies.
val kotlinMagicTask = tasks.register<FindInlineMembersTask>("findInlineMembers$taskNameSuffix") {
val kotlinMagicTask = tasks.register<FindKotlinMagicTask>("findKotlinMagic$taskNameSuffix") {
inMemoryCacheProvider.set(InMemoryCache.register(project))
compileClasspath.setFrom(
configurations[dependencyAnalyzer.compileConfigurationName]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ import java.io.File
import java.util.zip.ZipFile
import javax.inject.Inject

// TODO(2.0): rename this task to FindKotlinMagicTask
@CacheableTask
abstract class FindInlineMembersTask @Inject constructor(
abstract class FindKotlinMagicTask @Inject constructor(
private val workerExecutor: WorkerExecutor,
) : DefaultTask() {

Expand Down Expand Up @@ -71,11 +70,11 @@ abstract class FindInlineMembersTask @Inject constructor(
@TaskAction
fun action() {
workerExecutor.noIsolation().submit(FindKotlinMagicWorkAction::class.java) {
artifacts.set(this@FindInlineMembersTask.artifacts)
inlineUsageReport.set(this@FindInlineMembersTask.outputInlineMembers)
typealiasReport.set(this@FindInlineMembersTask.outputTypealiases)
errorsReport.set(this@FindInlineMembersTask.outputErrors)
inMemoryCacheProvider.set(this@FindInlineMembersTask.inMemoryCacheProvider)
artifacts.set(this@FindKotlinMagicTask.artifacts)
inlineUsageReport.set(this@FindKotlinMagicTask.outputInlineMembers)
typealiasReport.set(this@FindKotlinMagicTask.outputTypealiases)
errorsReport.set(this@FindKotlinMagicTask.outputErrors)
inMemoryCacheProvider.set(this@FindKotlinMagicTask.inMemoryCacheProvider)
}
}

Expand All @@ -89,7 +88,7 @@ abstract class FindInlineMembersTask @Inject constructor(

abstract class FindKotlinMagicWorkAction : WorkAction<FindKotlinMagicParameters> {

private val logger = getLogger<FindInlineMembersTask>()
private val logger = getLogger<FindKotlinMagicTask>()

override fun execute() {
val inlineUsageReportFile = parameters.inlineUsageReport.getAndDelete()
Expand Down Expand Up @@ -123,7 +122,7 @@ internal class KotlinMagicFinder(
private val errorsReport: File,
) {

private val logger = getLogger<FindInlineMembersTask>()
private val logger = getLogger<FindKotlinMagicTask>()
var didWriteErrors = false

val inlineMembers: Set<InlineMemberDependency>
Expand Down

0 comments on commit 475a0f4

Please sign in to comment.