summaryrefslogtreecommitdiff
path: root/scripts/publish-module.gradle.kts
blob: 84ce57145c491e03ebae4aebf0459542b3987c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import com.github.skydoves.colorpicker.compose.Configuration

apply(plugin = "com.vanniktech.maven.publish")

rootProject.extra.apply {
  val snapshot = System.getenv("SNAPSHOT").toBoolean()
  val libVersion = if (snapshot) {
    Configuration.snapshotVersionName
  } else {
    Configuration.versionName
  }
  set("libVersion", libVersion)
}