From 612db30be30bc9b58903d8e024a6fb8478150419 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 14 Dec 2018 01:55:40 -0500 Subject: [PATCH 1/3] Use slash syntax for ThisBuild --- src/main/g8/build.sbt | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/src/main/g8/build.sbt b/src/main/g8/build.sbt index 449bdbd..3b538a8 100644 --- a/src/main/g8/build.sbt +++ b/src/main/g8/build.sbt @@ -1,12 +1,40 @@ import Dependencies._ -lazy val root = (project in file(".")). - settings( - inThisBuild(List( - organization := "com.example", - scalaVersion := "2.12.7", - version := "0.1.0-SNAPSHOT" - )), +ThisBuild / scalaVersion := "2.12.7" +ThisBuild / version := "0.1.0-SNAPSHOT" +ThisBuild / organization := "com.example" +ThisBuild / organizationName := "example" + +lazy val root = (project in file(".")) + .settings( name := "$name$", libraryDependencies += scalaTest % Test ) + +// Uncomment the following for publishing to Sonatype. +// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for more detail. + +// ThisBuild / description := "Some descripiton about your project." +// ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) +// ThisBuild / homepage := Some(url("https://github.com/example/project")) +// ThisBuild / scmInfo := Some( +// ScmInfo( +// url("https://github.com/your-account/your-project"), +// "scm:git@github.com:your-account/your-project.git" +// ) +// ) +// ThisBuild / developers := List( +// Developer( +// id = "Your identifier", +// name = "Your Name", +// email = "your@email", +// url = url("http://your.url") +// ) +// ) +// ThisBuild / pomIncludeRepository := { _ => false } +// ThisBuild / publishTo := { +// val nexus = "https://oss.sonatype.org/" +// if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") +// else Some("releases" at nexus + "service/local/staging/deploy/maven2") +// } +// ThisBuild / publishMavenStyle := true From b33caf512cf70257735148135778fe97302aa24e Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 14 Dec 2018 01:56:31 -0500 Subject: [PATCH 2/3] Scala 2.12.8 --- src/main/g8/build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/g8/build.sbt b/src/main/g8/build.sbt index 3b538a8..0b0e9c4 100644 --- a/src/main/g8/build.sbt +++ b/src/main/g8/build.sbt @@ -1,6 +1,6 @@ import Dependencies._ -ThisBuild / scalaVersion := "2.12.7" +ThisBuild / scalaVersion := "2.12.8" ThisBuild / version := "0.1.0-SNAPSHOT" ThisBuild / organization := "com.example" ThisBuild / organizationName := "example" From 23f510c7d9313c383e3b38336ab19893862dfe72 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Thu, 17 Jan 2019 16:42:44 -0500 Subject: [PATCH 3/3] Link to Sonatype publishing info --- src/main/g8/build.sbt | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/main/g8/build.sbt b/src/main/g8/build.sbt index 0b0e9c4..8a13c34 100644 --- a/src/main/g8/build.sbt +++ b/src/main/g8/build.sbt @@ -11,30 +11,4 @@ lazy val root = (project in file(".")) libraryDependencies += scalaTest % Test ) -// Uncomment the following for publishing to Sonatype. -// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for more detail. - -// ThisBuild / description := "Some descripiton about your project." -// ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) -// ThisBuild / homepage := Some(url("https://github.com/example/project")) -// ThisBuild / scmInfo := Some( -// ScmInfo( -// url("https://github.com/your-account/your-project"), -// "scm:git@github.com:your-account/your-project.git" -// ) -// ) -// ThisBuild / developers := List( -// Developer( -// id = "Your identifier", -// name = "Your Name", -// email = "your@email", -// url = url("http://your.url") -// ) -// ) -// ThisBuild / pomIncludeRepository := { _ => false } -// ThisBuild / publishTo := { -// val nexus = "https://oss.sonatype.org/" -// if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") -// else Some("releases" at nexus + "service/local/staging/deploy/maven2") -// } -// ThisBuild / publishMavenStyle := true +// See https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html for instructions on how to publish to Sonatype.