File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
org/codefx/demo/java11/jvm/script Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 46
46
<artifactId >maven-compiler-plugin</artifactId >
47
47
<version >3.9.0</version >
48
48
<configuration >
49
- <!-- The flag "add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED"
50
- is needed to get access to `@ReservedStackAccess` in `ReservedStackAccess` -->
51
49
<!-- The flag "enable-preview" is needed for preview language features
52
50
like switch expressions in Java 12-->
53
51
<compilerArgs >
54
- <arg >--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED</arg >
52
+ <!-- get access to `@ReservedStackAccess` in `ReservedStackAccess` -->
53
+ <arg >--add-exports=java.base/jdk.internal.vm.annotation=org.codefx.demo.java_x</arg >
55
54
<arg >--enable-preview</arg >
56
55
</compilerArgs >
57
56
</configuration >
84
83
<!-- execute files ending in `Demo` as tests -->
85
84
<include >**/*Demo.java</include >
86
85
</includes >
86
+ <!-- make demos accessible for testing framework -->
87
+ <argLine >--add-opens=org.codefx.demo.java_x/org.codefx.demo.java18.jvm.javadoc=ALL-UNNAMED</argLine >
87
88
</configuration >
88
89
</plugin >
89
90
<plugin >
102
103
<artifactId >maven-javadoc-plugin</artifactId >
103
104
<version >3.3.1</version >
104
105
<configuration >
106
+ <sourcepath >src/main/java</sourcepath >
105
107
<subpackages >org.codefx.demo.java18.jvm.javadoc</subpackages >
106
108
</configuration >
107
109
<executions >
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Project demonstrating various Java features introduced since Java 9.
3
+ */
4
+ module org .codefx .demo .java_x {
5
+ exports org .codefx .demo .java18 .jvm .javadoc ;
6
+
7
+ requires java .desktop ;
8
+ requires java .net .http ;
9
+ }
Original file line number Diff line number Diff line change
1
+ // package only needed to make this entire project compile on the module path;
2
+ // your scripts absolutely don't have to belong to a package, so you can elide this line
3
+ package org .codefx .demo .java11 .jvm .script ;
4
+
1
5
public class HelloJavaScripts {
2
6
3
7
public static void main (String [] args ) {
You can’t perform that action at this time.
0 commit comments