Proxy application for accessing internal services from applications running on GCP.
- Kotlin
- Ktor
- Gradle
- JDK 17
- Spek
- Jackson
- JDK 17
To build locally and run the integration tests you can simply run ./gradlew test
Run checking: ./gradlew --continue ktlintCheck
Run formatting: ./gradlew ktlintFormat
Certain packages (tjenestespesifikasjoner) must be downloaded from Github Package Registry, which requires authentication. The packages can be downloaded via build.gradle:
val githubUser: String by project
val githubPassword: String by project
repositories {
maven {
url = uri("https://maven.pkg.github.com/navikt/tjenestespesifikasjoner")
credentials {
username = githubUser
password = githubPassword
}
}
}
githubUser
and githubPassword
are properties that are set in ~/.gradle/gradle.properties
:
githubUser=x-access-token
githubPassword=<token>
Where <token>
is a personal access token with scope read:packages
(and SSO enabled).
The variables can alternatively be configured as environment variables or used in the command lines:
ORG_GRADLE_PROJECT_githubUser
ORG_GRADLE_PROJECT_githubPassword
./gradlew -PgithubUser=x-access-token -PgithubPassword=[token]
We are available at the Slack channel #isyfo
.