Skip to content

Commit

Permalink
Test publish settings
Browse files Browse the repository at this point in the history
  • Loading branch information
danieletorelli committed May 10, 2024
1 parent 6212b0b commit d6014e1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
push:
branches: [main]
branches: [main, publishing]
release:
types:
- published
Expand Down
27 changes: 24 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
import Settings.*

ThisBuild / scalaVersion := Versions.scala2_12
ThisBuild / organization := "cloud.golem"
inThisBuild(
List(
scalaVersion := Versions.scala2_12,
organization := "cloud.golem",
homepage := Some(url("https://github.com/golemcloud/sbt-wasm-component")),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"danieletorelli",
"Daniele Torelli",
"[email protected]",
url("https://github.com/danieletorelli")
)
),
resolvers +=
"Sonatype OSS Snapshots 01" at "https://s01.oss.sonatype.org/content/repositories/snapshots/",
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
sonatypeCredentialHost := Sonatype.sonatype01
)
)

lazy val root = (project in file("."))
.settings(
Expand All @@ -11,7 +33,6 @@ lazy val root = (project in file("."))
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.enablePlugins(SbtPlugin)
.enablePlugins(BuildInfoPlugin)
.publishSettings
.dependsOn(macros)
.aggregate(macros)

Expand Down
33 changes: 0 additions & 33 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,6 @@ object Settings {

implicit final class ProjectSettings(project: sbt.Project) {

def publishSettings: sbt.Project = {
import com.jsuereth.sbtpgp.PgpKeys.*

project.settings(
inThisBuild(
List(
organization := "cloud.golem",
homepage := Some(
url("https://github.com/golemcloud/sbt-wasm-component")
),
licenses := List(
"Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")
),
developers := List(
Developer(
"danieletorelli",
"Daniele Torelli",
"[email protected]",
url("https://mdtorelli.it")
)
),
resolvers +=
"Sonatype OSS Snapshots 01" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
)
)
}

def macroParadiseSettings: sbt.Project =
project.settings(
scalacOptions ++= {
Expand Down

0 comments on commit d6014e1

Please sign in to comment.