Skip to content

Commit

Permalink
Revert "fix gradle hopefulyl?"
Browse files Browse the repository at this point in the history
This reverts commit bf4fbb8.
  • Loading branch information
j5155 committed Dec 1, 2024
1 parent bf4fbb8 commit 2536bde
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
18 changes: 6 additions & 12 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import java.io.ByteArrayOutputStream

val snapshotsUsername: String = System.getenv("SNAPSHOTS_USERNAME")
val snapshotsPassword: String = System.getenv("SNAPSHOTS_PASSWORD")

val releasesUsername: String = System.getenv("RELEASES_USERNAME")
val releasesPassword: String = System.getenv("RELEASES_PASSWORD")

/* Gets the version name from the latest Git tag */
fun getVersionName(): String {
val stdout = ByteArrayOutputStream()
Expand Down Expand Up @@ -53,17 +47,17 @@ publishing {
maven {
name = "dairyReleases"
url = uri("https://repo.dairy.foundation/releases")
credentials {
username = releasesUsername
password = releasesPassword
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
name = "dairySnapshots"
url = uri("https://repo.dairy.foundation/snapshots")
credentials {
username = snapshotsUsername
password = snapshotsPassword
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
Expand Down
18 changes: 6 additions & 12 deletions ftc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import java.io.ByteArrayOutputStream

val snapshotsUsername: String = System.getenv("SNAPSHOTS_USERNAME")
val snapshotsPassword: String = System.getenv("SNAPSHOTS_PASSWORD")

val releasesUsername: String = System.getenv("RELEASES_USERNAME")
val releasesPassword: String = System.getenv("RELEASES_PASSWORD")

/* Gets the version name from the latest Git tag */
fun getVersionName(): String {
val stdout = ByteArrayOutputStream()
Expand Down Expand Up @@ -81,17 +75,17 @@ afterEvaluate {
maven {
name = "dairyReleases"
url = uri("https://repo.dairy.foundation/releases")
credentials {
username = releasesUsername
password = releasesPassword
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
name = "dairySnapshots"
url = uri("https://repo.dairy.foundation/snapshots")
credentials {
username = snapshotsUsername
password = snapshotsPassword
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
Expand Down

0 comments on commit 2536bde

Please sign in to comment.