|
1 | 1 | import sbtcrossproject.CrossPlugin.autoImport.{CrossType, crossProject}
|
2 | 2 | import xerial.sbt.Sonatype._
|
3 | 3 |
|
4 |
| -val commonSettings = Def.settings( |
5 |
| - // publish to the sonatype repository |
6 |
| - publishTo := sonatypePublishTo.value |
7 |
| -) |
8 |
| - |
9 |
| -ThisBuild / publishTo := sonatypePublishTo.value |
10 |
| -ThisBuild / name := "url-dsl" |
11 |
| -ThisBuild / organization := "be.doeraene" |
12 |
| -ThisBuild / sonatypeProjectHosting := Some(GitHubHosting("sherpal", "url-dsl", "antoine.doeraene@gmail.com")) |
13 |
| -ThisBuild / description := "A tiny library for parsing and creating urls in a type-safe way" |
14 |
| -ThisBuild / licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.php")) |
15 |
| -//ThisBuild / homepage := Some(new java.net.URL("https://github.com/sherpal/url-dsl")) |
16 |
| -//ThisBuild / developers := List( |
17 |
| -// Developer( |
18 |
| -// "sherpal", |
19 |
| -// "Antoine Doeraene", |
20 |
| -// "antoine.doeraene@gmail.com", |
21 |
| -// new java.net.URL("https://github.com/sherpal") |
22 |
| -// ) |
23 |
| -//) |
24 |
| -//ThisBuild / homepage := Some(url("https://github.com/sherpal/url-dsl")) |
25 |
| - |
26 |
| -sonatypeProjectHosting := Some(GitHubHosting("sherpal", "url-dsl", "antoine.doeraene@gmail.com")) |
27 |
| -organization := "be.doeraene" |
28 |
| - |
29 |
| -inThisBuild( |
30 |
| - Def.settings( |
31 |
| - version := "0.4.1", |
32 |
| - crossScalaVersions := Seq("3.2.0", "2.13.5", "2.12.13"), |
33 |
| - scalaVersion := crossScalaVersions.value.head, |
34 |
| - scalacOptions ++= Seq("-feature", "-deprecation") |
35 |
| - ) |
36 |
| -) |
| 4 | +inThisBuild(List( |
| 5 | + name := "url-dsl", |
| 6 | + organization := "be.doeraene", |
| 7 | + description := "A tiny library for parsing and creating urls in a type-safe way", |
| 8 | + homepage := Some(url("https://github.com/sherpal/url-dsl")), |
| 9 | + licenses := List("MIT" -> url("http://www.opensource.org/licenses/mit-license.php")), |
| 10 | + developers := List( |
| 11 | + Developer( |
| 12 | + "sherpal", |
| 13 | + "Antoine Doeraene", |
| 14 | + "antoine.doeraene@gmail.com", |
| 15 | + url("https://github.com/sherpal") |
| 16 | + ) |
| 17 | + ), |
| 18 | + crossScalaVersions := Seq("3.2.0", "2.13.5", "2.12.13"), |
| 19 | + scalaVersion := crossScalaVersions.value.head, |
| 20 | + scalacOptions ++= Seq("-feature", "-deprecation"), |
| 21 | +)) |
37 | 22 |
|
38 | 23 | lazy val `shared` = crossProject(JSPlatform, JVMPlatform)
|
39 | 24 | .crossType(CrossType.Pure)
|
40 | 25 | .in(file("shared"))
|
41 | 26 | .settings(
|
42 |
| - name := "url-dsl", |
43 |
| - publishTo := sonatypePublishTo.value, |
44 |
| - sonatypeProjectHosting := Some(GitHubHosting("sherpal", "url-dsl", "antoine.doeraene@gmail.com")), |
45 |
| - organization := "be.doeraene", |
46 |
| - description := "A tiny library for parsing and creating urls in a type-safe way", |
47 |
| - licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.php")), |
48 | 27 | libraryDependencies ++= Seq(
|
49 | 28 | "org.scalatest" %%% "scalatest" % "3.2.9" % "test",
|
50 | 29 | "org.scalacheck" %%% "scalacheck" % "1.15.4" % "test"
|
|
0 commit comments