@@ -40,21 +40,21 @@ val dependencyVersionsByGroup = mapOf(
4040subprojects {
4141 repositories {
4242// mavenLocal()
43- // listOf<String>(
44- // "gesellix/okhttp",
45- // // "docker-client/*",
46- // ).forEach { slug ->
47- // // fun findProperty(s: String) = project.findProperty(s) as String?
48- // maven {
49- // name = "githubPackages"
50- // url = uri("https://maven.pkg.github.com/${slug}")
51- // credentials(PasswordCredentials::class)
52- // // credentials {
53- // // username = System.getenv("PACKAGE_REGISTRY_USER") ?: findProperty("github.package-registry.username")
54- // // password = System.getenv("PACKAGE_REGISTRY_TOKEN") ?: findProperty("github.package-registry.password")
55- // // }
56- // }
57- // }
43+ listOf<String >(
44+ " gesellix/okhttp" ,
45+ // "docker-client/*",
46+ ).forEach { slug ->
47+ // fun findProperty(s: String) = project.findProperty(s) as String?
48+ maven {
49+ name = " githubPackages"
50+ url = uri(" https://maven.pkg.github.com/${slug} " )
51+ credentials(PasswordCredentials ::class )
52+ // credentials {
53+ // username = System.getenv("PACKAGE_REGISTRY_USER") ?: findProperty("github.package-registry.username")
54+ // password = System.getenv("PACKAGE_REGISTRY_TOKEN") ?: findProperty("github.package-registry.password")
55+ // }
56+ }
57+ }
5858 mavenCentral()
5959 }
6060}
@@ -70,12 +70,12 @@ allprojects {
7070 useVersion(forcedVersion)
7171 }
7272 }
73- // dependencySubstitution {
74- // substitute(module("com.squareup.okhttp3:okhttp"))
75- // .using(module("de.gesellix.okhttp3-forked:okhttp:${libs.versions.okhttp.get()}"))
76- // substitute(module("com.squareup.okhttp3:okhttp-jvm"))
77- // .using(module("de.gesellix.okhttp3-forked:okhttp-jvm:${libs.versions.okhttp.get()}"))
78- // }
73+ dependencySubstitution {
74+ substitute(module(" com.squareup.okhttp3:okhttp" ))
75+ .using(module(" de.gesellix.okhttp3-forked:okhttp:${libs.versions.okhttp.get()} " ))
76+ substitute(module(" com.squareup.okhttp3:okhttp-jvm" ))
77+ .using(module(" de.gesellix.okhttp3-forked:okhttp-jvm:${libs.versions.okhttp.get()} " ))
78+ }
7979 }
8080 }
8181}
0 commit comments