Cleanup warnings in scripting code
This commit is contained in:
@@ -29,7 +29,7 @@ suspend fun resolveFromAnnotations(resolver: ExternalDependenciesResolver, annot
|
||||
return annotations.filterIsInstance(DependsOn::class.java).flatMapSuccess { dep ->
|
||||
val artifactCoordinates =
|
||||
if (dep.value.isNotBlank()) dep.value
|
||||
else listOf(dep.groupId, dep.artifactId, dep.version).filter { it?.isNotBlank() ?: false }.joinToString(":")
|
||||
else listOf(dep.groupId, dep.artifactId, dep.version).filter { it.isNotBlank() }.joinToString(":")
|
||||
resolver.resolve(artifactCoordinates)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ class MainKtsConfigurator : RefineScriptCompilationConfigurationHandler {
|
||||
|
||||
return resolveResult.onSuccess { resolvedClassPath ->
|
||||
ScriptCompilationConfiguration(context.compilationConfiguration) {
|
||||
if (resolvedClassPath != null) updateClasspath(resolvedClassPath)
|
||||
updateClasspath(resolvedClassPath)
|
||||
if (importedSources.isNotEmpty()) importScripts.append(importedSources)
|
||||
if (compileOptions.isNotEmpty()) compilerOptions.append(compileOptions)
|
||||
}.asSuccess()
|
||||
|
||||
Reference in New Issue
Block a user