Skip to content

Commit 2ce8d0f

Browse files
committed
Use Plugin Verifier libraries to resolve the bundled plugin classpath
1 parent d148597 commit 2ce8d0f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
- Load the `com.intellij` module by default when creating the IntelliJ Platform dependency
1919
- Load the `com.intellij` module with its optional dependencies for tests classpath as a cleaner fix for [IJPL-180516](https://youtrack.jetbrains.com/issue/IJPL-180516/Gradle-tests-fail-without-transitive-modules-jars-of-com.intellij-in-classpath)
2020
- Store `localPlatformArtifacts` Ivy XML files within the version-based subdirectory
21-
- Deprecate Writerside (WRS) as a target IntelliJ Platform.
21+
- Deprecate Writerside (WRS) as a target IntelliJ Platform
22+
- Use Plugin Verifier libraries to resolve the bundled plugin classpath
2223

2324
### Fixed
2425

src/main/kotlin/org/jetbrains/intellij/platform/gradle/extensions/IntelliJPlatformDependenciesHelper.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,11 @@ class IntelliJPlatformDependenciesHelper(
812812
* @param id The ID of the bundled module.
813813
*/
814814
private fun DependencyHandler.createIntelliJPlatformBundledModule(id: String): Dependency {
815-
val bundledModule = productInfo.layout
816-
.find { layout -> layout.name == id }
815+
val bundledModule = ideProvider.get().findPluginById(id)
817816
.let { requireNotNull(it) { "Specified bundledModule '$id' doesn't exist." } }
817+
val classpath = bundledModule.classpath.paths.map { it.pathString }
818818

819-
val (group, name, version) = writeBundledModuleDependency(id, bundledModule.classPath)
819+
val (group, name, version) = writeBundledModuleDependency(id, classpath)
820820
return create(group, name, version)
821821
}
822822

0 commit comments

Comments
 (0)