Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/kiota-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.7.1
Choose a base ref
...
head repository: microsoft/kiota-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.7.2
Choose a head ref
  • 19 commits
  • 15 files changed
  • 6 contributors

Commits on Aug 22, 2023

  1. Bump com.android.tools.build:gradle

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ad832eb View commit details
  2. Bump com.android.tools.build:gradle in /components/abstractions/android

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5492c82 View commit details
  3. Bump com.android.tools.build:gradle

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bff49a2 View commit details
  4. Bump com.android.tools.build:gradle

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    92c55a8 View commit details
  5. Bump com.android.tools.build:gradle in /components/http/okHttp/android

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    07bb5fc View commit details
  6. Bump com.android.tools.build:gradle

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5f964f6 View commit details
  7. Bump com.android.tools.build:gradle

    Bumps com.android.tools.build:gradle from 8.1.0 to 8.1.1.
    
    ---
    updated-dependencies:
    - dependency-name: com.android.tools.build:gradle
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Aug 22, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8569421 View commit details

Commits on Aug 23, 2023

  1. Merge remote-tracking branch 'origin/dependabot/gradle/components/aut…

    …hentication/azure/android/com.android.tools.build-gradle-8.1.1' into dependabot/gradle/components/abstractions/android/com.android.tools.build-gradle-8.1.1
    Andrew Omondi committed Aug 23, 2023
    Copy the full SHA
    1db87bf View commit details
  2. Merge remote-tracking branch 'origin/dependabot/gradle/components/ser…

    …ialization/text/android/com.android.tools.build-gradle-8.1.1' into dependabot/gradle/components/abstractions/android/com.android.tools.build-gradle-8.1.1
    Andrew Omondi committed Aug 23, 2023
    Copy the full SHA
    a439f83 View commit details
  3. Merge remote-tracking branch 'origin/dependabot/gradle/components/ser…

    …ialization/multipart/android/com.android.tools.build-gradle-8.1.1' into dependabot/gradle/components/abstractions/android/com.android.tools.build-gradle-8.1.1
    Andrew Omondi committed Aug 23, 2023
    Copy the full SHA
    d9e054c View commit details
  4. Merge remote-tracking branch 'origin/dependabot/gradle/components/ser…

    …ialization/form/android/com.android.tools.build-gradle-8.1.1' into dependabot/gradle/components/abstractions/android/com.android.tools.build-gradle-8.1.1
    Andrew Omondi committed Aug 23, 2023
    Copy the full SHA
    9e91db8 View commit details
  5. Merge remote-tracking branch 'origin/dependabot/gradle/components/htt…

    …p/okHttp/android/com.android.tools.build-gradle-8.1.1' into dependabot/gradle/components/abstractions/android/com.android.tools.build-gradle-8.1.1
    Andrew Omondi committed Aug 23, 2023
    Copy the full SHA
    8a5a666 View commit details
  6. Merge remote-tracking branch 'origin/dependabot/gradle/components/ser…

    …ialization/json/android/com.android.tools.build-gradle-8.1.1' into dependabot/gradle/components/abstractions/android/com.android.tools.build-gradle-8.1.1
    Andrew Omondi committed Aug 23, 2023
    Copy the full SHA
    c7d7e0d View commit details
  7. Merge pull request #587 from microsoft/dependabot/gradle/components/a…

    …bstractions/android/com.android.tools.build-gradle-8.1.1
    
    Bump com.android.tools.build:gradle from 8.1.0 to 8.1.1 in /components/abstractions/android
    github-actions[bot] authored Aug 23, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    23fe4c5 View commit details

Commits on Aug 31, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    baywet Vincent Biret
    Copy the full SHA
    e318de8 View commit details
  2. Merge pull request #593 from microsoft/feature/fabric-bot

    - adds missing fabric bot configuration
    baywet authored Aug 31, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9bfda8e View commit details
  3. Switch to std-uritemplate

    andreaTP committed Aug 31, 2023
    Copy the full SHA
    c0ed9e6 View commit details

Commits on Sep 1, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    baywet Vincent Biret
    Copy the full SHA
    b0dbf6a View commit details
  2. Merge pull request #594 from andreaTP/switch-to-std-uritemplate

    Switch to std-uritemplate
    baywet authored Sep 1, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    26be8b6 View commit details
101 changes: 101 additions & 0 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
id:
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
scheduledSearches:
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Needs: Author Feedback'
- hasLabel:
label: 'Status: No Recent Activity'
- noActivitySince:
days: 3
actions:
- closeIssue
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Needs: Author Feedback'
- noActivitySince:
days: 4
- isNotLabeledWith:
label: 'Status: No Recent Activity'
actions:
- addLabel:
label: 'Status: No Recent Activity'
- addReply:
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
- description:
frequencies:
- hourly:
hour: 6
filters:
- isIssue
- isOpen
- hasLabel:
label: 'Resolution: Duplicate'
- noActivitySince:
days: 1
actions:
- addReply:
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
- closeIssue
eventResponderTasks:
- if:
- payloadType: Issue_Comment
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
- hasLabel:
label: 'Needs: Author Feedback'
- isOpen
then:
- addLabel:
label: 'Needs: Attention :wave:'
- removeLabel:
label: 'Needs: Author Feedback'
description:
- if:
- payloadType: Issues
- not:
isAction:
action: Closed
- hasLabel:
label: 'Status: No Recent Activity'
then:
- removeLabel:
label: 'Status: No Recent Activity'
description:
- if:
- payloadType: Issue_Comment
- hasLabel:
label: 'Status: No Recent Activity'
then:
- removeLabel:
label: 'Status: No Recent Activity'
description:
- if:
- payloadType: Pull_Request
then:
- inPrLabel:
label: WIP
description:
onFailure:
onSuccess:
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

## [0.7.2] - 2023-09-01

### Changed

- Swapped custom implementation of RFC6570 URI templates to std uritemplates.

## [0.7.1] - 2023-08-21

### Changed
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -21,13 +21,13 @@ Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README
In `build.gradle` in the `dependencies` section:

```Groovy
implementation 'com.microsoft.kiota:microsoft-kiota-abstractions:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:0.5.0'
implementation 'com.microsoft.kiota:microsoft-kiota-abstractions:0.7.2'
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:0.7.2'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:0.7.2'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:0.7.2'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:0.7.2'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:0.7.2'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:0.7.2'
```

### With Maven:
@@ -38,37 +38,37 @@ In `pom.xml` in the `dependencies` section:
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-abstractions</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-authentication-azure</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-http-okHttp</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-json</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-text</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-form</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-multipart</artifactId>
<version>0.5.0</version>
<version>0.7.2</version>
</dependency>
```

2 changes: 1 addition & 1 deletion components/abstractions/android/build.gradle
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ buildscript {

dependencies {
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.14.1"
classpath "com.android.tools.build:gradle:8.1.0"
classpath "com.android.tools.build:gradle:8.1.1"
classpath "com.github.ben-manes:gradle-versions-plugin:0.47.0"
}
}
1 change: 1 addition & 0 deletions components/abstractions/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ dependencies {
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:32.1.2-jre'
implementation 'org.javatuples:javatuples:1.2'
implementation 'io.github.std-uritemplate:std-uritemplate:0.0.31'
implementation 'io.opentelemetry:opentelemetry-api:1.29.0'
implementation 'io.opentelemetry:opentelemetry-context:1.29.0'
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@
import io.opentelemetry.context.Scope;
import io.opentelemetry.api.GlobalOpenTelemetry;

import io.github.stduritemplate.StdUriTemplate;


/** This class represents an abstract HTTP request. */
public class RequestInformation {
@@ -66,7 +68,8 @@ public URI getUri() throws URISyntaxException,IllegalStateException{
params.putAll(pathParameters);
params.putAll(queryParameters);

return new URI(new UriTemplate(urlTemplate).expand(params));

return new URI(StdUriTemplate.expand(urlTemplate, params));
}
}
/**
Loading