Skip to content

Commit

Permalink
Remove grgit to test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jun 4, 2022
1 parent a8ccbe5 commit 62960f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import org.ajoberstar.grgit.Grgit
import java.io.ByteArrayOutputStream
import java.nio.charset.StandardCharsets

plugins {
id("org.enginehub.codecov")
jacoco
}

if (!project.hasProperty("gitCommitHash")) {
apply(plugin = "org.ajoberstar.grgit")
ext["gitCommitHash"] = try {
extensions.getByName<Grgit>("grgit").head()?.abbreviatedId
val capture = ByteArrayOutputStream()
exec {
commandLine("git", "rev-parse", "--short", "HEAD")
standardOutput = capture
}
capture.toString(StandardCharsets.UTF_8.name())
} catch (e: Exception) {
logger.warn("Error getting commit hash", e)

Expand Down
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ val mixinVersion: String = properties.getProperty("mixin.version")
dependencies {
implementation(gradleApi())
implementation("gradle.plugin.org.cadixdev.gradle:licenser:0.6.0")
implementation("org.ajoberstar.grgit:grgit-gradle:4.1.0")
implementation("com.github.jengelman.gradle.plugins:shadow:6.1.0")
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.21.0")
implementation("org.spongepowered:SpongeGradle:0.11.5")
Expand Down

0 comments on commit 62960f0

Please sign in to comment.