fixed bug in Application class
All checks were successful
CI / build (push) Successful in 44s

updated lys version
This commit is contained in:
2025-02-25 20:01:14 +08:00
parent 1ff74d28da
commit ef2ee4a86c
4 changed files with 10 additions and 15 deletions

View File

@@ -16,11 +16,8 @@ dependencies {
implementation project(':')
}
application {
nativeImage {
mainClass = 'net.woggioni.jwo.benchmark.Main'
}
tasks.named(NativeImagePlugin.NATIVE_IMAGE_TASK_NAME, NativeImageTask) {
useMusl = true
buildStaticImage = true
}
}

View File

@@ -3,6 +3,6 @@ org.gradle.parallel=true
org.gradle.caching=true
gitea.maven.url = https://gitea.woggioni.net/api/packages/woggioni/maven
jwo.version = 2025.01.26
lys.version = 2025.01.24
jwo.version = 2025.02.25
lys.version = 2025.02.25
guice.version = 5.0.1

View File

@@ -16,15 +16,13 @@ dependencies {
implementation project(':jmath')
}
application {
nativeImage {
mainClass = 'net.woggioni.jmath.benchmark.Main'
useMusl = true
buildStaticImage = true
}
configureNativeImage {
args('20')
}
tasks.named(NativeImagePlugin.NATIVE_IMAGE_TASK_NAME, NativeImageTask) {
useMusl = true
buildStaticImage = true
}

View File

@@ -73,7 +73,7 @@ public class Application {
public Path computeCacheDirectory() {
Stream<Path> commonCandidates = optional2Stream(
Optional.ofNullable(cacheDirectoryPropertyKey).map(System::getProperty).map(Paths::get),
Optional.ofNullable(cacheDirectoryEnvVar).map(System::getProperty).map(Paths::get)
Optional.ofNullable(cacheDirectoryEnvVar).map(System::getenv).map(Paths::get)
);
Stream<Path> osSpecificCandidates;
if (OS.isMac) {
@@ -108,7 +108,7 @@ public class Application {
public Path computeDataDirectory() {
Stream<Path> commonCandidates = optional2Stream(
Optional.ofNullable(dataDirectoryPropertyKey).map(System::getProperty).map(Paths::get),
Optional.ofNullable(dataDirectoryEnvVar).map(System::getProperty).map(Paths::get)
Optional.ofNullable(dataDirectoryEnvVar).map(System::getenv).map(Paths::get)
);
Stream<Path> osSpecificCandidates;
if (OS.isMac) {
@@ -143,7 +143,7 @@ public class Application {
public Path computeConfigurationDirectory() {
Stream<Path> commonCandidates = optional2Stream(
Optional.ofNullable(configurationDirectoryPropertyKey).map(System::getProperty).map(Paths::get),
Optional.ofNullable(configurationDirectoryEnvVar).map(System::getProperty).map(Paths::get)
Optional.ofNullable(configurationDirectoryEnvVar).map(System::getenv).map(Paths::get)
);
Stream<Path> osSpecificCandidates;
if (OS.isMac) {