Questions tagged [sbt-proguard]

11 questions
6
votes
1 answer

How to set-up the sbt-proguard plugin in Build.scala

I want to use the sbt-proguard plugin in my project, but I need to set it up in a Build.scala file. I read the documentation but there is just an example for the build.sbt file, which won't work in my case. I need to know how to configure the plugin…
maya.js
  • 1,147
  • 12
  • 25
3
votes
1 answer

how to use proguard toothpick rule?

I am using TP in my project. And I am Injecting some objects using TP. But when I applied the proguard rule in my application. It is working fine with debug mode But give null objects in release mode all the Objects I have injected through the…
2
votes
1 answer

How can I publish obfuscated with ProGuard jar using sbt?

I'm trying to publish obfuscated by ProGuard jar using sbt. I have this code so far, but it is not pushing obfuscated jar into the local ivy2 repo with sbt publish-local: artifact in (Proguard, ProguardKeys.proguard) ~= { art =>…
nosmo
  • 108
  • 7
1
vote
0 answers

How to package Scala 3 application using the "scopt" library with "Proguard"?

The moment I add a dependency on the scopt library to my Scala 3 application, I am no longer able to successfully package it using Proguard. Upon attempting to run an executable jar, I am only seeing the following error message: Exception in thread…
DJ Gruby
  • 159
  • 1
  • 2
  • 11
1
vote
1 answer

My javafx Code Obfuscated Successfully But now It is not running due to error in loading .fxml File from main method

I obfuscated my javafx code that contains .fxml files for view. After successful obfuscation when i run the jar file using command line, it shows the error in main method that the code is unable to load .fxml file. Please help
Ibrar
  • 11
  • 2
1
vote
1 answer

How do I tell SBT-proguard to mark scala-library as "provided"?

Is there any way to treat the "scala-library" JAR as provided using SBT 0.13.7? I'm using sbt-proguard to package my JAR, which is later loaded dynamically into an application that already has an appropriately versioned scala-library on the…
Rich Henry
  • 1,837
  • 15
  • 25
1
vote
2 answers

sbt-proguard issue with Java 1.8

I'm trying to get smaller scalar executable jar file with sbt-proguard. I added project/plugin.sbt these two lines of code: addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0") addSbtPlugin("com.typesafe.sbt" % "sbt-proguard" % "0.2.2") The…
prosseek
  • 182,215
  • 215
  • 566
  • 871
0
votes
1 answer

I am getting error when running sbt-proguard with playframework 2.7.3

I am getting this error when running sbt-proguard with playframework 2.7.3. [info] Reading program jar [/home/johnny/.ivy2/cache/com.typesafe.akka/akka-stream_2.13/jars/akka-stream_2.13-2.5.23.jar] (filtered) [error] Error: Can't read…
John
  • 2,633
  • 4
  • 19
  • 34
0
votes
1 answer

How to configure SBT to skip proguard task when some system property is given.

I am using sbt, sbt-native-packager and sbt-proguard to make packages for 3 environments such as dev, staging and production environments. What I would like to do is to be able to specify whether or not to use proguard to make a package. For…
buster84
  • 232
  • 2
  • 10
0
votes
1 answer

ProGuard (sbt-proguard) : "target/scala-2.10/proguard/merged/LICENSE" directory not merging

I am getting the following error. [info] Merging inputs before proguard... [error] /my/project/target/scala-2.10/proguard/merged/LICENSE (Is a directory) java.lang.RuntimeException: Failed to merge all inputs. Merge strategies can be used to resolve…
DynamicScope
  • 695
  • 9
  • 26
0
votes
1 answer

sbt-proguard You have to specify '-keep' options for the shrinking step

I am struggling to get the sbt-proguard plugin to work. I have a class library that I want to obfuscate but I cannot seem to get the plugin to output without the above error. I have specified the keep option, or at lease I think that I have, but I…
BLee W
  • 11
  • 2