|
| 1 | +import sbt._ |
| 2 | +import Keys._ |
| 3 | +import com.jsuereth.sbtpgp.SbtPgp.autoImport._ |
| 4 | +import sbtrelease.ReleasePlugin.autoImport._ |
| 5 | +import sbtrelease.ReleaseStateTransformations._ |
| 6 | + |
| 7 | + |
1 | 8 | inThisBuild(Seq(
|
2 |
| - version := "1.0.1-SNAPSHOT", |
3 |
| - organization := "org.scala-js", |
| 9 | + version := "2.0.0-SNAPSHOT", |
| 10 | + organization := "net.exoego", |
4 | 11 |
|
5 | 12 | scalaVersion := crossScalaVersions.value.head,
|
6 | 13 | scalacOptions ++= Seq("-deprecation", "-feature", "-Xfatal-warnings"),
|
7 | 14 |
|
8 |
| - homepage := Some(url("https://www.scala-js.org/")), |
| 15 | + homepage := scmInfo.value.map(_.browseUrl), |
| 16 | + developers := List( |
| 17 | + Developer( |
| 18 | + id = "exoego", |
| 19 | + name = "TATSUNO Yasuhiro", |
| 20 | + email = "ytatsuno.jp@gmail.com", |
| 21 | + url = url("https://www.exoego.net") |
| 22 | + ) |
| 23 | + ), |
9 | 24 | licenses += ("BSD New",
|
10 | 25 | url("https://github.com/scala-js/scala-js-env-jsdom-nodejs/blob/master/LICENSE")),
|
11 | 26 | scmInfo := Some(ScmInfo(
|
12 |
| - url("https://github.com/scala-js/scala-js-env-jsdom-nodejs"), |
13 |
| - "scm:git:git@github.com:scala-js/scala-js-env-jsdom-nodejs.git", |
14 |
| - Some("scm:git:git@github.com:scala-js/scala-js-env-jsdom-nodejs.git"))) |
| 27 | + url("https://github.com/exoego/scala-js-env-jsdom-nodejs"), |
| 28 | + "scm:git:git@github.com:exoego/scala-js-env-jsdom-nodejs.git", |
| 29 | + Some("scm:git:git@github.com:exoego/scala-js-env-jsdom-nodejs.git"))) |
15 | 30 | ))
|
16 | 31 |
|
17 | 32 | val commonSettings = Def.settings(
|
18 |
| - // Scaladoc linking |
19 |
| - apiURL := { |
20 |
| - val name = moduleName.value |
21 |
| - val v = version.value |
22 |
| - Some(url(s"https://www.scala-js.org/api/$name/$v/")) |
23 |
| - }, |
24 |
| - autoAPIMappings := true, |
25 |
| - |
26 | 33 | publishMavenStyle := true,
|
27 |
| - publishTo := { |
28 |
| - val nexus = "https://oss.sonatype.org/" |
29 |
| - if (isSnapshot.value) |
30 |
| - Some("snapshots" at nexus + "content/repositories/snapshots") |
31 |
| - else |
32 |
| - Some("releases" at nexus + "service/local/staging/deploy/maven2") |
33 |
| - }, |
34 |
| - pomExtra := ( |
35 |
| - <developers> |
36 |
| - <developer> |
37 |
| - <id>sjrd</id> |
38 |
| - <name>Sébastien Doeraene</name> |
39 |
| - <url>https://github.com/sjrd/</url> |
40 |
| - </developer> |
41 |
| - <developer> |
42 |
| - <id>gzm0</id> |
43 |
| - <name>Tobias Schlatter</name> |
44 |
| - <url>https://github.com/gzm0/</url> |
45 |
| - </developer> |
46 |
| - <developer> |
47 |
| - <id>nicolasstucki</id> |
48 |
| - <name>Nicolas Stucki</name> |
49 |
| - <url>https://github.com/nicolasstucki/</url> |
50 |
| - </developer> |
51 |
| - </developers> |
52 |
| - ), |
53 |
| - pomIncludeRepository := { _ => false } |
| 34 | + pomIncludeRepository := { _ => false }, |
| 35 | + |
| 36 | + publishTo in ThisBuild := sonatypePublishToBundle.value, |
| 37 | + publishArtifact in Test := false, |
| 38 | + publishArtifact in (Compile, packageDoc) := true, |
| 39 | + publishArtifact in (Compile, packageSrc) := true, |
| 40 | + sonatypeTimeoutMillis := 3 * 60 * 60 * 1000, |
| 41 | + publishConfiguration := publishConfiguration.value.withOverwrite(true), |
| 42 | + publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true), |
| 43 | + publishArtifact in packageDoc := false, |
| 44 | + sources in (Compile, doc) := Seq.empty, |
| 45 | + releasePublishArtifactsAction := PgpKeys.publishSigned.value, |
| 46 | + releaseProcess := Seq[ReleaseStep]( |
| 47 | + checkSnapshotDependencies, |
| 48 | + inquireVersions, |
| 49 | + setReleaseVersion, |
| 50 | + commitReleaseVersion, |
| 51 | + runClean, |
| 52 | + releaseStepCommandAndRemaining("+publishSigned"), |
| 53 | + releaseStepCommand("sonatypeBundleRelease"), |
| 54 | + setNextVersion, |
| 55 | + commitNextVersion |
| 56 | + ) |
54 | 57 | )
|
55 | 58 |
|
56 | 59 | lazy val root: Project = project.in(file(".")).
|
@@ -83,5 +86,5 @@ lazy val `test-project`: Project = project.
|
83 | 86 | enablePlugins(ScalaJSJUnitPlugin).
|
84 | 87 | settings(
|
85 | 88 | scalaJSUseMainModuleInitializer := true,
|
86 |
| - jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv() |
| 89 | + jsEnv := new net.exoego.jsenv.jsdomnodejs.JSDOMNodeJSEnv() |
87 | 90 | )
|
0 commit comments