Skip to content

Commit

Permalink
Assembly integration
Browse files Browse the repository at this point in the history
  • Loading branch information
myedibleenso committed Oct 6, 2016
1 parent a108976 commit 3fd9bba
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 418 deletions.
21 changes: 0 additions & 21 deletions assembly/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion assembly/.sbtopts

This file was deleted.

9 changes: 0 additions & 9 deletions assembly/.travis.yml

This file was deleted.

201 changes: 0 additions & 201 deletions assembly/LICENSE

This file was deleted.

12 changes: 3 additions & 9 deletions assembly/README.md
@@ -1,6 +1,3 @@
[![Build Status](https://travis-ci.org/clulab/reach-assembly.svg?branch=master)](https://travis-ci.org/clulab/reach-assembly)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.clulab/reach-assembly_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.clulab/reach-assembly_2.11)

`reach-assembly`
=====

Expand All @@ -21,9 +18,6 @@ For more details on the sieve-based assembly system, please refer to the followi
}
```

# Licensing
All our own code is licensed under Apache License Version 2.0. **However, some of the libraries used here, most notably CoreNLP, are GPL v2.** If `BioNLPProcessor` is not removed from this package, technically our whole code becomes GPL v2 since `BioNLPProcessor` builds on Stanford's `CoreNLP` functionality. Soon, we will split the code into multiple components, so licensing becomes less ambiguous.

# Changes
+ **0.0.1** - Assembly system from `reach` v1.3.2
+ [more...](CHANGES.md)
Expand Down Expand Up @@ -58,11 +52,11 @@ More publications from the Reach project are available [here](https://github.com

This software requires Java 1.8.

The `jar` is available on Maven Central. To use, simply add the following dependency to your `build.sbt`:
The `jar` is available on Maven Central. To use, simply add the following dependency to your `build.sbt` (NOTE: replace yourVersion with the version you wish to use):

```scala
libraryDependencies ++= Seq(
"org.clulab" %% "reach" % "1.3.2"
"org.clulab" %% "reach-assembly" % "yourVersion"
)
```

Expand All @@ -78,7 +72,7 @@ Add the generated jar files under `target/` to your `$CLASSPATH`, along with the
You can run interactively explore assembly output for various snippets of text using the assembly shell:

```scala
sbt "runMain org.clulab.assembly.AssemblyShell"
sbt "runMain org.clulab.reach.assembly.AssemblyShell"
```

# Modifying the code
Expand Down
103 changes: 5 additions & 98 deletions assembly/build.sbt
@@ -1,99 +1,16 @@
import ReleaseTransformations._

name := "reach-assembly"

organization := "org.clulab"

scalaVersion := "2.11.8"

scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")

testOptions in Test += Tests.Argument("-oD")

parallelExecution in Test := false

// forward sbt's stdin to forked process
connectInput in run := true

// don't show output prefix
outputStrategy := Some(StdoutOutput)

//
// publishing settings
//

// these are the steps to be performed during release
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
ReleaseStep(action = Command.process("publishSigned", _)),
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
)

// publish to a maven repo
publishMavenStyle := true

// the standard maven repository
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")
}

// let’s remove any repositories for optional dependencies in our artifact
pomIncludeRepository := { _ => false }

// mandatory stuff to add to the pom for publishing
pomExtra := (
<url>https://github.com/clulab/reach-assembly</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/clulab/reach-assembly</url>
<connection>https://github.com/clulab/reach-assembly</connection>
</scm>
<developers>
<developer>
<id>ghp</id>
<name>Gus Hahn-Powell</name>
<email>gushahnpowell@gmail.com</email>
</developer>
</developers>)

//
// end publishing settings
//

//resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

libraryDependencies ++= {
val akkaV = "2.4.3"
Seq(
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.clulab" %% "reach" % "1.3.2",
"org.clulab" %% "processors-main" % "6.0.0",
"org.clulab" %% "processors-corenlp" % "6.0.0",
"org.clulab" %% "processors-models" % "6.0.0",
"com.typesafe" % "config" % "1.2.1",
"commons-io" % "commons-io" % "2.4",
//"com.typesafe" % "config" % "1.2.1",
//"commons-io" % "commons-io" % "2.4",
// logging
"ch.qos.logback" % "logback-classic" % "1.1.7",
"com.typesafe.scala-logging" %% "scala-logging" % "3.4.0",
//"ch.qos.logback" % "logback-classic" % "1.1.7",
//"com.typesafe.scala-logging" %% "scala-logging" % "3.4.0",
// graph-based CSP
"org.choco-solver" % "choco-graph" % "3.3.0",
// Twirl
Expand All @@ -109,14 +26,4 @@ libraryDependencies ++= {
"com.typesafe.akka" %% "akka-slf4j" % akkaV,
"com.typesafe.akka" %% "akka-http-xml-experimental" % akkaV
)
}

// settings for building project website

site.settings
// include documentation
site.includeScaladoc()

ghpages.settings

git.remoteRepo := "git@github.com:clulab/reach-assembly.git"
}
1 change: 0 additions & 1 deletion assembly/project/build.properties

This file was deleted.

0 comments on commit 3fd9bba

Please sign in to comment.