I've updated to SBT 1.3.0. Now I keep receiving warning on every action:
[warn] insecure HTTP request is deprecated 'http://<company_domain>/nexus/content/repositories/mvnrepository/'; switch to HTTPS or opt-in as ("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
I've tried following options in ~/.sbt/repositories file:
nexus: ("http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
and
("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
How can I allow http repositories globally (for all configured repositories)?
create ~/.sbt/resolvers.sbt and add there
resolvers += ("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true)
or
resolvers ++= Seq(
("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true),
("nexus" at "http://<company_domain>/nexus/content/repositories/mvnrepository/").withAllowInsecureProtocol(true),
...
)
in your .sbt/repositories
file, you can add setting using comma:
[repositories]
nexus: http://<company_domain>/nexus/content/repositories/mvnrepository/, allowInsecureProtocol
look at pattern in sbt documentation:
name: url(, pattern)(,bootOnly)(,descriptorOptional)(,skipConsistencyCheck)(,allowInsecureProtocol)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With