@@ -4,8 +4,6 @@ buildscript {
44 mavenCentral()
55 }
66 dependencies {
7- classpath " io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
8- classpath ' com.bmuschko:gradle-nexus-plugin:2.3.1'
97 classpath ' biz.aQute.bnd:biz.aQute.bnd.gradle:3.1.0'
108 }
119}
@@ -15,36 +13,63 @@ plugins {
1513 id ' net.researchgate.release' version ' 2.3.4'
1614}
1715
18- apply plugin : ' idea'
19-
20- release {
21- tagTemplate = ' v${version}'
22- failOnPublishNeeded = false
16+ apply plugin : ' java'
17+ compileJava {
18+ sourceCompatibility = ' 1.8'
19+ targetCompatibility = ' 1.8'
2320}
2421
25- afterReleaseBuild. dependsOn bintrayUpload
26-
2722repositories {
2823 mavenLocal()
2924 mavenCentral()
3025}
3126
32- apply plugin : ' java'
33- compileJava {
34- sourceCompatibility = ' 1.8'
35- targetCompatibility = ' 1.8'
27+ dependencies {
28+ compile ' org.slf4j:slf4j-api:1.7.21'
29+
30+ // Useful utilities
31+ compile ' com.google.guava:guava:20.0'
32+
33+ // Unit testing
34+ testCompile ' org.testng:testng:6.9.10'
35+ testCompile ' org.mockito:mockito-core:1.10.19'
36+ testCompile ' org.slf4j:slf4j-simple:1.7.24'
37+
38+ // Remove boilerplate
39+ compile ' org.projectlombok:lombok:1.16.8'
40+
41+ // OSGi
42+ compileOnly ' org.osgi:org.osgi.core:6.0.0'
43+ compileOnly ' org.osgi:org.osgi.service.cm:1.5.0'
44+ compileOnly ' org.osgi:org.osgi.service.component:1.3.0'
45+ compileOnly ' biz.aQute.bnd:biz.aQute.bndlib:3.1.0'
46+
47+ // Servlet
48+ compile ' javax.servlet:javax.servlet-api:3.0.1'
49+ // Multipart support
50+ compile ' commons-fileupload:commons-fileupload:1.3.1'
51+
52+ // GraphQL
53+ compile ' com.graphql-java:graphql-java:2.3.0'
54+
55+ // Optional, but used for testing... not sure if there's a better way.
56+ compileOnly ' com.graphql-java:graphql-java-annotations:0.13.1'
57+ testCompile ' com.graphql-java:graphql-java-annotations:0.13.1'
58+
59+ // JSON
60+ compile ' com.fasterxml.jackson.core:jackson-core:2.8.4'
61+ compile ' com.fasterxml.jackson.core:jackson-annotations:2.8.4'
62+ compile ' com.fasterxml.jackson.core:jackson-databind:2.8.4'
63+ compile ' com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.8.4'
3664}
3765
3866apply plugin : ' osgi'
3967apply plugin : ' license'
4068apply plugin : ' java-library-distribution'
4169apply plugin : ' biz.aQute.bnd.builder'
4270apply plugin : ' com.jfrog.bintray'
43- apply plugin : ' maven'
4471apply plugin : ' maven-publish'
45-
46- apply plugin : ' io.codearte.nexus-staging'
47- apply plugin : ' com.bmuschko.nexus'
72+ apply plugin : ' idea'
4873
4974jar {
5075 manifest {
@@ -118,6 +143,13 @@ publishing {
118143 }
119144}
120145
146+ release {
147+ tagTemplate = ' v${version}'
148+ failOnPublishNeeded = false
149+ }
150+
151+ afterReleaseBuild. dependsOn bintrayUpload
152+
121153bintray {
122154 user = System . getenv(' BINTRAY_USER' )
123155 key = System . getenv(' BINTRAY_KEY' )
@@ -134,45 +166,6 @@ bintray {
134166 }
135167}
136168
137- dependencies {
138- compile ' org.slf4j:slf4j-api:1.7.21'
139-
140- // Useful utilities
141- compile ' com.google.guava:guava:20.0'
142-
143- // Unit testing
144- testCompile ' org.testng:testng:6.9.10'
145- testCompile ' org.mockito:mockito-core:1.10.19'
146- testCompile ' org.slf4j:slf4j-simple:1.7.24'
147-
148- // Remove boilerplate
149- compile ' org.projectlombok:lombok:1.16.8'
150-
151- // OSGi
152- compileOnly ' org.osgi:org.osgi.core:6.0.0'
153- compileOnly ' org.osgi:org.osgi.service.cm:1.5.0'
154- compileOnly ' org.osgi:org.osgi.service.component:1.3.0'
155- compileOnly ' biz.aQute.bnd:biz.aQute.bndlib:3.1.0'
156-
157- // Servlet
158- compile ' javax.servlet:javax.servlet-api:3.0.1'
159- // Multipart support
160- compile ' commons-fileupload:commons-fileupload:1.3.1'
161-
162- // GraphQL
163- compile ' com.graphql-java:graphql-java:2.3.0'
164-
165- // Optional, but used for testing... not sure if there's a better way.
166- compileOnly ' com.graphql-java:graphql-java-annotations:0.13.1'
167- testCompile ' com.graphql-java:graphql-java-annotations:0.13.1'
168-
169- // JSON
170- compile ' com.fasterxml.jackson.core:jackson-core:2.8.4'
171- compile ' com.fasterxml.jackson.core:jackson-annotations:2.8.4'
172- compile ' com.fasterxml.jackson.core:jackson-databind:2.8.4'
173- compile ' com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.8.4'
174- }
175-
176169test. useTestNG()
177170
178171idea {
@@ -191,44 +184,3 @@ idea {
191184 }
192185 }
193186}
194-
195- extraArchive {
196- sources false
197- javadoc false
198- }
199-
200- modifyPom {
201- project {
202- name ' graphql-java-servlet'
203- description ' relay.js-compatible GraphQL servlet'
204- url ' https://github.com/graphql-java/graphql-java-servlet'
205- inceptionYear ' 2016'
206-
207- scm {
208- url ' https://github.com/graphql-java/graphql-java-servlet'
209- connection ' scm:https://yrashk@github.com/graphql-java/graphql-java-servlet.git'
210- developerConnection ' scm:git://github.com/graphql-java/graphql-java-servlet.git'
211- }
212-
213- licenses {
214- license {
215- name ' The Apache Software License, Version 2.0'
216- url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
217- distribution ' repo'
218- }
219- }
220-
221- developers {
222- developer {
223- id ' yrashk'
224- name ' Yurii Rashkovskii'
225- email ' yrashk@gmail.com'
226- }
227- developer {
228- id ' apottere'
229- name ' Andrew Potter'
230- email ' apottere@gmail.com'
231- }
232- }
233- }
234- }
0 commit comments