| | 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" |
| | } |
| | |