Skip to content

Commit

Permalink
Update names of LTS user and password
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Nov 10, 2024
1 parent 769b926 commit dabb82c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
distribution: temurin
java-version: 17
- name: Build
run: ./gradlew -PltsUser=${{ secrets.LTS_CUSTOMER_NAME }} -PltsPassword=${{ secrets.LTS_CUSTOMER_PASSWORD }} check
run: ./gradlew -PltsMavenUser=${{ secrets.LTS_MAVEN_USER }} -PltsMavenPassword=${{ secrets.LTS_MAVEN_PASSWORD }} check
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ The LTS version of the http4k libraries are hosted in a private Maven repository
Configuring Gradle to use the private Maven repo can be done by using a custom repository:

```kotlin
val ltsUser: String by project
val ltsPassword: String by project
val ltsMavenUser: String by project
val ltsMavenPassword: String by project

repositories {
maven {
credentials {
username = ltsUser
password = ltsPassword
username = ltsMavenUser
password = ltsMavenPassword
}
url = URI("https://maven.http4k.org")
}
Expand All @@ -25,8 +25,8 @@ repositories {
}
```

To set up access in your Gradle build, you will need to pass the credentials in some fashion. The easiest way to do this is to put them in your `gradle.properties` or to pass them on the command line. The properties are `ltsUser` and `ltsPassword`:
To set up access in your Gradle build, you will need to pass the credentials in some fashion. The easiest way to do this is to put them in your `gradle.properties` or to pass them on the command line. The properties are `ltsMavenUser` and `ltsMavenPassword`:

```shell
./gradlew -PltsUser=lts_username -PltsPassword=secret_password check
./gradlew -PltsMavenUser=lts_username -PltsMavenPassword=secret_password check
```
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ kotlin {
}
}

val ltsUser: String by project
val ltsPassword: String by project
val ltsMavenUser: String = project.findProperty("ltsMavenUser") as? String ?: System.getenv("LTS_MAVEN_USER")
val ltsMavenPassword: String = project.findProperty("ltsMavenPassword") as? String ?: System.getenv("LTS_MAVEN_PASSWORD")

repositories {
maven {
credentials {
username = ltsUser
password = ltsPassword
username = ltsMavenUser
password = ltsMavenPassword
}
url = URI("https://maven.http4k.org")
}
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
http4kVersion=4.48.0.1
ltsUser=replace_me
ltsPassword=replace_me

0 comments on commit dabb82c

Please sign in to comment.