Skip to content

Commit

Permalink
- fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raisercostin committed Oct 28, 2014
1 parent b0e7d7c commit 2557c08
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
libraryDependencies ++= {
Seq(
"org.slf4j" % "slf4j-api" % "1.7.7"
,"org.slf4j" % "slf4j-simple" % "1.7.7"
//,"org.slf4j" % "slf4j-simple" % "1.7.7"
,"org.slf4j" % "slf4j-log4j12" % "1.7.7" % Test
//,"log4j" % "log4j" % "1.2.14"
,"log4j" % "log4j" % "1.2.14"
,"commons-io" % "commons-io" % "2.4"
,"org.apache.httpcomponents" % "httpclient" % "4.3.3"
,"commons-lang" % "commons-lang" % "2.6"
Expand Down Expand Up @@ -94,22 +94,20 @@ pomIncludeRepository := { _ => true}
//publishTo := Some(Resolver.file("Github Pages", Path.userHome /"repo" / "maven" asFile)(Patterns(true, Resolver.mavenStyleBasePattern)))
//publishTo := Some(Resolver.file("goose", new File("d:/Dropbox/public/libs"))(Patterns(true, Resolver.mavenStyleBasePattern)) )
publishTo := Some(Resolver.file("goose", new File("./target/publish"))(Patterns(true, Resolver.mavenStyleBasePattern)) )
/*
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")
}
//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")
//}

pomExtra := (
<scm>
<url>[email protected]:warrd/goose-fork.git</url>
<connection>scm:git:[email protected]:warrd/goose-fork.git</connection>
<url>git@github.com:raisercostin/goose.git</url>
<connection>scm:git:git@github.com:raisercostin/goose.git</connection>
</scm>
)
*/

EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/gravity/goose/Crawler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Crawler(config: Configuration) {
article.rawDoc = doc.clone

article.title = extractor.getTitle(article)
article.publishDate = config.publishDateExtractor.extract(doc)
article.publishDate = config.publishDateExtractor.extract(doc).toDate
article.additionalData = config.getAdditionalDataExtractor.extract(doc)
article.metaDescription = extractor.getMetaDescription(article)
article.metaKeywords = extractor.getMetaKeywords(article)
Expand Down

0 comments on commit 2557c08

Please sign in to comment.