pan3793 commented on code in PR #2129:
URL:
https://github.com/apache/incubator-celeborn/pull/2129#discussion_r1427483404
##########
project/CelebornBuild.scala:
##########
@@ -218,6 +218,44 @@ object CelebornCommonSettings {
Test / envVars += ("IS_TESTING", "1")
)
+ ////////////////////////////////////////////////////////
+ // Release settings //
+ ////////////////////////////////////////////////////////
+
+ lazy val releaseSettings = Seq(
+ publishMavenStyle := true,
+ publishArtifact := true,
+ Test / publishArtifact := false,
+ credentials += {
+ val host = publishTo.value.map {
+ case repo: MavenRepo => scala.util.Try(new
java.net.URL(repo.root)).map(_.getHost).getOrElse("repository.apache.org")
+ case _ => "repository.apache.org"
+ }.get
+
+ Credentials(
+ "Sonatype Nexus Repository Manager",
+ host,
+ sys.env.getOrElse("ASF_USERNAME", ""),
+ sys.env.getOrElse("ASF_PASSWORD", "")),
+ },
+ publishTo := {
+ if (isSnapshot.value) {
+ val publishUrl = sys.env.getOrElse("SONATYPE_SNAPSHOTS_URL",
"https://repository.apache.org/content/repositories/snapshots")
+ Some(("snapshots" at publishUrl).withAllowInsecureProtocol(true))
+ } else {
+ val publishUrl = sys.env.getOrElse("SONATYPE_RELEASES_URL",
"https://repository.apache.org/service/local/staging/deploy/maven2")
+ Some(("releases" at publishUrl).withAllowInsecureProtocol(true))
+ }
+ },
+ licenses += ("Apache-2.0",
url("http://www.apache.org/licenses/LICENSE-2.0")),
Review Comment:
```suggestion
licenses += ("Apache-2.0",
url("https://www.apache.org/licenses/LICENSE-2.0")),
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]