forked from neo4j-contrib/neo4j-apoc-procedures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
175 lines (145 loc) · 4.64 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
buildscript {
repositories {
mavenCentral()
//Needed only for SNAPSHOT versions
//maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
}
}
plugins {
id 'java'
id 'idea'
id 'com.github.johnrengelman.shadow' version '1.2.3'
id "org.asciidoctor.convert" version "1.5.3"
id "com.bmuschko.nexus" version "2.3.1"
}
apply plugin: 'io.codearte.nexus-staging'
sourceCompatibility = 1.8
targetCompatibility = 1.8
idea {
project {
ext.jdkName = '1.8'
ext.languageLevel = '1.8'
}
}
group = 'org.neo4j.procedure'
version = '3.0.4.2-SNAPSHOT '
archivesBaseName = 'apoc'
description = """neo4j-apoc-procedures"""
ext {
neo4jVersion = "3.0.4"
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-codec', name: 'commons-codec', version:'1.9'
compileOnly group: 'net.biville.florent', name: 'neo4j-sproc-compiler', version:'1.0-M01'
testCompile group: 'org.apache.derby', name: 'derby', version:'10.12.1.1'
testCompile group: 'org.neo4j', name: 'neo4j-enterprise', version:neo4jVersion
testCompile group: 'org.neo4j', name: 'neo4j-kernel', version:neo4jVersion, classifier: "tests"
testCompile group: 'org.neo4j', name: 'neo4j-io', version:neo4jVersion, classifier: "tests"
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version:'1.3'
compileOnly 'org.mongodb:mongodb-driver:3.2.2'
testCompile 'org.mongodb:mongodb-driver:3.2.2'
compileOnly 'com.couchbase.client:java-client:2.3.1'
testCompile 'com.couchbase.client:java-client:2.3.1'
compileOnly(group: 'org.neo4j', name: 'neo4j', version:neo4jVersion)
compileOnly(group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version:'1.9.7')
testCompile(group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version:'1.9.7')
compileOnly(group: 'org.ow2.asm', name: 'asm', version:'5.0.2')
compile group: 'com.github.javafaker', name: 'javafaker', version:'0.10'
}
test {
systemProperties 'user.language': 'en', 'user.country': 'US'
testLogging {
exceptionFormat = 'full'
}
}
javadoc {
failOnError = false
options.addStringOption('Xdoclint:none', '-quiet')
}
shadowJar {
dependencies {
include(dependency('commons-codec:commons-codec'))
include(dependency('com.github.javafaker:javafaker'))
}
}
/**************
* ASCIIDOCTOR *
**************/
asciidoctor {
sourceDir = file('docs')
sources { include 'index.adoc' }
outputDir = file('build/docs')
}
asciidoctor.doLast {
copy {
from 'build/docs/html5'
into "$projectDir/docs"
include 'index.html'
}
}
assemble.dependsOn(asciidoctor)
/******
* END *
******/
// publishing
nexusStaging {
packageGroup = "org.neo4j"
stagingProfileId = "acdc2431d20c3d"
//serverUrl = stable release repository - by default Sonatype OSSRH - https://oss.sonatype.org/service/local/
//username = (optional) - username to the server
// password = (optional) - password
//numberOfRetries (optional) - number of retries when waiting for a repository to change a state - by default 7
//delayBetweenRetriesInMillis (optional) - delay between retries - by default 1000 milliseconds
}
modifyPom {
project {
name 'neo4j-apoc-procedures'
packaging 'jar'
description 'A collection of useful Neo4j Procedures'
url 'http://github.com/neo4j-contrib/neo4j-apoc-procedures'
organization {
name "Neo Technology, Inc."
url "http://neotechnology.com"
}
scm {
url 'https://github.com/neo4j-contrib/neo4j-apoc-procedures'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
comments """Note that this license is for the project itself,
and not for its dependencies."""
distribution "repo"
}
}
developers {
developer {
id 'michaelhunger'
name 'Michael Hunger'
email '[email protected]'
}
}
}
}
// tweaks for travis
// from
if (System.env.TRAVIS == 'true') {
allprojects {
tasks.withType(GroovyCompile) {
groovyOptions.fork = false
}
tasks.withType(Test) {
// containers (currently) have 2 dedicated cores and 4GB of memory
maxParallelForks = 2
minHeapSize = '128m'
}
}
}