Skip to content

Commit

Permalink
Fix gradle builds
Browse files Browse the repository at this point in the history
Summary: Fixed gradle builds that are currently failing in GitHub by reverting D56472377 as it wasn't really necessary (and that is what is breaking the builds), I just didn't fully understand how things worked back then.

Reviewed By: cortinico

Differential Revision: D58448340

fbshipit-source-id: 8bd9a869f7b12f214c2cbcaa68f297275015548a
  • Loading branch information
Nivaldo Bondança authored and facebook-github-bot committed Jun 12, 2024
1 parent c119d16 commit bd5a0de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions ktfmt_idea_plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ plugins {
id("com.diffplug.spotless") version "5.10.2"
}

val currentKtfmtVersion = rootProject.file("../version.txt").readText().trim()
val stableKtfmtVersion = rootProject.file("../stable_version.txt").readText().trim()
val ktfmtVersion = rootProject.file("../version.txt").readText().trim()
val pluginVersion = "1.1"

group = "com.facebook"

version = "$pluginVersion.$currentKtfmtVersion"
version = "$pluginVersion.$ktfmtVersion"

repositories {
mavenCentral()
Expand All @@ -39,7 +38,7 @@ java {
}

dependencies {
implementation("com.facebook", "ktfmt", stableKtfmtVersion)
implementation("com.facebook", "ktfmt", ktfmtVersion)
implementation("com.google.googlejavaformat", "google-java-format", "1.22.0")
}

Expand Down
2 changes: 1 addition & 1 deletion online_formatter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
mavenCentral()
}

val ktfmtVersion = rootProject.file("../stable_version.txt").readText().trim()
val ktfmtVersion = rootProject.file("../version.txt").readText().trim()

dependencies {
implementation("com.facebook:ktfmt:$ktfmtVersion")
Expand Down
1 change: 0 additions & 1 deletion stable_version.txt

This file was deleted.

0 comments on commit bd5a0de

Please sign in to comment.