-
Notifications
You must be signed in to change notification settings - Fork 494
/
build.gradle
160 lines (136 loc) · 5.17 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
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '7.1.0' apply false
id 'maven-publish'
id 'antlr'
id "com.github.hierynomus.license-report" version"0.16.1"
id "org.jetbrains.kotlin.jvm" version "1.8.0" apply false
}
downloadLicenses {
excludeDependencies = [
'org.neo4j.*'
]
}
allprojects {
group = 'org.neo4j.procedure'
version = '5.25.0'
archivesBaseName = 'apoc'
description = """neo4j-apoc-procedures"""
}
apply plugin: 'java-library'
if (System.env.CI != null && System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "")
apply from: 'teamcity-repository.gradle'
repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
maven {
url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
} else {
mavenCentral()
}
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
mavenLocal()
}
subprojects {
apply plugin: 'java-library'
repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
if (System.getenv("CODEARTIFACT_DOWNLOAD_URL") ?: "" != "") {
maven {
url System.getenv('CODEARTIFACT_DOWNLOAD_URL')
credentials {
username System.getenv('CODEARTIFACT_USERNAME')
password System.getenv('CODEARTIFACT_TOKEN')
}
}
} else {
mavenCentral()
}
maven {
url "https://repo.gradle.org/gradle/libs-releases"
}
mavenLocal()
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
task mySourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = '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': project.hasProperty("neo4jDockerEeOverride") ? project.getProperty("neo4jDockerEeOverride") : 'neo4j:5.25.1-enterprise',
'neo4jCommunityDockerImage': project.hasProperty("neo4jDockerCeOverride") ? project.getProperty("neo4jDockerCeOverride") : 'neo4j:5.25.1',
'coreDir': 'apoc-core/core',
'testDockerBundle': false
maxHeapSize = "5G"
forkEvery = 50
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
minHeapSize = "128m"
// This would apply only to TeamCity
// We need to ignore the failures because we may have tests muted
if (System.env.TEAMCITY_VERSION != null) {
ignoreFailures(true)
if (project.hasProperty('excludeSeleniumTests')) {
exclude '**/LoadHtmlTest*'
exclude '**/LoadHtmlTestParameterized*'
}
}
jvmArgs = [ "--add-opens", "java.base/java.lang=ALL-UNNAMED",
"--add-opens", "java.base/java.nio=ALL-UNNAMED",
"--add-opens", "java.base/java.io=ALL-UNNAMED",
"--add-opens", "java.base/java.util=ALL-UNNAMED",
"--add-opens", "java.base/java.util.concurrent=ALL-UNNAMED",
"--add-opens", "java.base/sun.net.www.protocol.http=ALL-UNNAMED",
"--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.tools.javac=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.source.doctree=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.source.tree=ALL-UNNAMED",
"--add-opens", "jdk.compiler/com.sun.source.util=ALL-UNNAMED" ]
filter {
setFailOnNoMatchingTests(false)
}
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
configurations {
apt
}
compileJava {
options.annotationProcessorPath = configurations.apt
options.compilerArgs += ["-AIgnoreContextWarnings"]
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
}
ext {
// NB: due to version.json generation by parsing this file, the next line must not have any if/then/else logic
neo4jVersion = "5.25.1"
// instead we apply the override logic here
neo4jVersionEffective = project.hasProperty("neo4jVersionOverride") ? project.getProperty("neo4jVersionOverride") : neo4jVersion
testContainersVersion = '1.20.2'
apacheArrowVersion = '15.0.0'
}