This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
78 lines (71 loc) · 1.75 KB
/
build.gradle
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
78
buildscript {
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
}
// dependencies {
// classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.8'
// }
}
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
// id 'com.google.protobuf' version '0.8.8'
id 'scala'
}
//ext {
// scalapbVersion = '0.9.1'
//}
repositories {
mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
mavenCentral()
jcenter()
}
dependencies {
implementation 'org.scala-lang:scala-library:2.12.8'
implementation group: 'cc.akkaha', name: 'pea_2.12', version: '0.7.0'
implementation files('libs/ext-example-library.jar')
}
//protobuf {
// generatedFilesBaseDir = "$projectDir/src"
// protoc {
// artifact = 'com.google.protobuf:protoc:3.7.1'
// }
// plugins {
// scalapb {
// artifact = (org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) ?
// "com.thesamet.scalapb:protoc-gen-scalapb:${scalapbVersion}:windows@bat" :
// "com.thesamet.scalapb:protoc-gen-scalapb:${scalapbVersion}:unix@sh"
// }
// }
// generateProtoTasks {
// all().each { task ->
// task.builtins {
// remove java
// }
// task.plugins {
// scalapb {
// // add any ScalaPB generator options here. See: https://scalapb.github.io/scalapbc.html#passing-generator-parameters
// option 'grpc'
// }
// }
// }
// }
//}
sourceSets {
main {
// proto {
// srcDir 'src/main/protobuf'
// }
java {
srcDirs = ['src/main/java']
}
scala {
srcDirs = ['src/main/scala', "src/main/scalapb"]
}
}
}
shadowJar {
zip64 true
}