FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
graphql-java/build.gradle at master · soneymathew/graphql-java · GitHub
soneymathew
/
graphql-java
Public
forked from
graphql-java/graphql-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
graphql-java
/
build.gradle
Copy path
More file actions
More file actions
Latest commit
History
History
History
159 lines (133 loc) · 4.53 KB
Breadcrumbs
graphql-java
/
build.gradle
Copy path
File metadata and controls
159 lines (133 loc) · 4.53 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import
java.text.SimpleDateFormat
plugins
{
id
"
com.jfrog.bintray
"
version
"
1.2
"
}
apply
plugin
:
'
java
'
apply
plugin
:
'
maven
'
apply
plugin
:
'
maven-publish
'
apply
plugin
:
'
antlr
'
apply
plugin
:
'
osgi
'
sourceCompatibility
=
1.8
targetCompatibility
=
1.8
def
slf4jVersion
=
'
1.7.25
'
def
releaseVersion
=
System
.
properties
.
RELEASE_VERSION
version
=
releaseVersion
?
releaseVersion
:
new
SimpleDateFormat
(
'
yyyy-MM-dd
\'
T
\'
HH-mm-ss
'
)
.
format(
new
Date
())
group
=
'
com.graphql-java
'
repositories
{
mavenCentral()
mavenLocal()
}
apply
plugin
:
'
groovy
'
jar
{
from
"
LICENSE.md
"
}
dependencies
{
compile
'
org.antlr:antlr4-runtime:4.5.1
'
compile
'
org.slf4j:slf4j-api:
'
+
slf4jVersion
compile
'
com.graphql-java:java-dataloader:2.0.1
'
antlr
"
org.antlr:antlr4:4.5.1
"
testCompile
group
:
'
junit
'
,
name
:
'
junit
'
,
version
:
'
4.11
'
testCompile
'
org.spockframework:spock-core:1.0-groovy-2.4
'
testCompile
'
org.codehaus.groovy:groovy-all:2.4.10
'
testCompile
'
cglib:cglib-nodep:3.1
'
testCompile
'
org.objenesis:objenesis:2.1
'
testCompile
'
com.google.code.gson:gson:2.8.0
'
testCompile
'
org.eclipse.jetty:jetty-server:9.4.5.v20170502
'
testCompile
'
com.fasterxml.jackson.core:jackson-databind:2.8.8.1
'
testCompile
'
org.slf4j:slf4j-simple:
'
+
slf4jVersion
testCompile
'
org.awaitility:awaitility-groovy:3.0.0
'
}
compileJava
.
source file(
"
build/generated-src
"
), sourceSets
.
main
.
java
generateGrammarSource
{
maxHeapSize
=
"
64m
"
arguments
+
=
[
"
-visitor
"
]
outputDirectory
=
file(
"
${
project.buildDir
}
/generated-src/antlr/main/graphql/parser/antlr
"
)
}
task
sourcesJar
(
type
:
Jar
) {
dependsOn classes
classifier
'
sources
'
from sourceSets
.
main
.
allSource
}
task
javadocJar
(
type
:
Jar
,
dependsOn
: javadoc) {
classifier
=
'
javadoc
'
from javadoc
.
destinationDir
}
artifacts
{
archives sourcesJar
archives javadocJar
}
allprojects
{
tasks
.
withType(
Javadoc
) {
exclude(
'
**/antlr/**
'
)
}
}
publishing
{
publications {
graphqlJava(
MavenPublication
) {
version version
from components
.
java
artifact sourcesJar {
classifier
"
sources
"
}
artifact javadocJar {
classifier
"
javadoc
"
}
pom
.
withXml {
//
The ANTLR-related code below--introdcued in `1ac98bf`--addresses an issue with
//
the Gradle ANTLR plugin. `1ac98bf` can be reverted and this comment removed once
//
that issue is fixed and Gradle upgraded. See https://goo.gl/L92KiF and https://goo.gl/FY0PVR.
Node
pomNode
=
asNode()
pomNode
.
dependencies
.
'
*
'
.
findAll() {
it
.
artifactId
.
text()
==
'
antlr4
'
}
.
each() {
it
.
parent()
.
remove(it)
}
pomNode
.
children()
.
last()
+
{
resolveStrategy
=
Closure
.
DELEGATE_FIRST
name
'
graphql-java
'
description
'
GraphqL Java
'
url
"
https://github.com/graphql-java/graphql-java
"
scm {
url
"
https://github.com/graphql-java/graphql-java
"
connection
"
https://github.com/graphql-java/graphql-java
"
developerConnection
"
https://github.com/graphql-java/graphql-java
"
}
licenses {
license {
name
'
MIT
'
url
'
https://github.com/graphql-java/graphql-java/blob/master/LICENSE.md
'
distribution
'
repo
'
}
}
developers {
developer {
id
'
andimarek
'
name
'
Andreas Marek
'
}
}
}
}
}
}
}
bintray
{
user
=
System
.
env
.
BINTRAY_USER
?:
project[
"
bintray.user
"
]
key
=
System
.
env
.
BINTRAY_API_KEY
?:
project[
"
bintray.key
"
]
publications
=
[
'
graphqlJava
'
]
publish
=
true
pkg {
repo
=
'
graphql-java
'
name
=
'
graphql-java
'
desc
=
'
GraphQL in Java
'
licenses
=
[
'
MIT
'
]
vcsUrl
=
'
https://github.com/graphql-java/graphql-java
'
}
}
//
all publish tasks depend on the build task
tasks
.
withType(
PublishToMavenRepository
) {
dependsOn build
}
task
wrapper
(
type
:
Wrapper
) {
gradleVersion
=
'
4.0
'
distributionUrl
=
"
https://services.gradle.org/distributions/gradle-
${
gradleVersion
}
-all.zip
"
}
Back
|
FazBrowse Home
|
New Git URL