diff --git a/README.md b/README.md index bb81a9ccd16cf1a0b71b244cd3a72f1b4d9a3b89..9535b967e7f790ded89b86c662e0aed2daa74a12 100644 --- a/README.md +++ b/README.md @@ -37,8 +37,9 @@ project(':amas4dc').projectDir = new File(settingsDir, '../amas4dc') ## Usage example ```java -var amas4dc = new AMAS4DC<CustomDataPoint>(new MASSettings(new CustomDataPointDistanceMethod(), 0.5f, EnumSet.noneOf(AMASOption), new CustomDataPointFuser())) +var amas4dc = new AMAS4DC<CustomDataPoint>(new MASSettings(new CustomDataPointDistanceMethod(), 0.5f, EnumSet.noneOf(AMASOption), new CustomDataPointFuser())); -amas4dc.fit([new CustomDataPoint(1), new CustomDataPoint(2)]) -var results = amas4dc.retrieveClusters() +amas4dc.fit(List.of(new CustomDataPoint(1), new CustomDataPoint(2))); + +var results = amas4dc.retrieveClusters(); ``` \ No newline at end of file diff --git a/build.gradle b/build.gradle index 483573198dba99a353faad01663d2f35b58536db..67710fc0b85328b0c6993dfacde7bb4cca4c97aa 100644 --- a/build.gradle +++ b/build.gradle @@ -36,16 +36,16 @@ dependencies { implementation 'com.github.alexandreprl:lxplot:main-SNAPSHOT' - testImplementation platform('org.junit:junit-bom:5.9.1') - testImplementation 'org.junit.jupiter:junit-jupiter' + testImplementation platform('org.junit:junit-bom:5.9.2') + testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2' // https://mvnrepository.com/artifact/org.projectlombok/lombok - compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.26' - annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.26' - testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0' - testImplementation 'org.codehaus.groovy:groovy-all:3.0.8' - testImplementation "net.bytebuddy:byte-buddy:1.9.3" - testImplementation 'org.objenesis:objenesis:3.1' + compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.30' + annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.30' + testImplementation 'org.spockframework:spock-core:2.4-M1-groovy-4.0' + testImplementation 'org.codehaus.groovy:groovy-all:3.0.16' + testImplementation 'net.bytebuddy:byte-buddy:1.14.2' + testImplementation 'org.objenesis:objenesis:3.2' } test {