mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
52 lines
1.2 KiB
Groovy
52 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1'
|
|
}
|
|
|
|
group = 'com.example.snippets_amalgamation'
|
|
version = '1.0.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'io.qdrant:client'
|
|
|
|
// gRPC dependencies - use the same version as Qdrant client
|
|
implementation 'io.grpc:grpc-netty-shaded:1.65.1'
|
|
implementation 'io.grpc:grpc-protobuf:1.65.1'
|
|
implementation 'io.grpc:grpc-stub:1.65.1'
|
|
implementation 'io.grpc:grpc-services:1.65.1'
|
|
|
|
// Protobuf runtime
|
|
implementation 'com.google.protobuf:protobuf-java:3.25.4'
|
|
|
|
// Logging
|
|
implementation 'org.slf4j:slf4j-simple:2.0.14'
|
|
}
|
|
|
|
application {
|
|
mainClass = 'com.example.snippets_amalgamation.Main'
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
// Create a proper fat jar and merge service descriptor files (required by gRPC)
|
|
shadowJar {
|
|
mergeServiceFiles()
|
|
archiveBaseName.set('app')
|
|
archiveClassifier.set('all')
|
|
}
|
|
|
|
// Keep the plain jar minimal (no dependency unpacking)
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'com.example.snippets_amalgamation.Main'
|
|
}
|
|
}
|