79 lines
1.8 KiB
Groovy
79 lines
1.8 KiB
Groovy
/*
|
|
* This file was generated by the Gradle 'init' task.
|
|
*
|
|
* This generated file contains a sample Java project to get you started.
|
|
* For more details take a look at the Java Quickstart chapter in the Gradle
|
|
* User Manual available at https://docs.gradle.org/5.2.1/userguide/tutorial_java_projects.html
|
|
*/
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id 'java'
|
|
id 'com.google.protobuf' version '0.8.8'
|
|
id 'application'
|
|
}
|
|
|
|
def grpcVersion = '1.22.0-SNAPSHOT'
|
|
def protobufVersion = '3.7.1'
|
|
def protocVersion = protobufVersion
|
|
|
|
repositories {
|
|
// Use jcenter for resolving your dependencies.
|
|
// You can declare any Maven/Ivy/file repository here.
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
// This dependency is found on compile classpath of this component and consumers.
|
|
implementation 'com.google.guava:guava:27.0.1-jre'
|
|
|
|
// Use JUnit test framework
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
// Used by GRPC generated code
|
|
compile 'org.glassfish:javax.annotation:10.0-b28'
|
|
|
|
// grpc stuff
|
|
compile 'io.grpc:grpc-netty-shaded:1.20.0'
|
|
compile 'io.grpc:grpc-protobuf:1.20.0'
|
|
compile 'io.grpc:grpc-stub:1.20.0'
|
|
compile 'io.netty:netty-tcnative-boringssl-static:2.0.22.Final'
|
|
}
|
|
|
|
// Define the main class for the application
|
|
mainClassName = 'JobServ.JobServClient'
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = "com.google.protobuf:protoc:3.7.1"
|
|
}
|
|
|
|
plugins {
|
|
grpc {
|
|
artifact = 'io.grpc:protoc-gen-grpc-java:1.20.0'
|
|
}
|
|
}
|
|
|
|
generateProtoTasks {
|
|
all()*.plugins {
|
|
grpc {}
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: 'application'
|
|
mainClassName = 'JobServ.JobServClient'
|
|
jar {
|
|
manifest {
|
|
attributes('Main-Class' : mainClassName)
|
|
}
|
|
}
|