Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
sbt-uglifier
Search
Okada Haruki
March 17, 2018
Technology
0
1k
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
1.1k
HyperLogLog is interesting
ocadaruma
3
650
A Redis compatible HLL implementation in Java
ocadaruma
0
230
Sparkが社内で流行ってきた話
ocadaruma
4
810
Other Decks in Technology
See All in Technology
Garoon 開発チーム / Garoon development team
cybozuinsideout
PRO
2
2.9k
「手動オペレーションに定評がある」と言われた私が心がけていること / phpcon_odawara2024
blue_goheimochi
2
320
少数チームで挑む: SwiftUI, TCA, KMPを用いた 新規動画配信アプリ 「ABEMA Live」の開発について
tomu28
0
530
Hands-on / Kaname Frusawa / Cloud Compare Users Meetup 2024 at University of Tokyo on April 17
paraworld
2
470
NLP2024 参加報告LT ~RAGの生成評価と懇親戦略~ / nlp2024_attendee_presentation_LT_masuda
taro_masuda
1
190
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
680
Algyan イベント振り返り
linyixian
0
180
PHP"オレ"カンファレンスの告知
ysknsid25
0
350
"好き"との生活/Regularly update profile with GitHub Actions
judeeeee
0
150
[2024年3月版] Databricksのシステムアーキテクチャ
databricksjapan
8
1.9k
コードを書く隙間を見つけて生きていく技術/Findy 思考の現在地
fujiwara3
24
4.9k
HEXA OSINT CTF V3 作戦会議
meow_noisy
0
110
Featured
See All Featured
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
What’s in a name? Adding method to the madness
productmarketing
PRO
15
2.6k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
Adopting Sorbet at Scale
ufuk
67
8.6k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
Practical Orchestrator
shlominoach
181
9.7k
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
What the flash - Photography Introduction
edds
64
11k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
39
4.4k
Making the Leap to Tech Lead
cromwellryan
123
8.5k
Raft: Consensus for Rubyists
vanstee
132
6.2k
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