Skip to content

Commit

Permalink
Registered maven central.
Browse files Browse the repository at this point in the history
  • Loading branch information
hossshy committed Jul 21, 2018
1 parent 33acf41 commit a1435bd
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 3 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,20 @@ https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob
val bytes: Array[Byte] = zip.zipToBytes()
```

That's all.
That's all.

## SBT

It is available for 2.11 or 2.12.

Please append it in your libraryDependencies :)

```scala
libraryDependencies ++= Seq(
"com.yuchesc" %% "sczip" % "0.8"
)
```

---

This software is released under the MIT License, see LICENSE.txt.
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name := "sczip"

version := "0.1"
version := "0.8"

organization := "com.yuchesc"

scalaVersion := "2.12.6"

libraryDependencies += "net.lingala.zip4j" % "zip4j" % "1.3.2"
crossScalaVersions := Seq("2.11.11", "2.12.6")
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
32 changes: 32 additions & 0 deletions sonatype.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(GitHubHosting("yuchesc", "sczip", "yuchesc@gmail.com"))

// workaround for avoiding gpg exceptions...
updateOptions := updateOptions.value.withGigahorse(false)

publishMavenStyle := true
publishArtifact in Test := false
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
licenses := Seq("MIT" -> url("http://www.opensource.org/licenses/mit-license.php"))
homepage := Some(url("https://github.com/yuchesc/sczip"))

scmInfo := Some(
ScmInfo(
url("https://github.com/yuchesc/sczip"),
"scm:git@github.com:yuchesc/sczip.git"
)
)

developers := List(
Developer(
id = "Yuchesc",
name = "Yuichiro Hoshi",
email = "yuchesc@gmail.com",
url = url("http://yuchesc.com")
)
)

0 comments on commit a1435bd

Please sign in to comment.