Skip to content

Commit

Permalink
nexus release adoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gni committed Aug 4, 2019
1 parent f990811 commit 2ce0b72
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@ Stochastic Outlier Selection in Scala
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/df5fc23eb5b74795b62d0daa52436a0d)](https://www.codacy.com/app/Gnni/scala-stochastic-outlier-selection?utm_source=github.com&utm_medium=referral&utm_content=Gnni/scala-stochastic-outlier-selection&utm_campaign=Badge_Grade)
[![Build Status](https://travis-ci.org/Gnni/scala-stochastic-outlier-selection.svg?branch=master)](https://travis-ci.org/Gnni/scala-stochastic-outlier-selection)
[![Coverage Status](https://coveralls.io/repos/github/Gnni/scala-stochastic-outlier-selection/badge.svg?branch=master)](https://coveralls.io/github/Gnni/scala-stochastic-outlier-selection?branch=master)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/frl.driesprong/spark-stochastic-outlier-selection_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/frl.driesprong/spark-stochastic-outlier-selection_2.11)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.gnni/scala-stochastic-outlier-selection_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.gnni/scala-stochastic-outlier-selection_2.11)

Adapted version of the implementation for Apache Spark. This versions
aims to perform Stochastic Outlier Selection (SOS) using Scala only,
Expand Down
31 changes: 2 additions & 29 deletions build.sbt
@@ -1,7 +1,6 @@

name := "Scala Stochastic Outlier Selection"

version := "0.1-SNAPSHOT"
version := "0.1.0"

publishTo := {
val nexus = "https://oss.sonatype.org/"
Expand All @@ -14,34 +13,8 @@ publishTo := {
lazy val core = (project in file("."))
.settings(organization := "com.github.gnni")

publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }

pomExtra := (
<url>https://github.com/Gnni/scala-stochastic-outlier-selection</url>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:Gnni/scala-stochastic-outlier-selection.git</connection>
<developerConnection>scm:git:git@github.com:Gnni/scala-stochastic-outlier-selection.git</developerConnection>
<url>git@github.com:Gnni/scala-stochastic-outlier-selection.git</url>
</scm>
<developers>
<developer>
<name>Guenter Hesse</name>
<email>guenter.hesse@hpi.de</email>
<url>https://hpi.de/plattner/people/phd-students/guenter-hesse.html</url>
<organization>Hasso Plattner Institute, University of Potsdam</organization>
<organizationUrl>https://hpi.de</organizationUrl>
<role>PhD student</role>
<timezone>Europe/Berlin</timezone>
</developer>
</developers>)
useGpg := true

scalaVersion := "2.11.11"

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
@@ -1 +1 @@
sbt.version=1.0.4
sbt.version=1.2.8
34 changes: 34 additions & 0 deletions publish.sbt
@@ -0,0 +1,34 @@
ThisBuild / organization := "com.github.gnni"
ThisBuild / organizationName := "Hasso Plattner Institute, University of Potsdam"
ThisBuild / organizationHomepage := Some(url("https://hpi.de"))

ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/Gnni/scala-stochastic-outlier-selection"),
"scm:git@github.com:Gnni/scala-stochastic-outlier-selection.git"
)
)
ThisBuild / developers := List(
Developer(
id = "guenterhesse",
name = "Guenter Hesse",
email = "guenter.hesse@hpi.de",
url = url("https://hpi.de/plattner/people/phd-students/guenter-hesse.html")
)
)

ThisBuild / description := "Scala version of Stochastic Outlier Selection"
ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
ThisBuild / homepage := Some(url("https://github.com/Gnni/scala-stochastic-outlier-selection"))

// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true
ThisBuild / publishArtifact in Test := false

0 comments on commit 2ce0b72

Please sign in to comment.