File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
buildSrc/src/test/kotlin/com/google/firebase/gradle/plugins Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,23 @@ class PublishingPluginTests {
120
120
}
121
121
}
122
122
123
+ @Test
124
+ fun `Publish with very transitive dependency` () {
125
+ with (controller) {
126
+ val project1 = Project (name = " childProject1" , version = " 1.0" , libraryGroup = " libraryGroup" )
127
+ val project2 =
128
+ Project (name = " childProject2" , version = " 0.9" , projectDependencies = setOf (project1))
129
+ val project3 = Project (name = " childProject3" , version = " 1.0" , libraryGroup = " libraryGroup" )
130
+
131
+ withProjects(project1, project2, project3)
132
+ publish(project2)
133
+
134
+ project1.pomOrNull().shouldNotBeNull()
135
+ project3.pomOrNull().shouldNotBeNull()
136
+ project2.pom.dependencies shouldHaveSingleElement project1.toArtifact()
137
+ }
138
+ }
139
+
123
140
@Test
124
141
fun `Publish with released dependency` () {
125
142
with (controller) {
You can’t perform that action at this time.
0 commit comments