-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathbuild.gradle
138 lines (116 loc) · 4.99 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
131
132
133
134
135
buildscript {
repositories {
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.6'
}
}
ext {
springVersion = "4.2.4.RELEASE"
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
sourceCompatibility = 1.7
version = '0.1.1-SNAPSHOT'
group = 'com.github.gjrwebber'
repositories {
mavenLocal()
maven { url 'https://repo.spring.io/libs-release' }
maven { url 'https://repo.spring.io/libs-snapshot' }
mavenCentral()
}
dependencies {
compile("org.springframework:spring-core:${springVersion}")
compile("org.springframework:spring-context:${springVersion}")
compile("org.springframework:spring-tx:${springVersion}")
compile('org.springframework.data:spring-data-commons:1.11.0.RELEASE')
compile('com.tinkerpop.blueprints:blueprints-core:2.6.0')
compile('com.tinkerpop.gremlin:gremlin-java:2.6.0')
compile('com.tinkerpop.gremlin:gremlin-groovy:2.6.0')
compile('org.apache.commons:commons-collections4:4.0')
compile('org.apache.commons:commons-lang3:3.4')
compile('org.reflections:reflections:0.9.9-RC1')
testCompile('junit:junit:4.12')
testCompile('org.mockito:mockito-core:1.10.19')
testCompile("org.springframework:spring-test:${springVersion}")
// testCompile('org.slf4j:slf4j-simple:1.7.7')
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
javadoc {
failOnError = false
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'Spring Data Gremlin'
packaging 'jar'
description 'Spring Data module for Gremlin repositories.'
url 'https://github.com/gjrwebber/spring-data-gremlin'
scm {
connection 'scm:git:[email protected]:gjrwebber/spring-data-gremlin.git'
developerConnection 'scm:git:[email protected]:gjrwebber/spring-data-gremlin.git'
url '[email protected]:gjrwebber/spring-data-gremlin.git'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
comments '\n\t\t\tCopyright 2008-2013 the original author or authors.\n' +
'\n' +
'\t\t\tLicensed under the Apache License, Version 2.0 (the "License");\n' +
'\t\t\tyou may not use this file except in compliance with the License.\n' +
'\t\t\tYou may obtain a copy of the License at\n' +
'\n' +
'\t\t\t\t http://www.apache.org/licenses/LICENSE-2.0\n' +
'\n' +
'\t\t\tUnless required by applicable law or agreed to in writing, software\n' +
'\t\t\tdistributed under the License is distributed on an "AS IS" BASIS,\n' +
'\t\t\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n' +
'\t\t\timplied.\n' +
'\t\t\tSee the License for the specific language governing permissions and\n' +
'\t\t\tlimitations under the License.\n\t\t'
}
}
developers {
developer {
id 'gjrwebber'
name 'Graham Webber'
email '[email protected]'
}
}
}
}
}
}
}