-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
|
||
val ScalaNativeVersion = "0.5.0-SNAPSHOT" | ||
val ScalaNativeVersion = "0.5.0-RC2" | ||
// Update during release procedure to provide access to staged, but not published artifacts | ||
val StagingRepoIds = Nil | ||
val StagingRepoIds = (1130 to 1132) | ||
val StagingRepoNames = StagingRepoIds.map(id => s"orgscala-native-$id").toSeq | ||
|
||
val crossScalaVersions212 = (14 to 19).map("2.12." + _) | ||
val crossScalaVersions213 = (8 to 13).map("2.13." + _) | ||
val crossScalaVersions3 = | ||
(2 to 3).map("3.1." + _) ++ | ||
(0 to 2).map("3.2." + _) ++ | ||
(0 to 2).map("3.3." + _) ++ | ||
(0 to 3).map("3.3." + _) ++ | ||
(0 to 0).map("3.4." + _) | ||
|
||
val scala2_12 = crossScalaVersions212.last | ||
|
@@ -37,12 +37,15 @@ def scalaStdlibForBinaryVersion( | |
def artifact(module: String, binV: String, version: String = nativeVersion) = | ||
organization % s"${module}_native${nativeBinaryVersion}_$binV" % version | ||
|
||
def crossScalaLibVersion(scalaVersion: String) = | ||
s"$scalaVersion+$nativeVersion" | ||
def scalalibVersion(scalaBinVersion: String): String = { | ||
val scalaVersion = scalaReleasesForBinaryVersion(scalaBinVersion).last | ||
s"$scalaVersion+$nativeVersion" | ||
crossScalaLibVersion(scalaVersion) | ||
} | ||
def scalalib(binV: String) = artifact("scalalib", binV, scalalibVersion(binV)) | ||
val scala3lib = artifact("scala3lib", "3", scalalibVersion("3")) | ||
val scala3lib = | ||
artifact("scala3lib", "3", crossScalaLibVersion(scala3PublishVersion)) | ||
val crossRuntimeLibraries = List( | ||
"nativelib", | ||
"clib", | ||
|
@@ -94,8 +97,8 @@ inThisBuild( | |
Some("scm:git:[email protected]:scala-native/scala-native-cli.git") | ||
) | ||
), | ||
// Used during the releases | ||
resolvers ++= StagingRepoIds.flatMap(id => Resolver.sonatypeOssRepos(s"orgscala-native-$id")), | ||
// Used during the releases | ||
resolvers ++= StagingRepoNames.flatMap(Resolver.sonatypeOssRepos(_)), | ||
resolvers ++= Resolver.sonatypeOssRepos("snapshots"), | ||
resolvers += Resolver.mavenCentral, | ||
resolvers += Resolver.defaultLocal | ||
|
@@ -149,7 +152,9 @@ lazy val cliScriptedTests = project | |
"-Dplugin.version=" + (cli / scalaNativeVersion).value, | ||
"-Dscala.version=" + (cli / scalaVersion).value, | ||
"-Dscala-native-cli=" + cliPath, | ||
"-Dscala-native-cli-pack=" + packDir | ||
"-Dscala-native-cli-pack=" + packDir, | ||
"-Dscalanative.build.staging.resolvers=" + StagingRepoNames | ||
.mkString(",") | ||
) | ||
}, | ||
scriptedBufferLog := false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters