문서의 이전 판입니다!
–enable-preview
옵션을 줘야 한다.<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>13</source> <target>13</target> <compilerArgs> --enable-preview </compilerArgs> </configuration> </plugin> </plugins> </build>
tasks.withType(JavaCompile) { options.compilerArgs += '--enable-preview' } tasks.withType(Test) { jvmArgs += "--enable-preview" }