Re-publishing artifacts in SBT

sbt

SBT does not allow re-publishing artifacts with the same version unless it is a snapshot version. A snapshot version ends with the -SNAPSHOT suffix, such as 0.1.0-SNAPSHOT. Re-publishing, which …

Read more →

How I SBT - VII

scalasbtseries

This post is the final part of the series on SBT. I hope I covered everything needed to break the ice and change the perspective on SBT. I have touched on most ingredients you need to write a decent …

Read more →

How I SBT - VI

scalasbtseries

I had planned to finish the series with this post. But Plugin s wouldn’t let me. I am going to show you how to write/publish a SBT project that is a Plugin, and I will show a nifty trick. It is …

Read more →

How I SBT - V

scalasbtseries

So far, we have everything we need to write the build definition for a single project. Today, we’ll see another powerful feature of SBT: Multi-module builds.

Read more →

How I SBT - IV

scalasbtseries

Previously, we discussed Plugin s. Today, let us see how to better organize build code. How I SBT - build.sbt How I SBT - Settings & Tasks How I SBT - Plugins How I SBT - Build Code Organization …

Read more →

How I SBT - III

scalasbtseries

Previously, we discussed how to quickly write a simple build.sbt without fuss. We briefly understood how it is processed by SBT along with Settings and Tasks. We did that without having to know about …

Read more →

How I SBT - II

scalasbtseries

Previously, I showed you how to write a SBT build definition without knowing much at all. Neither did I talk about simple things like directory structure nor about advanced things like scope or axis, …

Read more →

How I SBT - I

scalasbtseries

Contrary to the unpopular opinions that it is hard and clumsy, SBT, the de facto build tool for Scala, is one of the best. Ease comes with familiarity. Unfortunately, there aren’t many …

Read more →

Tagged Types & Implicit Resolution

scalasbttagged-typesimplicit

Last time, I wrote about different ways of declaring implicits, which is a prelude to this post. Knowledge of different ways of declaring implicits is good for general understanding on the subject, …

Read more →

Cross-JDK Compilation in SBT

scalasbt

Recently, I had to cross-compile a bunch of Scala library repositories for JDK 11 and JDK 17. I was hoping SBT would natively support specifying the related configuration in build.sbt similar to …

Read more →