Skip to content

Commit

Permalink
fix gradle hopefulyl?
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwaffle4 committed Dec 1, 2024
1 parent cc0a7f0 commit bf4fbb8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
18 changes: 12 additions & 6 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
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 @@ -47,17 +53,17 @@ publishing {
maven {
name = "dairyReleases"
url = uri("https://repo.dairy.foundation/releases")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
credentials {
username = releasesUsername
password = releasesPassword
}
}
maven {
name = "dairySnapshots"
url = uri("https://repo.dairy.foundation/snapshots")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
credentials {
username = snapshotsUsername
password = snapshotsPassword
}
}
}
Expand Down
18 changes: 12 additions & 6 deletions ftc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
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 @@ -75,17 +81,17 @@ afterEvaluate {
maven {
name = "dairyReleases"
url = uri("https://repo.dairy.foundation/releases")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
credentials {
username = releasesUsername
password = releasesPassword
}
}
maven {
name = "dairySnapshots"
url = uri("https://repo.dairy.foundation/snapshots")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
credentials {
username = snapshotsUsername
password = snapshotsPassword
}
}
}
Expand Down

0 comments on commit bf4fbb8

Please sign in to comment.