Skip to content

Commit 6175c7e

Browse files
committed
fix up application id for core packages
1 parent 72822c3 commit 6175c7e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

delivery-sdk-generators/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
44

5-
[![Javadocs](https://javadoc.io/badge/com.github.kentico/kontent-delivery-generators.svg)](https://javadoc.io/doc/com.github.kentico/kontent-delivery-generators)
5+
[![Javadocs](https://javadoc.io/badge/ai.kontent/delivery-sdk-generators.svg)](https://javadoc.io/doc/ai.kontent/delivery-sdk-generators)
66
[![Maven Central](https://img.shields.io/maven-central/v/ai.kontent/delivery-sdk-generators)](https://oss.sonatype.org/content/groups/public/ai/kontent/delivery-sdk-generators)
77

88
[![GitHub Discussions](https://img.shields.io/badge/GitHub-Discussions-FE7A16.svg?style=popout&logo=github)](https://github.com/Kentico/Home/discussions)
99
[![Stack Overflow](https://img.shields.io/badge/Stack%20Overflow-ASK%20NOW-FE7A16.svg?logo=stackoverflow&logoColor=white)](https://stackoverflow.com/tags/kentico-kontent)
1010

11-
This tool generates strongly-typed models based on Content Types in a Kontent by Kentico project. The models are supposed to be used together with the [Kontent Delivery SDK for Java](../kontent-delivery/README.md). Please read the [documentation](</wiki/Working-with-Strongly-Typed-Models-(aka-Code-First-Approach)#customizing-the-strong-type-binding-logic>) to see all benefits of this approach.
11+
This tool generates strongly-typed models based on Content Types in a Kontent.ai project. The models are supposed to be used together with the [Kontent.ai Delivery SDK for Java](../deliver-sdky/README.md). Please read the [documentation](</wiki/Working-with-Strongly-Typed-Models-(aka-Code-First-Approach)#customizing-the-strong-type-binding-logic>) to see all benefits of this approach.
1212

1313
## Get started
1414

@@ -17,7 +17,7 @@ This tool generates strongly-typed models based on Content Types in a Kontent by
1717
```java
1818
CodeGenerator generator = new CodeGenerator(
1919
"975bf280-fd91-488c-994c-2f04416e5ee3",
20-
'com.kentico.kontent.test.springapp.models',
20+
'ai.kontent.test.springapp.models',
2121
file('src/main/java')
2222
);
2323
```
@@ -49,7 +49,7 @@ buildscript {
4949
mavenCentral()
5050
}
5151
dependencies {
52-
classpath('com.github.kentico:delivery-sdk-generators:latest.release')
52+
classpath('ai.kontent:delivery-sdk-generators:latest.release')
5353
}
5454
}
5555

delivery-sdk/src/main/java/kontent/ai/delivery/DeliveryClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class DeliveryClient {
6363
String packageId = buildProps.getProperty("package-id");
6464
repositoryHost = repositoryHost == null ? "localBuild" : repositoryHost;
6565
version = version == null ? "0.0.0" : version;
66-
packageId = packageId == null ? "com.github.kentico:delivery-sdk" : packageId;
66+
packageId = packageId == null ? "ai.kontent:delivery-sdk" : packageId;
6767
sdkId = String.format(
6868
"%s;%s;%s",
6969
repositoryHost,
@@ -72,7 +72,7 @@ public class DeliveryClient {
7272
log.info("SDK ID: {}", sdkId);
7373
} catch (IOException e) {
7474
log.info("Jar manifest read error, setting developer build SDK ID");
75-
sdkId = "localBuild;com.github.kentico:delivery-sdk;0.0.0";
75+
sdkId = "localBuild;ai.kontent:delivery-sdk;0.0.0";
7676
}
7777
}
7878

delivery-sdk/src/test/java/kontent/ai/delivery/DeliveryClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void testSdkIdHeader() throws Exception {
6666
String[] trackingHeaderValueParts = request.getHeaders("X-KC-SDKID")[0].getValue().split(";");
6767
Assert.assertEquals(3, trackingHeaderValueParts.length);
6868
Assert.assertEquals("maven.org", trackingHeaderValueParts[0]);
69-
Assert.assertEquals("com.github.kentico:delivery-sdk", trackingHeaderValueParts[1]);
69+
Assert.assertEquals("ai.kontent:delivery-sdk", trackingHeaderValueParts[1]);
7070
Assert.assertTrue("Tracking header version value does not comply with semver definition.", trackingHeaderValueParts[2].matches(SEMVER_REGEX));
7171

7272
response.setEntity(
@@ -101,7 +101,7 @@ public void testCustomHeadersPropagatedWithSdkIdHeader() throws Exception {
101101
String[] trackingHeaderValueParts = request.getHeaders("X-KC-SDKID")[0].getValue().split(";");
102102
Assert.assertEquals(3, trackingHeaderValueParts.length);
103103
Assert.assertEquals("maven.org", trackingHeaderValueParts[0]);
104-
Assert.assertEquals("com.github.kentico:delivery-sdk", trackingHeaderValueParts[1]);
104+
Assert.assertEquals("ai.kontent:delivery-sdk", trackingHeaderValueParts[1]);
105105
Assert.assertTrue("Tracking header version value does not comply with semver definition.", trackingHeaderValueParts[2].matches(SEMVER_REGEX));
106106

107107
Assert.assertEquals(headers.get(0).getValue(), request.getHeaders(headers.get(0).getName())[0].getValue());

0 commit comments

Comments
 (0)