Skip to content

Commit 764d586

Browse files
committed
Add another non-resolvable config to verify artifactUrls
1 parent 52243ad commit 764d586

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Tests/SwiftJavaTests/JavaRepositoryTests.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ class JavaRepositoryTests {
6262
try await #expect(processExitsWith: .failure, "andriodCoreInCentral") {
6363
try await resolve(configuration: .andriodCoreInCentral)
6464
}
65+
try await #expect(processExitsWith: .failure, "androidLifecycleInRepo") {
66+
try await resolve(configuration: .androidLifecycleInRepo)
67+
}
6568
}
6669

6770
@Test
@@ -206,6 +209,25 @@ extension SwiftJavaConfigurationShared.Configuration {
206209
]
207210
return configuration
208211
}()
212+
213+
static let androidLifecycleInRepo: Configuration = {
214+
var configuration = Configuration()
215+
configuration.swiftModule = "JavaAndroidLifecycle"
216+
configuration.dependencies = [
217+
JavaDependencyDescriptor(groupID: "android.arch.lifecycle", artifactID: "common", version: "1.1.1")
218+
]
219+
// using the following property to download to local repo
220+
configuration.packageToDownload = #""android.arch.lifecycle:common:1.1.1""#
221+
configuration.remoteRepo = "https://maven.google.com"
222+
configuration.splitPackage = true
223+
224+
configuration.repositories = [
225+
.maven(url: JavaRepositoryTests.localJarRepo/*, artifactUrls: [
226+
JavaRepositoryTests.localPomRepo
227+
]*/)
228+
]
229+
return configuration
230+
}()
209231
}
210232

211233
// MARK: - Download to local repo

0 commit comments

Comments
 (0)