Skip to content

Commit 56dda62

Browse files
committed
Added changes so it can be published
Changed version to M1 Added a license (BSD Clause 3 for now)
1 parent eff751e commit 56dda62

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

LICENSE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) 2016, Matthew de Detrich
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
10+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@
66
Two minimal implementations of a [JSON](https://en.wikipedia.org/wiki/JSON) AST, one that is designed for
77
typical use and another that is designed for performance.
88

9+
## Usage
10+
11+
The artifact is currently published under my own personal sonatype. This will change once it gets
12+
accepted by the SLIP process.
13+
14+
```scala
15+
"org.mdedetrich" %% "scala-json-ast" % "1.0.0-M1"
16+
```
17+
18+
If you are using Scala.js, you need to do
19+
20+
```scala
21+
"org.mdedetrich" %%% "scala-json-ast" % "1.0.0-M1"
22+
```
23+
924
## Standard AST
1025
Implementation is in `scala.json.ast.JValue`
1126

build.sbt

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ lazy val root = project.in(file(".")).
1818
lazy val scalaJsonAST = crossProject.in(file(".")).
1919
settings(
2020
name := "scala-json-ast",
21-
version := "1.0.0-SNAPSHOT",
21+
version := "1.0.0-M1",
22+
organization := "org.mdedetrich",
2223
scalacOptions ++= Seq(
2324
"-encoding", "UTF-8",
2425
"-deprecation", // warning and location for usages of deprecated APIs
@@ -31,6 +32,35 @@ lazy val scalaJsonAST = crossProject.in(file(".")).
3132
"-Ywarn-inaccessible",
3233
"-Ywarn-dead-code"
3334
),
35+
publishMavenStyle := true,
36+
publishTo := {
37+
val nexus = "https://oss.sonatype.org/"
38+
if (isSnapshot.value)
39+
Some("snapshots" at nexus + "content/repositories/snapshots")
40+
else
41+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
42+
},
43+
publishArtifact in Test := false,
44+
pomIncludeRepository := { _ => false },
45+
pomExtra := <url>https://github.com/mdedetrich/scala-json-ast</url>
46+
<licenses>
47+
<license>
48+
<name>BSD 3-Clause</name>
49+
<url>https://opensource.org/licenses/BSD-3-Clause</url>
50+
<distribution>repo</distribution>
51+
</license>
52+
</licenses>
53+
<scm>
54+
<url>git@github.com:mdedetrich/scala-json-ast.git</url>
55+
<connection>scm:git:git@github.com:mdedetrich/scala-json-ast.git</connection>
56+
</scm>
57+
<developers>
58+
<developer>
59+
<id>mdedetrich</id>
60+
<name>Matthew de Detrich</name>
61+
<email>mdedetrich@gmail.com</email>
62+
</developer>
63+
</developers>,
3464
scalacOptions += {
3565
scalaVersion.value match {
3666
case v if v.startsWith("2.10.") => "-target:jvm-1.6"

0 commit comments

Comments
 (0)