11buildscript {
22 repositories {
33 jcenter()
4+ mavenCentral()
45 }
56 dependencies {
7+ classpath " io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
8+ classpath ' com.bmuschko:gradle-nexus-plugin:2.3.1'
69 classpath ' biz.aQute.bnd:biz.aQute.bnd.gradle:3.1.0'
710 }
811}
9-
1012plugins {
1113 id " com.github.hierynomus.license" version " 0.12.1"
1214 id " com.jfrog.bintray" version " 1.6"
@@ -23,8 +25,7 @@ release {
2325afterReleaseBuild. dependsOn bintrayUpload
2426
2527repositories {
26- jcenter()
27- mavenLocal()
28+ mavenCentral()
2829}
2930
3031apply plugin : ' java'
@@ -36,6 +37,9 @@ apply plugin: 'com.jfrog.bintray'
3637apply plugin : ' maven'
3738apply plugin : ' maven-publish'
3839
40+ apply plugin : ' io.codearte.nexus-staging'
41+ apply plugin : ' com.bmuschko.nexus'
42+
3943jar {
4044 manifest {
4145 instruction ' Require-Capability' , ' osgi.extender'
@@ -88,12 +92,15 @@ bintray {
8892}
8993
9094dependencies {
95+ compile ' org.slf4j:slf4j-api:1.7.21'
96+ compile ' org.slf4j:slf4j-simple:1.7.21'
97+
9198 // Useful utilities
9299 compile ' com.google.guava:guava:19.0'
93100
94101 // Unit testing
95102 testCompile ' org.testng:testng:6.9.10'
96- testCompile " org.mockito:mockito-core:1.+ "
103+ testCompile " org.mockito:mockito-core:1.10.19 "
97104
98105 // Remove boilerplate
99106 compile ' org.projectlombok:lombok:1.16.8'
@@ -111,7 +118,7 @@ dependencies {
111118
112119 // GraphQL
113120 compile ' com.graphql-java:graphql-java:2.0.0'
114- compile ' graphql-java-annotations :graphql-java-annotations:0.8.4 '
121+ compile ' com. graphql-java:graphql-java-annotations:0.9.0 '
115122
116123 // JSON
117124 compile ' com.fasterxml.jackson.core:jackson-core:2.7.3'
@@ -139,3 +146,39 @@ idea {
139146 }
140147 }
141148}
149+
150+ extraArchive {
151+ sources false
152+ javadoc false
153+ }
154+
155+ modifyPom {
156+ project {
157+ name ' graphql-java-servlet'
158+ description ' elay.js-compatible GraphQL servlet'
159+ url ' https://github.com/graphql-java/graphql-java-servlet'
160+ inceptionYear ' 2016'
161+
162+ scm {
163+ url ' https://github.com/graphql-java/graphql-java-servlet'
164+ connection ' scm:https://yrashk@github.com/graphql-java/graphql-java-servlet.git'
165+ developerConnection ' scm:git://github.com/graphql-java/graphql-java-servlet.git'
166+ }
167+
168+ licenses {
169+ license {
170+ name ' The Apache Software License, Version 2.0'
171+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
172+ distribution ' repo'
173+ }
174+ }
175+
176+ developers {
177+ developer {
178+ id ' yrashk'
179+ name ' Yurii Rashkovskii'
180+ email ' yrashk@gmail.com'
181+ }
182+ }
183+ }
184+ }
0 commit comments