Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenquotes.git

Upgrades libraries and JDK

AuthorDaveJarvis <email>
Date2023-12-10 11:27:04 GMT-0800
Commit1d889ac16f598412e26cc6c301beff9bcc5d2422
Parent027ae8f
build.gradle
plugins {
id 'application'
- id 'com.palantir.git-version' version '0.15.0'
- id "me.champeau.jmh" version "0.6.6"
+ id 'com.palantir.git-version' version '3.0.0'
+ id "me.champeau.jmh" version "0.7.2"
}
dependencies {
// Command-line parsing
- implementation 'info.picocli:picocli:4.7.4'
+ implementation 'info.picocli:picocli:4.7.5'
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
- testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.0'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
+ testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.1'
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
}
compileJava {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
- options.compilerArgs.addAll(['--release', '20'])
+ options.compilerArgs.addAll(['--release', '21'])
}
tasks.named('test') {
useJUnitPlatform()
+}
+
+tasks.withType( JavaCompile ).configureEach {
+ options.compilerArgs += "--enable-preview"
+}
+
+tasks.withType( JavaExec ).configureEach {
+ jvmArgs += "--enable-preview"
+}
+
+tasks.withType( Test ).configureEach {
+ jvmArgs += "--enable-preview"
}
src/test/java/com/whitemagicsoftware/keenquotes/lex/LexerTest.java
final var list = asList( expected );
- testType( actual, ( lexeme, text ) -> lexeme.getType(), filter, list );
+ testType( actual, ( lexeme, _ ) -> lexeme.getType(), filter, list );
}
static void testType( final String actual, final LexemeType... expected ) {
- testType( actual, filter -> false, expected );
+ testType( actual, _ -> false, expected );
}
final BiFunction<Lexeme, String, A> f,
final List<E> elements ) {
- testType( text, f, filter -> false, elements );
+ testType( text, f, _ -> false, elements );
}
src/test/java/com/whitemagicsoftware/keenquotes/parser/CurlerTest.java
final var sb = new StringBuilder( 2 ^ 20 );
- try( final var reader = open( filename + ".html" ) ) {
+ try( final var reader = open( STR."\{filename}.html" ) ) {
String line;
Delta23 lines added, 11 lines removed, 12-line increase