forked from neo4j-contrib/neo4j-apoc-procedures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
110 lines (88 loc) · 2.65 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '4.0.3' apply false
id "com.bmuschko.nexus" version "2.3.1"
id 'maven-publish'
id 'antlr'
id "org.sonarqube" version "2.7"
id "com.github.hierynomus.license-report" version"0.15.0"
}
downloadLicenses {
excludeDependencies = [
'org.neo4j.*'
]
}
allprojects {
group = 'org.neo4j.procedure'
version = '4.2.0.2'
archivesBaseName = 'apoc'
description = """neo4j-apoc-procedures"""
}
apply plugin: 'java'
repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
jcenter()
//mavenCentral()
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
mavenLocal()
}
subprojects {
apply plugin: 'java'
repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
jcenter()
//mavenCentral()
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
mavenLocal()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
task mySourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task myJavadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
test {
//exclude '**/CypherProceduresClusterTest.class'//, '**/AtomicTest.class'
// neo4jDockerImage system property is used in TestContainerUtil
systemProperties 'user.language' : 'en' , 'user.country ' : 'US', 'neo4jDockerImage' : 'neo4j:4.2.2-enterprise', 'neo4jCommunityDockerImage': 'neo4j:4.2.2'
maxHeapSize = "8G"
forkEvery = 50
maxParallelForks = 1 //Runtime.runtime.availableProcessors().intdiv(2) + 1
if (System.env.TRAVIS !=null) {
minHeapSize = "128m"
maxHeapSize = "512m"
}
filter {
setFailOnNoMatchingTests(false)
}
ignoreFailures(true)
}
configurations {
apt
}
compileJava {
options.annotationProcessorPath = configurations.apt
options.compilerArgs += ["-AIgnoreContextWarnings"]
}
}
ext {
// NB: due to version.json generation by parsing this file, the next line must not have any if/then/else logic
neo4jVersion = "4.2.2"
// instead we apply the override logic here
neo4jVersionEffective = project.hasProperty("neo4jVersionOverride") ? project.getProperty("neo4jVersionOverride") : neo4jVersion
testContainersVersion = '1.15.1'
}