From b41aaa39bd607284dd67c64f0ad530a7a4c36ef2 Mon Sep 17 00:00:00 2001 From: Alexandre <alexandre.perles@gmail.com> Date: Tue, 6 Feb 2024 09:49:16 +0100 Subject: [PATCH] Use java for usage example, Update dependencies --- README.md | 7 ++++--- build.gradle | 16 ++++++++-------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index bb81a9c..9535b96 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 4835731..67710fc 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 { -- GitLab