Instead of ProGuard, I use the OneJar plugin to create executable jars with sbt-onejar. It's a lot simpler since you don't have to mess with a bunch of options like ProGuard.
I am not sure what
ProguardProject provides. But I think you can try
ProguardKeys.options in Proguard ++= Seq( ProguardOptions.keepMain("com.you.main.class") )
This works for me.
- sbt proguard plugin don't place my classes to jar
- How to exclude jar in final sbt assembly plugin
- How to obfuscate fat Scala Jar with Proguard and SBT
- SBT how to use classes from Build.sbt inside plugin Task execution
- SBT Plugin in an unmanaged jar file
- SBT Assembly Plugin on signed jar files
- SBT Assembly remove classes from another JAR
- How to create a custom package task to jar a subset of classes in SBT
- Proguard Plugin for SBT Not Working?
- AbstractMethodError when running standalone jar built with SBT and ProGuard
- Find repository where sbt finds a plugin or JAR
- SBT package produces empty JAR after enhancing compiled classes
- Where to place downloaded ScalaTest jar so sbt uses it across projects?
- Sbt assembly plugin generates an empty jar
- How to build an Uber JAR (Fat JAR) using SBT within IntelliJ IDEA?
- how do I get sbt to gather all the jar files my code depends on into one place?
- IntelliJ IDEA - sbt plugin - 'Expression type Def.Setting[...] must conform DslEntry in sbt file'
- How to add Jar libraries to an IntelliJ Idea SBT Scala project?
- SBT project for java executable jar
- How do you share classes between test configurations using SBT
- how to auto-reload changed scala classes into SBT REPL
- Include Dependencies in JAR using SBT package
- maven-shade like plugin for SBT
- SBT Compiler Plugin as Transitive Dependency
- SBT PublishM2 do not refresh snapshot jar in local maven repo
- Conditionally include provided scope dependencies with sbt and the universal plugin
- How to share sbt plugin configuration between multiple projects?
- How to include test classes and test dependencies in sbt asssembly
- Including a Spark Package JAR file in a SBT generated fat JAR
- SBT ProGuard plugin: OutOfMemoryError, how to increase heapspace?
More Query from same tag
- Table is not Found while testing with H2Database
- glClearColor display ony a black screen
- Scala Play json : functionnal operation error
- Why am I getting Match Error?
- How to communicate between threads in Scala?
- scala- Read file from S3 bucket
- SQLException: unknown database with SQLite and Scala
- What are the advantages or disadvantages of declaring function/method in companion objects versus declaring them in traits?
- Scala question about examples in "Programming Scala" book
- What's the best way to create a dynamically growing array in Scala?
- How to explode Spark dataframe Array field with Unique identifiers in Scala?
- Single quotes cause trouble while filtering in Slick
- Underscore in Named Arguments
- Is there a Haskell equivalent of Scala's Iterable.maxBy?
- JVM: How to manage off-heap memory created by JNI
- How to write an If-Else loop involving multiple conditions in an idiomatic Scala way?
- Custom spray.io directive to validate request header value
- Filtering RDD with CustomObject, Type Mismatch
- Not a member of Product with Serializable
- Efficient way to match case object in scala
- How to test Kafka Consumer with Embedded-Kafka-lib, exactly with 'withRunningKafka'?
- Get only the Header using the WS library from play framework 2.2.1. (Scala)
- implicit apply method in scala class
- Kafka Spark Structured Streaming with SASL_SSL authentication
- compiler error whilst accessing subclass's methods in Scala object
- why 2 connections open when calling MongoClient instance in mongodb
- Iterator[Something] to Iterator[Seq[Something]]
- Slick 3: how to drop and take on collections with some relations
- Spark - SQL : value implicits is not a member of org.apache.spark.sql.SQLContext
- Scala compiler doesn't behave as expected with use of an implicit val set to null