Skip to content

Commit

Permalink
Added better notes, fixed publication to Sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
cascala committed Nov 19, 2019
1 parent 019d0c9 commit cae9ad3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ target/
lib_managed/
src_managed/
project/boot/
project/build.properties
project/plugins/project/
project/project
scalastyle-config.xml

# Scala-IDE specific
Expand Down
15 changes: 9 additions & 6 deletions NOTES
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
Publication to Sonatype

#Set correct version in built.sbt, following pattern 1.2.3
#sbt publishSigned
#Then go to https://oss.sonatype.org, find the repo, 'Close' it, then 'Release'
#For best practice: tag repo on github with version using the same format "1.2.3"
Set the correct version in built.sbt, following pattern 0.1.2
>sbt publishSigned

Then go to https://oss.sonatype.org, find the repo, 'Close' it, then 'Release'
As a best practice, tag the repo on github with version using the same format "0.1.2"

For Docker:
>docker build -t galileo:0.1.1 .
You can use something else instead of 0.1.1, or something else instead of galileo: It's just the name of the target
>docker build -t galileo:0.1.2 .
You can use something else instead of 0.1.2, or something else instead of galileo: It's just the name of the target
>docker run -it galileo


6 changes: 2 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@ libraryDependencies += "org.scalatest" % "scalatest_2.12" % "3.0.8" % "test"
libraryDependencies += "org.jline" % "jline" % "3.13.1"
libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"

// Publication to Sonatype Ivy - artefacts
// Maven
resolvers += "Artima Maven Repository" at "http://repo.artima.com/releases"
resolvers += Resolver.url("scalasbt", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)
resolvers += Resolver.url("sbt-assembly", new URL("https://dl.bintray.com/sbt/sbt-plugin-releases")) (Resolver.ivyStylePatterns)

//lazy val util = enablePlugins(AssemblyPlugin).settings(site.settings)

// Publication to Sonatype Ivy - artefacts
publishMavenStyle := true

useGpg := false
publishTo := {
val nexus = "https://oss.sonatype.org/"
if ( isSnapshot.value )
Expand Down
2 changes: 2 additions & 0 deletions project/gpg.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
addSbtPlugin( "com.jsuereth" % "sbt-pgp" % "2.0.0" )
credentials += Credentials(Path.userHome / ".sbt" / "sonatype.sbt")

0 comments on commit cae9ad3

Please sign in to comment.