diff options
Diffstat (limited to 'subprojects/language-web')
-rw-r--r-- | subprojects/language-web/build.gradle.kts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/subprojects/language-web/build.gradle.kts b/subprojects/language-web/build.gradle.kts index e1d250ec..d398e002 100644 --- a/subprojects/language-web/build.gradle.kts +++ b/subprojects/language-web/build.gradle.kts | |||
@@ -29,13 +29,6 @@ dependencies { | |||
29 | 29 | ||
30 | application { | 30 | application { |
31 | mainClass.set("tools.refinery.language.web.ServerLauncher") | 31 | mainClass.set("tools.refinery.language.web.ServerLauncher") |
32 | // Enable JDK 19 preview features for virtual thread support. | ||
33 | applicationDefaultJvmArgs += "--enable-preview" | ||
34 | } | ||
35 | |||
36 | // Enable JDK 19 preview features for virtual thread support. | ||
37 | fun enablePreview(task: JavaForkOptions) { | ||
38 | task.jvmArgs("--enable-preview") | ||
39 | } | 32 | } |
40 | 33 | ||
41 | tasks { | 34 | tasks { |
@@ -47,16 +40,6 @@ tasks { | |||
47 | } | 40 | } |
48 | } | 41 | } |
49 | 42 | ||
50 | withType(JavaCompile::class) { | ||
51 | options.release.set(19) | ||
52 | // Enable JDK 19 preview features for virtual thread support. | ||
53 | options.compilerArgs.plusAssign("--enable-preview") | ||
54 | } | ||
55 | |||
56 | withType(Test::class) { | ||
57 | enablePreview(this) | ||
58 | } | ||
59 | |||
60 | jar { | 43 | jar { |
61 | dependsOn(webapp) | 44 | dependsOn(webapp) |
62 | from(webapp) { | 45 | from(webapp) { |
@@ -82,7 +65,6 @@ tasks { | |||
82 | dependsOn(mainRuntimeClasspath) | 65 | dependsOn(mainRuntimeClasspath) |
83 | classpath(mainRuntimeClasspath) | 66 | classpath(mainRuntimeClasspath) |
84 | mainClass.set(application.mainClass) | 67 | mainClass.set(application.mainClass) |
85 | enablePreview(this) | ||
86 | standardInput = System.`in` | 68 | standardInput = System.`in` |
87 | val baseResource = webapp.incoming.artifacts.artifactFiles.first() | 69 | val baseResource = webapp.incoming.artifacts.artifactFiles.first() |
88 | environment("BASE_RESOURCE", baseResource) | 70 | environment("BASE_RESOURCE", baseResource) |