Skip to content

Commit

Permalink
build: publish jars for fury-scala (#1729)
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
pjfanning authored Jul 10, 2024
1 parent e07c51e commit 81b9843
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
23 changes: 20 additions & 3 deletions scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
"[email protected]",
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,
)
21 changes: 21 additions & 0 deletions scala/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

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")

0 comments on commit 81b9843

Please sign in to comment.