-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added required information for publishing
- Loading branch information
1 parent
0179b99
commit eb04c3c
Showing
5 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
--- | ||
name: Task | ||
about: A thing that needs to be done like a refactoring | ||
title: "[TASK]" | ||
about: A thing that needs to be done on the project, like a refactoring or updating a library | ||
title: '' | ||
labels: 'task' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
A clear and concise description of what needs to be done. | ||
A clear and concise description of what needs to be done. The more details you add the better it | ||
will help the assignee. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,41 @@ import xerial.sbt.Sonatype._ | |
|
||
// General | ||
Global / onChangedBuildSource := ReloadOnSourceChanges | ||
ThisBuild / turbo := true | ||
ThisBuild / scalaVersion := ScalaLangVersion | ||
|
||
// Project information | ||
ThisBuild / homepage := Some(url("https://github.com/ColOfAbRiX/figlet4s")) | ||
ThisBuild / organization := "com.colofabrix.scala" | ||
ThisBuild / organizationName := "ColOfAbRiX" | ||
ThisBuild / organizationHomepage := Some(url("https://github.com/ColOfAbRiX")) | ||
ThisBuild / licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT")) | ||
ThisBuild / scalaVersion := ScalaLangVersion | ||
ThisBuild / turbo := true | ||
ThisBuild / scmInfo := Some( | ||
ScmInfo(url("https://github.com/ColOfAbRiX/figlet4s"), "scm:[email protected]:ColOfAbRiX/figlet4s.git"), | ||
) | ||
ThisBuild / developers := List( | ||
Developer("ColOfAbRiX", "Fabrizio Colonna", "[email protected]", url("http://github.com/ColOfAbRiX")), | ||
) | ||
|
||
// Publishing | ||
ThisBuild / pomIncludeRepository := { _ => false } | ||
ThisBuild / publishMavenStyle := true | ||
ThisBuild / sonatypeProjectHosting := Some( | ||
GitHubHosting("ColOfAbRiX", "figlet4s", "[email protected]"), | ||
) | ||
ThisBuild / publishTo := Some( | ||
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots | ||
else Opts.resolver.sonatypeStaging, | ||
) | ||
|
||
// GIT version information | ||
ThisBuild / dynverSonatypeSnapshots := true | ||
|
||
// Scalafix | ||
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.4.3" | ||
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value) | ||
ThisBuild / semanticdbEnabled := true | ||
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision | ||
|
||
val commonSettings: Seq[Def.Setting[_]] = Seq( | ||
// Testing | ||
|
@@ -42,41 +73,29 @@ val commonSettings: Seq[Def.Setting[_]] = Seq( | |
Wart.StringPlusAny, | ||
Wart.ToString, | ||
// Covered by ScalaFix | ||
Wart.PublicInference | ||
Wart.PublicInference, | ||
), | ||
|
||
// Scaladoc | ||
Compile / autoAPIMappings := true, | ||
Compile / doc / scalacOptions ++= Seq( | ||
"-doc-title", "Figlet4s API Documentation", | ||
"-doc-version", version.value, | ||
"-encoding", "UTF-8" | ||
"-doc-title", | ||
"Figlet4s API Documentation", | ||
"-doc-version", | ||
version.value, | ||
"-encoding", | ||
"UTF-8", | ||
), | ||
|
||
// Publishing | ||
publishMavenStyle := true, | ||
) | ||
|
||
// GIT version information | ||
ThisBuild / dynverSonatypeSnapshots := true | ||
|
||
// Scalafix | ||
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.4.3" | ||
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value) | ||
ThisBuild / semanticdbEnabled := true | ||
ThisBuild / semanticdbVersion := scalafixSemanticdb.revision | ||
|
||
// Publishing | ||
ThisBuild / sonatypeProjectHosting := Some( | ||
GitHubHosting("ColOfAbRiX", "figlet4s", "[email protected]") | ||
) | ||
ThisBuild / developers := List( | ||
Developer("ColOfAbRiX", "Fabrizio Colonna", "[email protected]", url("http://github.com/ColOfAbRiX")), | ||
) | ||
// ThisBuild / publishTo := sonatypePublishTo.value | ||
ThisBuild / publishTo := Some( | ||
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots | ||
else Opts.resolver.sonatypeStaging | ||
// Packaging and publishing | ||
Compile / packageBin / packageOptions ++= Seq( | ||
Package.ManifestAttributes( | ||
("Git-Build-Branch", git.gitCurrentBranch.value), | ||
("Git-Head-Commit-Date", git.gitHeadCommitDate.value.getOrElse("")), | ||
("Git-Head-Commit", git.gitHeadCommit.value.getOrElse("")), | ||
("Git-Uncommitted-Changes", git.gitUncommittedChanges.value.toString), | ||
), | ||
), | ||
) | ||
|
||
// Figlet4s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters