Skip to content

Commit

Permalink
Merge pull request #8525 from neo-technology/shush
Browse files Browse the repository at this point in the history
Shush build, please
  • Loading branch information
jjaderberg authored Dec 28, 2023
2 parents 0f7e2cd + 9d7cacd commit 74426d2
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 29 deletions.
3 changes: 3 additions & 0 deletions applications/graph-store-catalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
annotationProcessor group: 'org.immutables', name: 'value', version: ver.'immutables'
compileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
compileOnly group: 'org.jetbrains', name: 'annotations', version: ver.'jetbrains-annotations'
compileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

// DependencyResolver, which we should get rid of
compileOnly(group: 'org.neo4j', name: 'neo4j-common', version: ver.'neo4j') { transitive = false }
Expand Down Expand Up @@ -48,6 +49,8 @@ dependencies {
implementation project(':termination')
implementation project(':transaction')

testCompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

testImplementation group: 'org.assertj', name: 'assertj-core', version: ver.'assertj'
testImplementation platform(dep.junit5bom)
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: ver.'junit5bom'
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.10/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.10'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.10'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.11/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.11'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.11'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.12/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.12'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.12'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.13/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.13'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.13'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.14/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.14'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.14'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.15/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.15'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.15'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.6/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.6'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.6'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.7/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.7'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.7'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.8/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.8'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.8'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
1 change: 1 addition & 0 deletions compatibility/5.9/storage-engine-adapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if (ver.'neo4j'.startsWith('5.')) {
java17CompileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
java17CompileOnly group: 'org.neo4j', name: 'neo4j', version: neos.'5.9'
java17CompileOnly group: 'org.neo4j', name: 'neo4j-record-storage-engine', version: neos.'5.9'
java17CompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

java17Implementation project(':core')
java17Implementation project(':storage-engine-adapter-api')
Expand Down
2 changes: 2 additions & 0 deletions config-generator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ dependencies {
implementation group: 'com.squareup', name: 'javapoet', version: ver.'javapoet'
implementation group: 'org.jetbrains', name: 'annotations', version: ver.'jetbrains-annotations'

testCompileOnly group: 'com.google.auto.service', name: 'auto-service', version: ver.'auto-service'

testImplementation platform(dep.junit5bom)
testImplementation project(':core-test-utils')
testImplementation dep.junit5jupiter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ protected boolean isViolatedInternal(Object inputValue) {
return b != value;
}

@Override
String getValueAsString() {
throw new UnsupportedOperationException("TODO");
}

@Override
String asErrorMessage(String key, Object value) {
return formatWithLocale(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,4 @@ protected boolean isViolatedInternal(Object inputValue) {

return d > value;
}

@Override
String getValueAsString() {
throw new UnsupportedOperationException("TODO");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ private void assertTypeCompatible(Object inputValue) {
*/
protected abstract boolean isViolatedInternal(Object inputValue);

/**
* This is handy for creating error messages
*/
@Deprecated
abstract String getValueAsString();

String asErrorMessage(String key, Object value) {
return formatWithLocale(
"Configuration parameter '%s' with value '%s' exceeds it's limit of '%s'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,4 @@ public boolean isViolatedInternal(Object inputValue) {

return l > value;
}

@Override
public String getValueAsString() {
return String.valueOf(value);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ Object getValue() {
protected boolean isViolatedInternal(Object inputValue) {
throw new UnsupportedOperationException("TODO");
}

@Override
String getValueAsString() {
throw new UnsupportedOperationException("TODO");
}
};

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void process(Document document, PreprocessorReader reader, String target,
Path partial = resolvePartial(target);
String partialText = readPartial(partial);

reader.push_include(partialText, target, null, Integer.MIN_VALUE, Collections.emptyMap());
reader.pushInclude(partialText, target, null, Integer.MIN_VALUE, Collections.emptyMap());
}

@NotNull
Expand Down
1 change: 1 addition & 0 deletions native-projection/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies {
compileOnly group: 'org.immutables', name: 'builder', version: ver.'immutables'
compileOnly group: 'org.immutables', name: 'value-annotations', version: ver.'immutables'
compileOnly group: 'org.jetbrains', name: 'annotations', version: ver.'jetbrains-annotations'
compileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

neodeps().each {
compileOnly(group: 'org.neo4j', name: it, version: ver.'neo4j') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package org.neo4j.gds;

import org.reflections.Reflections;
import org.reflections.scanners.MethodAnnotationsScanner;
import org.reflections.scanners.Scanners;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
Expand All @@ -36,7 +36,7 @@ public final class ProcedureAndFunctionScanner {

private static final List<Reflections> reflections = PACKAGES_TO_SCAN
.stream()
.map(pkg -> new Reflections(pkg, new MethodAnnotationsScanner()))
.map(pkg -> new Reflections(pkg, Scanners.MethodsAnnotated))
.collect(Collectors.toList());

private ProcedureAndFunctionScanner() {}
Expand Down
1 change: 1 addition & 0 deletions proc/embeddings/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ dependencies {
testAnnotationProcessor project(':annotations')

testCompileOnly group: 'org.immutables', name: 'builder', version: ver.'immutables'
testCompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'

testImplementation project(':native-projection')
testImplementation project(':open-model-catalog')
Expand Down
3 changes: 3 additions & 0 deletions procedures/facade/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ dependencies {

compileOnly project(':pregel')

compileOnly group: 'org.immutables', name: 'value', version: ver.'immutables'
compileOnly group: 'org.jetbrains', name: 'annotations', version: ver.'jetbrains-annotations'

// test infrastructure
testCompileOnly group: 'org.immutables', name: 'value', version: ver.'immutables'
testCompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: ver.'junit5bom'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: ver.'junit5bom'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: ver.'junit5bom'
Expand Down
2 changes: 2 additions & 0 deletions procedures/integration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ dependencies {

testImplementation(group: 'org.neo4j', name: it, version: ver.'neo4j')
}
compileOnly project(':annotations')
compileOnly group: 'org.immutables', name: 'value', version: ver.'immutables'

implementation project(':config-api')
implementation project(':core')
Expand Down
1 change: 1 addition & 0 deletions test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ dependencies {
testImplementation project(':edition-api')
testImplementation project(':graph-schema-api')

testCompileOnly group: 'org.immutables', name: 'builder', version: ver.'immutables'
testCompileOnly group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: ver.'spotbugsToolVersion'
}

0 comments on commit 74426d2

Please sign in to comment.