Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
sbt-uglifier
Okada Haruki
March 17, 2018
Technology
0
870
sbt-uglifier
Lightning Talk @ ScalaMatsuri 2018 After party
Okada Haruki
March 17, 2018
Tweet
Share
More Decks by Okada Haruki
See All by Okada Haruki
HyperLogLog feature of ClickHouse
ocadaruma
0
700
HyperLogLog is interesting
ocadaruma
3
580
A Redis compatible HLL implementation in Java
ocadaruma
0
180
Sparkが社内で流行ってきた話
ocadaruma
4
780
Other Decks in Technology
See All in Technology
GraphQLスキーマ設計の勘所
yukukotani
26
5.9k
AI Services 概要 / AI Services overview
oracle4engineer
PRO
0
160
ML PM, DS PMってどんな仕事をしているの?
line_developers
PRO
1
210
SignalR を使ったアプリケーション開発をより快適に!
nenonaninu
0
210
UIFlowの2.0がやってきた! / ビジュアルプログラミングIoTLT vol.13
you
0
220
LINEにおけるネットワーク自動化チーム / Network Automation Team in LINE
line_developers
PRO
0
240
MoT/コネヒト/Kanmu が語るプロダクト開発xデータ分析 - 分析から機械学習システムの開発まで一人で複数ロールを担う大変さ
masatakashiwagi
2
570
NGINXENG JP#2 - 3-NGINX Plus・プロダクトのアップデート
hiropo20
0
160
CEXやDEXに依存しないブロックチェーン取引について考える
sbtechnight
0
310
WebLogic Server for OCI 概要
oracle4engineer
PRO
3
840
アムロは成長しているのか AIから分析する
miyakemito
1
340
PCI DSS に準拠したシステム開発
yutadayo
0
250
Featured
See All Featured
Producing Creativity
orderedlist
PRO
335
37k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
2
390
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
It's Worth the Effort
3n
177
26k
Building Adaptive Systems
keathley
27
1.3k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
13
5.4k
How GitHub (no longer) Works
holman
298
140k
A designer walks into a library…
pauljervisheath
198
16k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
349
27k
The Brand Is Dead. Long Live the Brand.
mthomps
48
2.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
643
54k
Transcript
sbt-ugli er Lightning Talk @ ScalaMatsuri 2018 After party
About Me Haruki Okada twitter/github: @ocadaruma Scala/Java developer
What is sbt-ugli er ? https://github.com/ocadaruma/sbt-ugli er ≠ sbt-uglify Ugli
es Scala sources
Use cases ?
How does it work ? Surround each Scala source with
package block Replace newline with whitespace/semicolon Concat all sources
Example Try to uglify scala-csv https://github.com/tototoshi/scala-csv addSbtPlugin("com.mayreh" % "sbt-uglifier" %
"1.0") $ sbt > uglify
Result
Result > test [info] All tests passed. [info] Passed: Total
60, Failed 0, Errors 0, Passed 60
Example Try to uglify nscala-time https://github.com/nscala-time/nscala-time $ sbt > uglify
> test [info] Failed: Total 21, Failed 0, Errors 18, Passed 3 Exception: java.lang.NoSuchMethodError: com.github.nscala_time. ...
Example Seems a bug of Scala https://github.com/scala/bug/issues/10783
Conclusion Let's write a joke plugin and report issues