|
| 1 | +// Update during release procedure to provide access to staged, but not published artifacts |
| 2 | +val StagingRepoIds = 1147 to 1149 |
| 3 | +val StagingRepoNames = StagingRepoIds.map(id => s"orgscala-native-$id").toSeq |
| 4 | + |
1 | 5 | inThisBuild( |
2 | 6 | Def.settings( |
3 | 7 | version := "1.0.0", |
4 | 8 | scalaVersion := "3.1.3", |
5 | | - crossScalaVersions := Seq("2.12.16", "2.13.8", "3.1.3"), |
| 9 | + crossScalaVersions := Seq("2.12.18", "2.13.13", "3.1.3"), |
6 | 10 | publishSettings, |
7 | | - |
8 | | - versionScheme := Some("semver-spec") |
| 11 | + versionScheme := Some("semver-spec"), |
| 12 | + resolvers ++= StagingRepoNames.flatMap(Resolver.sonatypeOssRepos(_)) |
9 | 13 | ) |
10 | 14 | ) |
11 | 15 |
|
@@ -40,7 +44,7 @@ def publishSettings = Def.settings( |
40 | 44 | organization := "org.scala-native", |
41 | 45 | // name := id, |
42 | 46 | homepage := Some(url("https://www.scala-native.org")), |
43 | | - startYear := Some(2022), |
| 47 | + startYear := Some(2024), |
44 | 48 | licenses := Seq( |
45 | 49 | "BSD-like" -> url("https://www.scala-lang.org/downloads/license.html") |
46 | 50 | ), |
@@ -72,10 +76,13 @@ def publishSettings = Def.settings( |
72 | 76 | }, |
73 | 77 | credentials ++= { |
74 | 78 | for { |
75 | | - realm <- sys.env.get("MAVEN_REALM") |
76 | | - domain <- sys.env.get("MAVEN_DOMAIN") |
77 | 79 | user <- sys.env.get("MAVEN_USER") |
78 | 80 | password <- sys.env.get("MAVEN_PASSWORD") |
79 | | - } yield Credentials(realm, domain, user, password) |
| 81 | + } yield Credentials( |
| 82 | + realm = "Sonatype Nexus Repository Manager", |
| 83 | + host = "oss.sonatype.org", |
| 84 | + userName = user, |
| 85 | + passwd = password |
| 86 | + ) |
80 | 87 | }.toSeq |
81 | 88 | ) |
0 commit comments