[imltogradle] Do not resolve transitive dependencies in gralde if don't resolve them in JPS
This fixes problems of Gradle not being possible to find transitive maven artifacts if actually we don't need them
This commit is contained in:
+3
-1
@@ -128,7 +128,9 @@ fun convertJpsLibrary(lib: JpsLibrary, scope: JpsJavaDependencyScope, exported:
|
||||
}
|
||||
else -> {
|
||||
val dependencyNotation = "\"${mavenRepositoryLibraryDescriptor.mavenId}\""
|
||||
listOf(JpsLikeJarDependency(dependencyNotation, scope, dependencyConfiguration = null, exported = exported))
|
||||
val dependencyConfiguration =
|
||||
"{ isTransitive = false }".takeIf { !mavenRepositoryLibraryDescriptor.isIncludeTransitiveDependencies }
|
||||
listOf(JpsLikeJarDependency(dependencyNotation, scope, dependencyConfiguration, exported = exported))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user