Skip to content

Commit

Permalink
some configuration for build, added name, upgraded sbt-launch to 0.11…
Browse files Browse the repository at this point in the history
….3 and added 2 packagers: assembly plugin and proguard plugin
  • Loading branch information
eiennohito committed May 14, 2012
1 parent 7fb357e commit 088eb79
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import sbt._
import sbtassembly.Plugin._
import AssemblyKeys._

organization := "ru.dijkstra"

Expand All @@ -18,3 +20,12 @@ libraryDependencies ++=
libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-core" % "0.2.0"

libraryDependencies += "com.github.scala-incubator.io" %% "scala-io-file" % "0.2.0"

test in assembly := {}

mainClass in assembly := Some("ru.dijkstra.UtfChecker")

seq(ProguardPlugin.proguardSettings :_*)

proguardOptions += "-keep class ru.dijkstra.** { *; }"

12 changes: 12 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sbt._
import Keys._
import sbtassembly.Plugin._

/**
* @author eiennohito
* @since 14.05.12
*/
object UtfCheckerBbuild extends Build {
lazy val project = Project("checker", file("."), settings = Project.defaultSettings ++ assemblySettings)
}

7 changes: 7 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.1")

resolvers += "eiennohito's repo" at "http://eiennohito.github.com/maven/"

libraryDependencies <+= sbtVersion(v => "com.github.siasia" %% "xsbt-proguard-plugin" % (v+"-0.1.2"))
Binary file modified sbt-launch.jar
Binary file not shown.

0 comments on commit 088eb79

Please sign in to comment.