Skip to content

Commit 4f0f1f9

Browse files
Prepare 1.0.72 (#268)
1 parent b8565a4 commit 4f0f1f9

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/craftgate-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ jobs:
2727
- name: Build and Publish with Gradle
2828
run: openssl enc -aes-256-cbc -md sha256 -pass pass:${{secrets.ENC_KEY}} -d -A -in craftgate.gpg.enc -out craftgate.gpg &&
2929
./gradlew clean &&
30-
./gradlew publish -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.http.connectionTimeout=120000 -Pversion=${{github.event.release.tag_name}} -PrepoUser=${{secrets.NEXUS_USER}} -PrepoPassword=${{secrets.NEXUS_PASSWORD}} -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}}
30+
./gradlew publish -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.http.connectionTimeout=120000 -Pversion=${{github.event.release.tag_name}} -PrepoUser=${{secrets.CP_TOKEN_USERNAME}} -PrepoPassword=${{secrets.CP_TOKEN_PASSWORD}} -Psigning.keyId=${{secrets.SIGNING_KEY_ID}} -Psigning.password=${{secrets.SIGNING_PASSWORD}}
31+
32+
- name: Trigger deployment visibility
33+
run: |
34+
curl -i -X POST https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.craftgate \
35+
-H "Authorization: Bearer $(echo -n "${{secrets.CP_TOKEN_USERNAME}}:${{secrets.CP_TOKEN_PASSWORD}}" | base64)"
36+

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ Apache Maven:
1717
<dependency>
1818
<groupId>io.craftgate</groupId>
1919
<artifactId>craftgate</artifactId>
20-
<version>1.0.71</version>
20+
<version>1.0.72</version>
2121
</dependency>
2222
```
2323
Gradle Groovy DSL
2424
```
25-
implementation 'io.craftgate:craftgate:1.0.71'
25+
implementation 'io.craftgate:craftgate:1.0.72'
2626
```
2727
Gradle Kotlin DSL
2828
```
29-
implementation("io.craftgate:craftgate:1.0.71")
29+
implementation("io.craftgate:craftgate:1.0.72")
3030
```
3131

3232
## Usage

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ publishing {
6464
}
6565
repositories {
6666
maven {
67-
name 'nexus'
68-
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
67+
name 'ossrh-staging-api'
68+
url "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
6969
credentials {
7070
username project.repoUser
7171
password project.repoPassword

src/main/java/io/craftgate/adapter/BaseAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private static Map<String, String> createHttpHeaders(Object request, String path
4040
headers.put(API_KEY_HEADER_NAME, options.getApiKey());
4141
headers.put(RANDOM_HEADER_NAME, randomString);
4242
headers.put(AUTH_VERSION_HEADER_NAME, API_VERSION_HEADER_VALUE);
43-
headers.put(CLIENT_VERSION_HEADER_NAME, CLIENT_VERSION_HEADER_VALUE + ":1.0.71");
43+
headers.put(CLIENT_VERSION_HEADER_NAME, CLIENT_VERSION_HEADER_VALUE + ":1.0.72");
4444
headers.put(SIGNATURE_HEADER_NAME, prepareAuthorizationString(request, path, randomString, options));
4545
if (Objects.nonNull(options.getLanguage())) {
4646
headers.put(LANGUAGE_HEADER_NAME, options.getLanguage());

0 commit comments

Comments
 (0)