forked from Enigmatis/graphql-java-annotations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (111 loc) · 3.29 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
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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:3.1.0'
}
}
plugins {
id "com.github.hierynomus.license" version "0.12.1"
id "com.jfrog.bintray" version "1.6"
id 'net.researchgate.release' version '2.3.4'
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'osgi'
apply plugin: 'biz.aQute.bnd.builder'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'io.codearte.nexus-staging'
apply plugin: 'com.bmuschko.nexus'
idea {
project {
languageLevel = '1.8'
vcs = 'Git'
ipr.withXml { xmlFile ->
// enable 'Annotation Processors'
xmlFile.asNode().component.find {
println(it)
return it.@name == 'CompilerConfiguration'
}['annotationProcessing'][0].replaceNode {
annotationProcessing {
profile(default: true, name: 'Default', useClasspath: 'true', enabled: true)
}
}
}
// TODO: add -parameters to IDEA's javac
}
}
release {
tagTemplate = 'v${version}'
failOnPublishNeeded = false
}
jar {
manifest {
instruction 'Import-Package', 'javax.validation.constraints', '*'
}
}
repositories {
mavenCentral()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-parameters"
}
}
dependencies {
compile 'javax.validation:validation-api:1.1.0.Final'
compile 'com.graphql-java:graphql-java:2.2.0'
// OSGi
compileOnly 'org.osgi:org.osgi.core:6.0.0'
compileOnly 'org.osgi:org.osgi.service.cm:1.5.0'
compileOnly 'org.osgi:org.osgi.service.component:1.3.0'
compileOnly 'biz.aQute.bnd:biz.aQute.bndlib:3.2.0'
testCompile 'org.testng:testng:6.9.10'
}
test.useTestNG()
modifyPom {
project {
name 'graphql-java-annotations'
description 'Annotations-based syntax for GraphQL schema definition'
url 'https://github.com/graphql-java/graphql-java-annotations'
inceptionYear '2016'
scm {
url 'https://github.com/graphql-java/graphql-java-annotations'
connection 'scm:https://[email protected]/graphql-java/graphql-java-annotations.git'
developerConnection 'scm:git://github.com/graphql-java/graphql-java-annotations.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'yrashk'
name 'Yurii Rashkovskii'
email '[email protected]'
}
}
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.graphql-java'
artifactId project.name
version project.version
artifact sourcesJar
artifact javadocJar
}
}
}