Skip to content

Commit

Permalink
Refactoring Config into @autovalue POJO (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek authored Sep 29, 2020
1 parent 621be89 commit 9e591bb
Show file tree
Hide file tree
Showing 30 changed files with 641 additions and 998 deletions.
4 changes: 4 additions & 0 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ ext {
checkerFramework : "3.6.1",
errorprone : "2.4.0",
nullaway : "0.8.0",
autoValue : "1.7.4"
]

deps = [
Expand All @@ -57,6 +58,9 @@ ext {
// These are the last versions that support guava 20.0. Upgrading has odd interactions with shadow.
dependencies.create(group: 'com.google.guava', name: 'guava', version: "${versions.guava}"),
],
autoValueAnnotations : "com.google.auto.value:auto-value-annotations:${versions.autoValue}",
// annotation processor
autoValue : "com.google.auto.value:auto-value:${versions.autoValue}",

// Testing

Expand Down
3 changes: 3 additions & 0 deletions instrumentation-api/instrumentation-api.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ dependencies {
api deps.opentelemetryContextProp
implementation deps.slf4j

compileOnly deps.autoValueAnnotations
annotationProcessor deps.autoValue

testImplementation project(':testing-common')
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.19.0'
testImplementation group: 'org.assertj', name: 'assertj-core', version: '1.7.1'
Expand Down
Loading

0 comments on commit 9e591bb

Please sign in to comment.