pekko/project/Publish.scala

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.3 KiB
Scala
Raw Normal View History

/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
2023-06-22 14:19:26 +01:00
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
2022-02-04 12:36:44 +01:00
* Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
*/
2011-07-08 18:01:19 +12:00
import sbt._
2011-12-09 21:55:49 +13:00
import sbt.Keys._
import org.mdedetrich.apache.sonatype.ApacheSonatypePlugin
2023-03-11 11:18:53 +01:00
import sbtdynver.DynVerPlugin
import sbtdynver.DynVerPlugin.autoImport.dynverSonatypeSnapshots
2011-07-08 18:01:19 +12:00
object Publish extends AutoPlugin {
2011-07-08 18:01:19 +12:00
2024-01-22 07:15:16 +01:00
override lazy val trigger = allRequirements
override lazy val projectSettings = Seq(
startYear := Some(2022),
developers := List(
Developer(
"pekko-contributors",
"Apache Pekko Contributors",
"dev@pekko.apache.org",
2024-03-22 14:16:08 +01:00
url("https://github.com/apache/pekko/graphs/contributors"))))
2023-03-11 11:18:53 +01:00
override lazy val buildSettings = Seq(
dynverSonatypeSnapshots := true)
2024-01-22 07:15:16 +01:00
override lazy val requires = ApacheSonatypePlugin && DynVerPlugin
}
/**
* For projects that are not to be published.
*/
object NoPublish extends AutoPlugin {
2024-01-22 07:15:16 +01:00
override lazy val requires = plugins.JvmPlugin
2011-07-08 18:01:19 +12:00
2024-01-22 07:15:16 +01:00
override lazy val projectSettings =
2021-08-17 19:04:27 +12:00
Seq(publish / skip := true, Compile / doc / sources := Seq.empty)
2011-07-08 18:01:19 +12:00
}