Skip to content

Commit ef69b18

Browse files
committed
Rename descriptionGradleStyle
1 parent 6a126ec commit ef69b18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftJavaConfigurationShared/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public struct JavaRepositoryDescriptor: Hashable, Codable {
152152
self.artifactUrls = artifactUrls
153153
}
154154

155-
public var descriptionGradleStyle: String? {
155+
public func renderGradleRepository() -> String? {
156156
switch type {
157157
case .mavenLocal, .mavenCentral:
158158
return "\(type.rawValue)()"

Sources/SwiftJavaTool/Commands/ResolveCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ extension SwiftJava.ResolveCommand {
195195
"""
196196
plugins { id 'java-library' }
197197
repositories {
198-
\(repositories.compactMap(\.descriptionGradleStyle).joined(separator: "\n"))
198+
\(repositories.compactMap({ $0.renderGradleRepository() }).joined(separator: "\n"))
199199
}
200200
201201
dependencies {

0 commit comments

Comments
 (0)