This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury.git


The following commit(s) were added to refs/heads/main by this push:
     new 81b98438 build: publish jars for fury-scala (#1729)
81b98438 is described below

commit 81b9843827bf01ffa6a6f6a5049dd7c3882c569b
Author: PJ Fanning <pjfann...@users.noreply.github.com>
AuthorDate: Wed Jul 10 16:07:21 2024 +0100

    build: publish jars for fury-scala (#1729)
    
    This PR uses https://github.com/mdedetrich/sbt-apache-sonatype to
    support publishing fury-scala jars to Apache's Nexus repository.
    
    `sbt +publishSigned`
    
    requires that you set NEXUS_USER and NEXUS_PW environment variables to
    provide your Apache username and password.
    
    I have used my PR code to publish some snapshots to
    https://repository.apache.org/content/groups/snapshots/org/apache/fury/
---
 scala/build.sbt                          | 23 ++++++++++++++++++++---
 scala/{build.sbt => project/plugins.sbt} | 16 +++-------------
 2 files changed, 23 insertions(+), 16 deletions(-)

diff --git a/scala/build.sbt b/scala/build.sbt
index f3cf2b59..60c966d0 100644
--- a/scala/build.sbt
+++ b/scala/build.sbt
@@ -16,16 +16,33 @@
  * limitations under the License.
  */
 
-name := "fury-scala"
+val furyVersion = "0.6.0-SNAPSHOT"
 val scala213Version = "2.13.14"
+ThisBuild / apacheSonatypeProjectProfile := "fury"
+version := furyVersion
 scalaVersion := scala213Version
 crossScalaVersions := Seq(scala213Version, "3.3.3")
 
+lazy val root = Project(id = "fury-scala", base = file("."))
+  .settings(
+    name := "fury-scala",
+    apacheSonatypeLicenseFile := baseDirectory.value / ".." / "LICENSE",
+    apacheSonatypeNoticeFile := baseDirectory.value / ".." / "NOTICE",
+    apacheSonatypeDisclaimerFile := Some(baseDirectory.value / ".." / 
"DISCLAIMER"),
+    description := "Apache Fury(Incubating) is a blazingly fast multi-language 
serialization framework powered by JIT and zero-copy.",
+    homepage := Some(url("https://fury.apache.org/";)),
+    startYear := Some(2024),
+    developers := List(
+      Developer(
+        "fury-contributors",
+        "Apache Fury(Incubating) Contributors",
+        "d...@fury.apache.org",
+        url("https://github.com/apache/fury/graphs/contributors";))))
+
 resolvers += Resolver.mavenLocal
 resolvers += Resolver.ApacheMavenSnapshotsRepo
 
-val furyVersion = "0.6.0-SNAPSHOT"
 libraryDependencies ++= Seq(
   "org.apache.fury" % "fury-core" % furyVersion,
-  "org.scalatest" %% "scalatest" % "3.2.19",
+  "org.scalatest" %% "scalatest" % "3.2.19" % Test,
 )
diff --git a/scala/build.sbt b/scala/project/plugins.sbt
similarity index 68%
copy from scala/build.sbt
copy to scala/project/plugins.sbt
index f3cf2b59..1fd06159 100644
--- a/scala/build.sbt
+++ b/scala/project/plugins.sbt
@@ -16,16 +16,6 @@
  * limitations under the License.
  */
 
-name := "fury-scala"
-val scala213Version = "2.13.14"
-scalaVersion := scala213Version
-crossScalaVersions := Seq(scala213Version, "3.3.3")
-
-resolvers += Resolver.mavenLocal
-resolvers += Resolver.ApacheMavenSnapshotsRepo
-
-val furyVersion = "0.6.0-SNAPSHOT"
-libraryDependencies ++= Seq(
-  "org.apache.fury" % "fury-core" % furyVersion,
-  "org.scalatest" %% "scalatest" % "3.2.19",
-)
+addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")
+addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
+addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.11")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@fury.apache.org
For additional commands, e-mail: commits-h...@fury.apache.org

Reply via email to