Skip to content

Commit f022dc7

Browse files
committed
Removed redundant SetupInstrumentCodeTask task
1 parent 50280e3 commit f022dc7

File tree

4 files changed

+4
-67
lines changed

4 files changed

+4
-67
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
- Fixed calculationg of JVM arguments for running tests [#1360](../../issues/1360)
1212
- Introduce CommandLineArgumentProviders for better management of JVM arguments and avoiding passing absolute paths to support Gradle Build Cache [#1376](../../issues/1376)
1313

14+
### Removed
15+
- Removed redundant `SetupInstrumentCodeTask` task
16+
1417
## [1.14.1] - 2023-06-07
1518

1619
### Fixed

src/main/kotlin/org/jetbrains/intellij/IntelliJPlugin.kt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ import org.jetbrains.intellij.IntelliJPluginConstants.RUN_IDE_TASK_NAME
9595
import org.jetbrains.intellij.IntelliJPluginConstants.RUN_PLUGIN_VERIFIER_TASK_NAME
9696
import org.jetbrains.intellij.IntelliJPluginConstants.SEARCHABLE_OPTIONS_DIR_NAME
9797
import org.jetbrains.intellij.IntelliJPluginConstants.SETUP_DEPENDENCIES_TASK_NAME
98-
import org.jetbrains.intellij.IntelliJPluginConstants.SETUP_INSTRUMENT_CODE_TASK_NAME
9998
import org.jetbrains.intellij.IntelliJPluginConstants.SIGN_PLUGIN_TASK_NAME
10099
import org.jetbrains.intellij.IntelliJPluginConstants.TASKS
101100
import org.jetbrains.intellij.IntelliJPluginConstants.VERIFY_PLUGIN_CONFIGURATION_TASK_NAME
@@ -962,13 +961,6 @@ abstract class IntelliJPlugin : Plugin<Project> {
962961
val jarTaskProvider = project.tasks.named<Jar>(JAR_TASK_NAME)
963962
val instrumentCodeProvider = project.provider { extension.instrumentCode.get() }
964963

965-
val setupInstrumentCodeTaskProvider = project.tasks.register<SetupInstrumentCodeTask>(SETUP_INSTRUMENT_CODE_TASK_NAME) {
966-
instrumentationEnabled.convention(extension.instrumentCode)
967-
instrumentedDir.convention(project.layout.buildDirectory.dir("instrumented"))
968-
969-
onlyIf { instrumentCodeProvider.get() }
970-
}
971-
972964
val sourceSets = project.extensions.findByName("sourceSets") as SourceSetContainer
973965
sourceSets.forEach { sourceSet ->
974966
val name = sourceSet.getTaskName("instrument", "code")
@@ -1120,13 +1112,10 @@ abstract class IntelliJPlugin : Plugin<Project> {
11201112
}
11211113
})
11221114

1123-
outputDir.convention(setupInstrumentCodeTaskProvider.flatMap { setupInstrumentCodeTask ->
1124-
setupInstrumentCodeTask.instrumentedDir.map { it.dir(name) }
1125-
})
1115+
outputDir.convention(project.layout.buildDirectory.map { it.dir("instrumented").dir(name) })
11261116
instrumentationLogs.convention(project.gradle.startParameter.logLevel == LogLevel.INFO)
11271117

11281118
dependsOn(sourceSet.classesTaskName)
1129-
dependsOn(SETUP_INSTRUMENT_CODE_TASK_NAME)
11301119
finalizedBy(CLASSPATH_INDEX_CLEANUP_TASK_NAME)
11311120
onlyIf { instrumentCodeProvider.get() }
11321121
}

src/main/kotlin/org/jetbrains/intellij/IntelliJPluginConstants.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ object IntelliJPluginConstants {
3535
const val RUN_IDE_PERFORMANCE_TEST_TASK_NAME = "runIdePerformanceTest"
3636
const val RUN_PLUGIN_VERIFIER_TASK_NAME = "runPluginVerifier"
3737
const val SETUP_DEPENDENCIES_TASK_NAME = "setupDependencies"
38-
const val SETUP_INSTRUMENT_CODE_TASK_NAME = "setupInstrumentCode"
3938
const val SIGN_PLUGIN_TASK_NAME = "signPlugin"
4039
const val VERIFY_PLUGIN_TASK_NAME = "verifyPlugin"
4140
const val VERIFY_PLUGIN_CONFIGURATION_TASK_NAME = "verifyPluginConfiguration"
@@ -67,7 +66,6 @@ object IntelliJPluginConstants {
6766
RUN_IDE_PERFORMANCE_TEST_TASK_NAME,
6867
RUN_PLUGIN_VERIFIER_TASK_NAME,
6968
SETUP_DEPENDENCIES_TASK_NAME,
70-
SETUP_INSTRUMENT_CODE_TASK_NAME,
7169
SIGN_PLUGIN_TASK_NAME,
7270
VERIFY_PLUGIN_TASK_NAME,
7371
VERIFY_PLUGIN_CONFIGURATION_TASK_NAME,

src/main/kotlin/org/jetbrains/intellij/tasks/SetupInstrumentCodeTask.kt

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)