Skip to content

Commit

Permalink
Update build.gradle file to fix dependency issues and improve testing (
Browse files Browse the repository at this point in the history
…#31)

* Update build.gradle file to fix dependency issues

* add support to publish jars locally for better testing
  • Loading branch information
rohanshah18 authored Oct 2, 2023
1 parent 23e4945 commit 1547a8a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
[comment]: <> (When bumping [pc:VERSION_LATEST_RELEASE] create a new entry below)
### Unreleased version

### v0.5.1
- Update build.gradle

### v0.5.0
- Update asyncHttpClient with okHttpClient for control plane operations
- Add ability to describe index
Expand Down
22 changes: 17 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = 'io.pinecone'
version = '0.5.0' // [pc:VERSION_NEXT]
version = '0.5.1' // [pc:VERSION_NEXT]
description = 'The Pinecone.io Java Client'

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

testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
testImplementation "io.grpc:grpc-testing:${grpcVersion}"
testImplementation "org.hamcrest:hamcrest:2.2"
testImplementation 'org.mockito:mockito-inline:4.8.0'
Expand Down Expand Up @@ -91,7 +90,6 @@ protobuf {
}
}

// Inform IDEs like IntelliJ IDEA, Eclipse or NetBeans about the generated code.
sourceSets {
main {
java {
Expand Down Expand Up @@ -132,6 +130,20 @@ publishing {
}
}
}

publications {
mavenJava(MavenPublication) {
from components.java
pom {
artifactId = 'pinecone-client'
name = 'pinecone-client'
description = 'The Pinecone.io Java Client'
}
}
}
repositories {
mavenLocal()
}
}

nexusPublishing {
Expand Down

0 comments on commit 1547a8a

Please sign in to comment.