Skip to content

Commit

Permalink
Jakarta annotations is api dependency in abstractions
Browse files Browse the repository at this point in the history
remove immutable annotation
  • Loading branch information
ramsessanchez committed Aug 9, 2023
1 parent 2c53320 commit da2f063
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion components/abstractions/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ dependencies {
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'

//This dependency is used internally and also by Kiota generated code which leverages this library.
api 'jakarta.annotation:jakarta.annotation-api:2.1.1'

// 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 'jakarta.annotation:jakarta.annotation-api:2.1.1'
implementation 'io.opentelemetry:opentelemetry-api:1.28.0'
implementation 'io.opentelemetry:opentelemetry-context:1.28.0'
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.microsoft.kiota;

import jakarta.annotation.Nonnull;
import com.google.errorprone.annotations.Immutable;
import java.io.Serializable;
import java.time.Duration;
import java.time.Period;
Expand All @@ -28,7 +27,6 @@
/**
* The aggregate type for {@code Period} and {@code Duration }
*/
@Immutable
public final class PeriodAndDuration implements TemporalAmount, Comparable<PeriodAndDuration>, Serializable {

/**
Expand Down
1 change: 0 additions & 1 deletion components/authentication/azure/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies {
implementation 'io.opentelemetry:opentelemetry-api:1.28.0'
implementation 'io.opentelemetry:opentelemetry-context:1.28.0'
implementation 'com.google.guava:guava:32.1.2-jre'
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
api 'com.azure:azure-core:1.42.0'

api project(':components:abstractions')
Expand Down
1 change: 0 additions & 1 deletion components/http/okHttp/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies {
implementation 'io.opentelemetry:opentelemetry-context:1.28.0'
implementation 'io.opentelemetry:opentelemetry-semconv:1.28.0-alpha'
implementation 'com.google.guava:guava:32.1.2-jre'
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
api 'com.squareup.okhttp3:okhttp:4.11.0'

api project(':components:abstractions')
Expand Down
1 change: 0 additions & 1 deletion components/serialization/form/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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 'jakarta.annotation:jakarta.annotation-api:2.1.1'

api project(':components:abstractions')
}
1 change: 0 additions & 1 deletion components/serialization/json/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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 'jakarta.annotation:jakarta.annotation-api:2.1.1'
api 'com.google.code.gson:gson:2.10.1'

api project(':components:abstractions')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ 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 'jakarta.annotation:jakarta.annotation-api:2.1.1'

api project(':components:abstractions')
testImplementation project(':components:serialization:json')
Expand Down
1 change: 0 additions & 1 deletion components/serialization/text/gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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 'jakarta.annotation:jakarta.annotation-api:2.1.1'

api project(':components:abstractions')
}

0 comments on commit da2f063

Please sign in to comment.