File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments