mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Gradle: PasteMvnDependencyPreProcessor can be reused for kotlin DSL
This commit is contained in:
+3
-4
@@ -61,7 +61,8 @@ public class PasteMvnDependencyPreProcessor implements CopyPastePreProcessor {
|
||||
@NotNull String artifactId,
|
||||
@NotNull String version,
|
||||
@NotNull String scope,
|
||||
@NotNull String gradleClassifier) {
|
||||
@NotNull String classifier) {
|
||||
String gradleClassifier = classifier.isEmpty() ? "" : ":" + classifier;
|
||||
return scope + "'" + groupId + ":" + artifactId + ":" + version + gradleClassifier + "'";
|
||||
}
|
||||
|
||||
@@ -96,9 +97,7 @@ public class PasteMvnDependencyPreProcessor implements CopyPastePreProcessor {
|
||||
if (groupId.isEmpty() || artifactId.isEmpty() || version.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
String gradleClassifier = classifier.isEmpty() ? "" : ":" + classifier;
|
||||
|
||||
return formatGradleDependency(groupId, artifactId, version, scope, gradleClassifier);
|
||||
return formatGradleDependency(groupId, artifactId, version, scope, classifier);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user