<commit_before>import com.typesafe.sbt.SbtNativePackager._
import com.typesafe.sbt.packager.Keys._

name := "docserv"

version := "0.31"

libraryDependencies ++= Seq(
	"org.slf4j" % "slf4j-api" % "1.7.5",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.core" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.document" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.template" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.document.odt" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.document.ods" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.template.velocity" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.template.freemarker" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.converter" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.converter.odt.odfdom" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.itext.extension" % "1.0.3",
	"org.springframework" % "spring-context" % "3.2.4.RELEASE",
	"commons-io" % "commons-io" % "2.4",
	"commons-collections" % "commons-collections" % "3.2.1",
	"commons-lang" % "commons-lang" % "2.4",
	"commons-configuration" % "commons-configuration" % "1.8",
	"oro" % "oro" % "2.0.8",
	"com.lowagie" % "itext" % "2.1.7",
	"org.odftoolkit" % "odfdom-java" % "0.8.7",
	"xerces" % "xercesImpl" % "2.9.1",
	"xml-apis" % "xml-apis" % "1.3.04",
	"joda-time" % "joda-time" % "2.1",
	"com.fasterxml.jackson.module" % "jackson-module-mrbean" % "2.1.2",
	"cglib" % "cglib" % "2.2.2",
	"commons-beanutils" % "commons-beanutils" % "1.8.3",
	// used only during test for verification
	"com.itextpdf" % "itextpdf"  % "5.4.0" % "test"
)

def javaVersion: String = {
	val ver = System.getenv("DOCSERV_JAVA_VERSION");
	if (ver == null) {
		"1.7";
	} else {
		ver;
	}
}

javacOptions ++= Seq("-source", javaVersion, "-target", javaVersion)

play.Project.playJavaSettings

seq(sonar.settings :_*)

packageArchetype.java_server

packageDescription in Linux := "Docserv generates reports from Json data using xdocreport and libreoffice"

packageSummary in Linux := "Docserv is a report generator"

maintainer in Debian := "Altrusoft AB <<EMAIL>>"<commit_msg>Added configuration needed for repository publishing<commit_after>import com.typesafe.sbt.SbtNativePackager._
import com.typesafe.sbt.packager.Keys._

name := "docserv"

organization := "se.altrusoft"

version := "0.31"

libraryDependencies ++= Seq(
	"org.slf4j" % "slf4j-api" % "1.7.5",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.core" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.document" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.template" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.document.odt" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.document.ods" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.template.velocity" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.template.freemarker" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.converter" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.converter.odt.odfdom" % "1.0.3",
	"fr.opensagres.xdocreport" % "fr.opensagres.xdocreport.itext.extension" % "1.0.3",
	"org.springframework" % "spring-context" % "3.2.4.RELEASE",
	"commons-io" % "commons-io" % "2.4",
	"commons-collections" % "commons-collections" % "3.2.1",
	"commons-lang" % "commons-lang" % "2.4",
	"commons-configuration" % "commons-configuration" % "1.8",
	"oro" % "oro" % "2.0.8",
	"com.lowagie" % "itext" % "2.1.7",
	"org.odftoolkit" % "odfdom-java" % "0.8.7",
	"xerces" % "xercesImpl" % "2.9.1",
	"xml-apis" % "xml-apis" % "1.3.04",
	"joda-time" % "joda-time" % "2.1",
	"com.fasterxml.jackson.module" % "jackson-module-mrbean" % "2.1.2",
	"cglib" % "cglib" % "2.2.2",
	"commons-beanutils" % "commons-beanutils" % "1.8.3",
	// used only during test for verification
	"com.itextpdf" % "itextpdf"  % "5.4.0" % "test"
)

def javaVersion: String = {
	val ver = System.getenv("DOCSERV_JAVA_VERSION");
	if (ver == null) {
		"1.7";
	} else {
		ver;
	}
}

javacOptions ++= Seq("-source", javaVersion, "-target", javaVersion)

play.Project.playJavaSettings

seq(sonar.settings :_*)

packageArchetype.java_server

packageDescription in Linux := "Docserv generates reports from Json data using xdocreport and libreoffice"

packageSummary in Linux := "Docserv is a report generator"

maintainer in Debian := "Altrusoft AB <<EMAIL>>"

publishTo := Some(Resolver.file("file",  new File( "target/repo" )) )
{'fraction_non_alphanumeric': 0.20154705629565964, 'fraction_numerical': 0.035238504512247526, 'mean_word_length': 4.482921083627797, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6214939', 'n_tokens_mistral': 2025, 'n_tokens_neox': 1987, 'n_words': 295}