Skip to content

Commit 1547a8a

Browse files
authored
Update build.gradle file to fix dependency issues and improve testing (#31)
* Update build.gradle file to fix dependency issues * add support to publish jars locally for better testing
1 parent 23e4945 commit 1547a8a

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
[comment]: <> (When bumping [pc:VERSION_LATEST_RELEASE] create a new entry below)
44
### Unreleased version
55

6+
### v0.5.1
7+
- Update build.gradle
8+
69
### v0.5.0
710
- Update asyncHttpClient with okHttpClient for control plane operations
811
- Add ability to describe index

build.gradle

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = 'io.pinecone'
12-
version = '0.5.0' // [pc:VERSION_NEXT]
12+
version = '0.5.1' // [pc:VERSION_NEXT]
1313
description = 'The Pinecone.io Java Client'
1414

1515
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -25,16 +25,15 @@ dependencies {
2525
api "io.grpc:grpc-protobuf:${grpcVersion}"
2626
api "io.grpc:grpc-stub:${grpcVersion}"
2727
api "io.grpc:grpc-netty:${grpcVersion}"
28-
runtime 'io.netty:netty-tcnative-boringssl-static:2.0.59.Final'
28+
runtimeOnly 'io.netty:netty-tcnative-boringssl-static:2.0.61.Final'
2929
implementation 'org.slf4j:slf4j-api:2.0.5'
3030
implementation 'com.google.api.grpc:proto-google-common-protos:2.14.3'
3131
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
32-
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
33-
implementation 'org.asynchttpclient:async-http-client:2.12.1'
3432
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.14.2'
3533
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.14.2'
3634
compileOnly "org.apache.tomcat:annotations-api:6.0.53" // necessary for Java 9+
3735

36+
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
3837
testImplementation "io.grpc:grpc-testing:${grpcVersion}"
3938
testImplementation "org.hamcrest:hamcrest:2.2"
4039
testImplementation 'org.mockito:mockito-inline:4.8.0'
@@ -91,7 +90,6 @@ protobuf {
9190
}
9291
}
9392

94-
// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
9593
sourceSets {
9694
main {
9795
java {
@@ -132,6 +130,20 @@ publishing {
132130
}
133131
}
134132
}
133+
134+
publications {
135+
mavenJava(MavenPublication) {
136+
from components.java
137+
pom {
138+
artifactId = 'pinecone-client'
139+
name = 'pinecone-client'
140+
description = 'The Pinecone.io Java Client'
141+
}
142+
}
143+
}
144+
repositories {
145+
mavenLocal()
146+
}
135147
}
136148

137149
nexusPublishing {

0 commit comments

Comments
 (0)