mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[maven] IDEA-356780 test updating transitive dependency version in dependencyManagement
GitOrigin-RevId: a9c4c6ce4adf12b31a914d9b377643cbeba5ed70
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ca3f72e76b
commit
edeb1cc677
+57
-4
@@ -43,9 +43,9 @@ class DependenciesImportingTest : MavenMultiVersionImportingTestCase() {
|
||||
|
||||
assertModules("project")
|
||||
assertModuleLibDep("project", "Maven: junit:junit:4.0",
|
||||
"jar://" + repositoryPath + "/junit/junit/4.0/junit-4.0.jar!/",
|
||||
"jar://" + repositoryPath + "/junit/junit/4.0/junit-4.0-sources.jar!/",
|
||||
"jar://" + repositoryPath + "/junit/junit/4.0/junit-4.0-javadoc.jar!/")
|
||||
"jar://$repositoryPath/junit/junit/4.0/junit-4.0.jar!/",
|
||||
"jar://$repositoryPath/junit/junit/4.0/junit-4.0-sources.jar!/",
|
||||
"jar://$repositoryPath/junit/junit/4.0/junit-4.0-javadoc.jar!/")
|
||||
assertProjectLibraryCoordinates("Maven: junit:junit:4.0", "junit", "junit", "4.0")
|
||||
}
|
||||
|
||||
@@ -978,6 +978,59 @@ class DependenciesImportingTest : MavenMultiVersionImportingTestCase() {
|
||||
assertModuleLibDep("project", "Maven: xml-apis:xml-apis:1.0.b2")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testIncrementalSyncTransitiveLibraryDependencyManagement() = runBlocking {
|
||||
importProjectAsync("""
|
||||
<groupId>test</groupId>
|
||||
<artifactId>project</artifactId>
|
||||
<version>1</version>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>3.3.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<artifactId>asm-attrs</artifactId>
|
||||
<version>2.2.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
""".trimIndent())
|
||||
|
||||
assertModules("project")
|
||||
assertModuleLibDeps("project", "Maven: asm:asm-attrs:2.2.1", "Maven: asm:asm:3.3.0")
|
||||
|
||||
updateProjectPom("""
|
||||
<groupId>test</groupId>
|
||||
<artifactId>project</artifactId>
|
||||
<version>1</version>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>3.3.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>asm</groupId>
|
||||
<artifactId>asm-attrs</artifactId>
|
||||
<version>2.2.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
""".trimIndent())
|
||||
updateAllProjects()
|
||||
|
||||
assertModuleLibDeps("project", "Maven: asm:asm-attrs:2.2.1", "Maven: asm:asm:3.3.1")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testExclusionOfTransitiveDependencies() = runBlocking {
|
||||
createProjectPom("""
|
||||
@@ -1469,7 +1522,7 @@ class DependenciesImportingTest : MavenMultiVersionImportingTestCase() {
|
||||
assertProjectLibraries("Maven: junit:junit:4.0")
|
||||
assertModuleLibDeps("project", "Maven: junit:junit:4.0")
|
||||
|
||||
importProjectAsync()
|
||||
updateAllProjects()
|
||||
|
||||
assertProjectLibraries("Maven: junit:junit:4.0")
|
||||
assertModuleLibDeps("project", "Maven: junit:junit:4.0")
|
||||
|
||||
Reference in New Issue
Block a user