This repository was archived by the owner on Aug 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
77 lines (70 loc) · 2.05 KB
/
build.gradle
File metadata and controls
77 lines (70 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'net.saliman.properties' version '1.4.2'
id "com.google.protobuf" version "0.8.8"
}
repositories {
mavenLocal()
maven {
url = uri('https://oss.sonatype.org/content/repositories/snapshots')
}
maven {
url = uri('https://repo.maven.apache.org/maven2')
}
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.0.1'
compile group: 'io.grpc', name: 'grpc-all', version: '1.29.0'
compile "com.google.protobuf:protobuf-java:3.12.1"
implementation 'org.hyperledger.fabric:fabric-gateway-java:2.1.0'
implementation 'org.junit.platform:junit-platform-launcher:1.4.2'
implementation 'org.junit.vintage:junit-vintage-engine:5.4.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.4.1'
testImplementation 'org.assertj:assertj-core:3.12.2'
}
group = 'fabcar-java'
version = '2.0.0-SNAPSHOT'
sourceCompatibility = '1.8'
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaExec){
systemProperties System.properties
}
task protoTask{
sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
}
}
}
protobuf {
protoc {
// The version of protoc must match protobuf-java. If you don't depend on
// protobuf-java directly, you will be transitively depending on the
// protobuf-java version that grpc depends on.
artifact = "com.google.protobuf:protoc:3.12.0"
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.29.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {}
}
}
generatedFilesBaseDir = "$projectDir/src/main/java/generated"
}
}