Skip to content

Commit 7bf0de7

Browse files
committed
Add a repositories configuration example and fix artifactUrls output
1 parent 9b624db commit 7bf0de7

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"classes": {
3+
"org.apache.commons.io.FilenameUtils": "FilenameUtils",
4+
"org.apache.commons.io.IOCase": "IOCase",
5+
"org.apache.commons.csv.CSVFormat": "CSVFormat",
6+
"org.apache.commons.csv.CSVParser": "CSVParser",
7+
"org.apache.commons.csv.CSVRecord": "CSVRecord"
8+
},
9+
"dependencies": [
10+
"org.apache.commons:commons-csv:1.12.0"
11+
],
12+
"repositories": [
13+
{
14+
"type": "maven",
15+
"url": "https://jitpack.io",
16+
"artifactUrls": []
17+
},
18+
{
19+
"type": "maven",
20+
"url": "file:~/.m2/repository"
21+
},
22+
{
23+
"type": "mavenLocal"
24+
},
25+
{
26+
"type": "mavenCentral"
27+
}
28+
]
29+
}

Sources/SwiftJavaConfigurationShared/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public struct JavaRepositoryDescriptor: Hashable, Codable {
163163
return """
164164
maven {
165165
url "\(url)"
166-
\((artifactUrls ?? []).map({ "artifactUrls(\($0))" }).joined(separator: "\n"))
166+
\((artifactUrls ?? []).map({ "artifactUrls(\"\($0)\")" }).joined(separator: "\n"))
167167
}
168168
"""
169169
}

0 commit comments

Comments
 (0)