Skip to content

Commit

Permalink
PrepareJarSearchableOptionsTask: added the missing task metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Sep 17, 2024
1 parent 60d72b4 commit 8b13b45
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.gradle.api.file.ProjectLayout
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.tasks.*
import org.gradle.kotlin.dsl.named
import org.jetbrains.intellij.platform.gradle.Constants.Plugin
import org.jetbrains.intellij.platform.gradle.Constants.Tasks
import org.jetbrains.intellij.platform.gradle.tasks.aware.parse
import org.jetbrains.intellij.platform.gradle.utils.asPath
Expand All @@ -21,6 +22,10 @@ import kotlin.io.path.exists
internal const val SEARCHABLE_OPTIONS_SUFFIX_XML = ".searchableOptions.xml"
internal const val SEARCHABLE_OPTIONS_SUFFIX_JSON = "-searchableOptions.json"

/**
* A Gradle task for preparing searchable options used by the [JarSearchableOptionsTask].
* The task filters and prepares content from various directories to a specified output directory.
*/
@CacheableTask
abstract class PrepareJarSearchableOptionsTask @Inject constructor(
private val fileSystemOperations: FileSystemOperations,
Expand Down Expand Up @@ -92,6 +97,11 @@ abstract class PrepareJarSearchableOptionsTask @Inject constructor(
}
}

init {
group = Plugin.GROUP_NAME
description = "Prepares the content used by the jarSearchableOptions task."
}

companion object : Registrable {
override fun register(project: Project) =
project.registerTask<PrepareJarSearchableOptionsTask>(Tasks.PREPARE_JAR_SEARCHABLE_OPTIONS) {
Expand Down

0 comments on commit 8b13b45

Please sign in to comment.