From Fedora Project Wiki

< SIGs‎ | bigdata‎ | packaging

Revision as of 16:26, 10 February 2014 by Willb (talk | contribs) (saving work; initial revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Building packages that use sbt

Overview

This is a quick guide to getting Fedora packages built with sbt. Since sbt uses Ivy for dependency resolution, you'll either need to construct a local Ivy repository as part of the build (for F20) or rely on xmvn's improved support for Ivy metadata (in F21 and above after xmvn 2.0 lands). For now, this guide covers building packages on F20 with the climbing-nemesis script.

General tips and tricks

sbt build files are either written in a domain-specific language (*.sbt files) or are general Scala code that incorporates sbt as a library. This means that patches against sbt builds are typically less brittle than patches against Ant build files, and it's more straightforward to carry Fedora-specific build patches as sed commands.

Helpful macros

Using climbing-nemesis