File tree 5 files changed +9
-9
lines changed
directories-jni/src/dev/dirs/jni 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Fork of of the [dirs-dev/directories-jvm](https://github.com/dirs-dev/directorie
9
9
10
10
Compared to the upstream project, this fork:
11
11
* still supports JDK 8
12
- * offers to use JNI rather than shelling out to a PowerShell script to call Windows APIs with JDK < 23
12
+ * offers to use JNI rather than shelling out to a PowerShell script to call Windows APIs with JDK < 22
13
13
* contains a number of fixes for Windows
14
14
15
15
## How to use
@@ -38,7 +38,7 @@ projDirs.preferenceDir // "/Users/name/Library/Preferences/MyApp"
38
38
// ...
39
39
```
40
40
41
- ## How to use with JNI fallback on JDK < 23
41
+ ## How to use with JNI fallback on JDK < 22
42
42
43
43
### Add dependency
44
44
Original file line number Diff line number Diff line change @@ -50,16 +50,16 @@ object directories extends JavaModule with DirectoriesPublishModule {
50
50
Seq (PathRef (T .workspace / " src/main/java" ))
51
51
}
52
52
53
- def jdk23ClassesResources = T {
54
- val destDir = T .dest / " META-INF/versions/23 "
53
+ def jdk22ClassesResources = T {
54
+ val destDir = T .dest / " META-INF/versions/22 "
55
55
os.makeDir.all(destDir)
56
- for (elem <- os.list(jdk23 .compile().classes.path))
56
+ for (elem <- os.list(jdk22 .compile().classes.path))
57
57
os.copy(elem, destDir / elem.last)
58
58
PathRef (T .dest)
59
59
}
60
60
61
61
def resources = T {
62
- T .sources(Seq (PathRef (T .workspace / " src/main/resources" )) ++ Seq (jdk23ClassesResources ()))
62
+ T .sources(Seq (PathRef (T .workspace / " src/main/resources" )) ++ Seq (jdk22ClassesResources ()))
63
63
}
64
64
def manifest = T {
65
65
super .manifest().add(" Multi-Release" -> " true" )
@@ -108,10 +108,10 @@ object `directories-jni` extends JavaModule with DirectoriesPublishModule {
108
108
}
109
109
}
110
110
111
- object jdk23 extends JavaModule {
111
+ object jdk22 extends JavaModule {
112
112
def moduleDeps = Seq (directories)
113
113
def javacOptions = super .javacOptions() ++ Seq (
114
- " --release" , " 23 "
114
+ " --release" , " 22 "
115
115
)
116
116
}
117
117
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static Supplier<Windows> getJdkAwareSupplier() {
23
23
if (dotIdx >= 0 )
24
24
javaVersion = javaVersion .substring (0 , dotIdx );
25
25
int jdkVersion = Integer .parseInt (javaVersion );
26
- if (jdkVersion >= 23 )
26
+ if (jdkVersion >= 22 )
27
27
return Windows .getDefaultSupplier ();
28
28
else
29
29
return () -> new WindowsJni ();
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments