|
| 1 | +apply plugin: 'java-library' |
| 2 | +apply plugin: 'me.champeau.mrjar' |
| 3 | + |
| 4 | +description = 'Neo4j Graph Data Science :: Neo4j Kernel Adapter 5.4' |
| 5 | + |
| 6 | +group = 'org.neo4j.gds' |
| 7 | + |
| 8 | +// for all 5.x versions |
| 9 | +if (ver.'neo4j'.startsWith('5.')) { |
| 10 | + sourceSets { |
| 11 | + main { |
| 12 | + java { |
| 13 | + srcDirs = ['src/main/java17'] |
| 14 | + } |
| 15 | + } |
| 16 | + } |
| 17 | + |
| 18 | + dependencies { |
| 19 | + annotationProcessor project(':annotations') |
| 20 | + annotationProcessor group: 'org.immutables', name: 'value', version: ver.'immutables' |
| 21 | + annotationProcessor group: 'org.neo4j', name: 'annotations', version: neos.'5.4' |
| 22 | + |
| 23 | + compileOnly project(':annotations') |
| 24 | + compileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion' |
| 25 | + compileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables' |
| 26 | + compileOnly group: 'org.neo4j', name: 'annotations', version: neos.'5.4' |
| 27 | + compileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.4' |
| 28 | + compileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.4' |
| 29 | + compileOnly group: 'org.neo4j.community', name: 'it-test-support', version: neos.'5.4' |
| 30 | + |
| 31 | + implementation project(':neo4j-kernel-adapter-api') |
| 32 | + } |
| 33 | +} else { |
| 34 | + multiRelease { |
| 35 | + targetVersions 11, 17 |
| 36 | + } |
| 37 | + |
| 38 | + if (!project.hasProperty('no-forbidden-apis')) { |
| 39 | + forbiddenApisJava17 { |
| 40 | + exclude('**') |
| 41 | + } |
| 42 | + } |
| 43 | + |
| 44 | + dependencies { |
| 45 | + annotationProcessor group: 'org.neo4j', name: 'annotations', version: ver.'neo4j' |
| 46 | + compileOnly group: 'org.neo4j', name: 'annotations', version: ver.'neo4j' |
| 47 | + |
| 48 | + implementation project(':neo4j-kernel-adapter-api') |
| 49 | + |
| 50 | + java17AnnotationProcessor project(':annotations') |
| 51 | + java17AnnotationProcessor group: 'org.immutables', name: 'value', version: ver.'immutables' |
| 52 | + java17AnnotationProcessor group: 'org.neo4j', name: 'annotations', version: neos.'5.4' |
| 53 | + |
| 54 | + java17CompileOnly project(':annotations') |
| 55 | + java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables' |
| 56 | + java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.4' |
| 57 | + java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.4' |
| 58 | + java17CompileOnly group: 'org.neo4j.community', name: 'it-test-support', version: neos.'5.4' |
| 59 | + java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion' |
| 60 | + |
| 61 | + java17Implementation project(':neo4j-kernel-adapter-api') |
| 62 | + } |
| 63 | +} |
0 commit comments