From 047f51fd969928a2b61958b442a2e9f6814f91af Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 16 Nov 2022 21:19:01 +0600 Subject: [PATCH] hotfix for header authorization --- .github/workflows/build.yml | 17 ----------------- .../core/models/MavenConfig.kt | 4 ++++ 2 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 6f2a4a6..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,17 +0,0 @@ -on: [push] - -name: Build - -jobs: - build-ubuntu: - name: Commit release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Setup JDK - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Build - run: ./gradlew build packageUberJarForCurrentOS diff --git a/core/src/commonMain/kotlin/dev/inmo/kmppscriptbuilder/core/models/MavenConfig.kt b/core/src/commonMain/kotlin/dev/inmo/kmppscriptbuilder/core/models/MavenConfig.kt index 555b1e2..4bbfa00 100644 --- a/core/src/commonMain/kotlin/dev/inmo/kmppscriptbuilder/core/models/MavenConfig.kt +++ b/core/src/commonMain/kotlin/dev/inmo/kmppscriptbuilder/core/models/MavenConfig.kt @@ -86,6 +86,10 @@ return """ name = "$headerName" value = project.hasProperty('${headerValueProperty}') ? project.property('${headerValueProperty}') : System.getenv('${headerValueProperty}') } + + authentication { + header(HttpHeaderAuthentication) + } """ }