代码拉取完成,页面将自动刷新
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id 'maven-publish'
id "com.github.hierynomus.license-report" version"0.16.1"
id "com.diffplug.spotless" version "6.7.2"
}
ext {
// Move to gradle.properties (but versions.json generation build depends on this right now)
neo4jVersion = '4.4.36'
publicDir = "${project.rootDir}"
neo4jVersionEffective = project.hasProperty("neo4jVersionOverride") ? project.getProperty("neo4jVersionOverride") : neo4jVersion
neo4jDockerVersion = project.hasProperty("neo4jDockerVersionOverride") ? project.getProperty("neo4jDockerVersionOverride") : neo4jVersion
testContainersVersion = '1.17.6'
}
subprojects {
apply plugin: "com.diffplug.spotless"
apply plugin: 'java-library'
spotless {
java {
target 'src/*/java/**/*.java'
removeUnusedImports()
palantirJavaFormat()
}
}
}
downloadLicenses {
excludeDependencies = [
'org.neo4j.*'
]
}
allprojects {
group = 'org.neo4j.procedure'
version = '4.4.0.30'
base {
archivesName = 'apoc'
}
description = """neo4j-apoc-procedures"""
}
apply plugin: 'java-library'
if (System.env.CI != null)
apply from: 'teamcity-repository.gradle'
repositories {
/*maven { // this contains the neo4j 4.0.0-beta jars
url "https://neo4j.bintray.com/community/"
}*/
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/"
}*/
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
archiveClassifier = 'sources'
dependsOn(':full:generateGrammarSource')
}
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:${neo4jDockerVersion}-enterprise-debian",
'neo4jCommunityDockerImage': "neo4j:${neo4jDockerVersion}-debian"
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*'
}
}
filter {
setFailOnNoMatchingTests(false)
}
// in TC we don't have the CI env so we can manage it in this way
if (System.env.TEAMCITY_VERSION != null) {
ignoreFailures(true)
}
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
}
configurations {
apt
}
compileJava {
options.annotationProcessorPath = configurations.apt
options.compilerArgs += ["-AIgnoreContextWarnings"]
}
}
apply from: "licenses-3rdparties.gradle"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。