FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
grpc-java/api/build.gradle at master · Java-Edge/grpc-java · GitHub
Java-Edge
/
grpc-java
Public
forked from
grpc/grpc-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
grpc-java
/
api
/
build.gradle
Copy path
More file actions
More file actions
Latest commit
History
History
History
70 lines (59 loc) · 2.01 KB
Breadcrumbs
grpc-java
/
api
/
build.gradle
Copy path
File metadata and controls
70 lines (59 loc) · 2.01 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
plugins
{
id
"
java-library
"
id
"
java-test-fixtures
"
id
"
maven-publish
"
id
"
me.champeau.jmh
"
id
"
ru.vyarus.animalsniffer
"
}
description
=
'
gRPC: API
'
sourceSets
{
context
main {
output
.
classesDirs
.
from(sourceSets
.
context
.
output
.
classesDirs)
}
}
tasks
.
named(
"
compileContextJava
"
)
.
configure
{
if
(
JavaVersion
.
current()
.
isCompatibleWith(
JavaVersion
.
VERSION_20
)) {
println
(
"
!!! Javac does not support generating Java 7 bytecode. Do not use for release builds !!!
"
)
}
else
if
(
JavaVersion
.
current()
.
isJava9Compatible()) {
options
.
release
=
7
}
else
{
sourceCompatibility
=
JavaVersion
.
VERSION_1_7
targetCompatibility
=
JavaVersion
.
VERSION_1_7
}
}
tasks
.
named(
"
jar
"
)
.
configure
{
manifest {
attributes(
'
Automatic-Module-Name
'
:
'
io.grpc
'
)
}
}
dependencies
{
compileOnly sourceSets
.
context
.
output
api libraries
.
jsr305,
libraries
.
errorprone
.
annotations
implementation libraries
.
guava
testFixturesApi libraries
.
truth
testFixturesImplementation libraries
.
jsr305
testFixturesImplementation libraries
.
guava,
libraries
.
junit,
libraries
.
mockito
.
core
testImplementation project(
'
:grpc-core
'
)
testImplementation project(
'
:grpc-testing
'
)
testImplementation libraries
.
guava
.
testlib
signature libraries
.
signature
.
java
signature libraries
.
signature
.
android
}
tasks
.
named(
"
javadoc
"
)
.
configure
{
source sourceSets
.
context
.
allSource
//
We want io.grpc.Internal, but not io.grpc.Internal*
exclude
'
io/grpc/*MetricInstrument.java
'
exclude
'
io/grpc/*MetricInstrumentRegistry.java
'
exclude
'
io/grpc/Internal?*.java
'
exclude
'
io/grpc/MetricRecorder.java
'
exclude
'
io/grpc/MetricSink.java
'
}
tasks
.
named(
"
sourcesJar
"
)
.
configure
{
from sourceSets
.
context
.
allSource
}
components
.
java
.
withVariantsFromConfiguration(configurations
.
testFixturesApiElements) { skip() }
components
.
java
.
withVariantsFromConfiguration(configurations
.
testFixturesRuntimeElements) { skip() }
Back
|
FazBrowse Home
|
New Git URL