2023-01-08 17:13:31 +08:00
|
|
|
/*
|
|
|
|
|
* 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.
|
2023-01-08 17:13:31 +08:00
|
|
|
*/
|
|
|
|
|
|
2019-01-02 18:55:26 +08:00
|
|
|
/*
|
2022-02-04 12:36:44 +01:00
|
|
|
* Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
|
2014-11-30 15:34:59 +02:00
|
|
|
*/
|
2018-03-13 23:45:55 +09:00
|
|
|
|
2011-07-08 18:01:19 +12:00
|
|
|
import sbt._
|
2011-12-09 21:55:49 +13:00
|
|
|
import sbt.Keys._
|
2023-05-20 11:11:40 +02:00
|
|
|
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
|
|
|
|
2014-11-30 15:34:59 +02: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
|
2014-11-30 15:34:59 +02:00
|
|
|
|
|
|
|
|
override lazy val projectSettings = Seq(
|
2023-01-23 11:09:03 +00:00
|
|
|
startYear := Some(2022),
|
2020-11-30 16:39:14 +01:00
|
|
|
developers := List(
|
2022-11-03 09:46:22 +01:00
|
|
|
Developer(
|
2023-01-23 11:09:03 +00:00
|
|
|
"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-02-12 14:14:49 +01:00
|
|
|
|
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
|
2017-10-30 03:13:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2019-10-07 18:24:11 +02:00
|
|
|
* For projects that are not to be published.
|
|
|
|
|
*/
|
2017-10-30 03:13:14 +02:00
|
|
|
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
|
|
|
}
|