Skip to content

Commit

Permalink
publishing: remove snapshot builds (#17)
Browse files Browse the repository at this point in the history
Remove snapshots as they are not supported from the gradle plugin
portal. Additionally, use the name `com.faire` as our user does not
support `com.faire.gradle`.
  • Loading branch information
Nava2 authored Aug 16, 2024
1 parent e11c034 commit 4be983a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/release-snapshot.yml

This file was deleted.

19 changes: 1 addition & 18 deletions build-targets-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,9 @@ plugins {
id("faire.gradle-plugin")
}

group = "com.faire.gradle"
group = "com.faire"
version = "0.0.0"

if (!providers.environmentVariable("RELEASE").isPresent) {
val gitSha = providers.environmentVariable("GITHUB_SHA")
.orElse(
provider {
// nest the provider, we don't want to invalidate the config cache for this
providers.exec { commandLine("git", "rev-parse", "--short", "HEAD") }
.standardOutput
.asText
.get()
},
)
.map { it.trim().take(10) }
.get()

version = "$version-$gitSha-SNAPSHOT"
}

dependencies {
api(kotlin("stdlib"))

Expand Down

0 comments on commit 4be983a

Please sign in to comment.