hilla
hilla copied to clipboard
Improve Gradle build tool support
Describe your motivation
I used Spring Initializr to create a new project, build a tool to select Gradle, and add hilla dependencies; 我使用了 Spring initializr 创建了一个新项目,构建工具选择了 Gradle,并且添加了 Hilla 依赖;
When I wrote the business code, I tried production compilation: 当我编写了业务代码后尝试生产编译:
$ ~\exp02> ./gradlew -Philla.productionMode=true build
FAILURE: Build failed with an exception.
* What went wrong:
Task '.productionMode=true' not found in root project 'exp02'.
* Try:
> Run gradlew tasks to get a list of available tasks.
> For more on name expansion, please refer to https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:name_abbreviation in the Gradle documentation.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 806ms
And there is no corresponding production build Task in Gradle. 并且 Gradle 中也没有对应的生产构建 Task。
Then I tried to run ./gradlew build, which can be successfully compiled, but it cannot run normally:
然后我尝试运行 ./gradlew build,可以成功编译,但无法正常运行:
PS C:\code\__JVTC\JavaEE\exp02\build\libs> java -jar .\exp02-0.0.1-SNAPSHOT.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.2.1)
2024-03-10T06:05:03.438+08:00 INFO 34324 --- [ main] z.y.jvtc.javaee.exp02.Exp02Application : Starting Exp02Application v0.0.1-SNAPSHOT using Java 21.0.1 with PID 34324 (C:\code\__JVTC\JavaEE\exp02\build\libs\exp02-0.0.1-SNAPSHOT.jar started by YuePlus in C:\code\__JVTC\JavaEE\exp02\build\libs)
2024-03-10T06:05:03.440+08:00 INFO 34324 --- [ main] z.y.jvtc.javaee.exp02.Exp02Application : No active profile set, falling back to 1 default profile: "default"
2024-03-10T06:05:04.354+08:00 INFO 34324 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-03-10T06:05:04.497+08:00 INFO 34324 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 134 ms. Found 1 JPA repository interface.
2024-03-10T06:05:05.113+08:00 INFO 34324 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2024-03-10T06:05:05.133+08:00 INFO 34324 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-03-10T06:05:05.133+08:00 INFO 34324 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.17]
2024-03-10T06:05:05.182+08:00 INFO 34324 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-03-10T06:05:05.185+08:00 INFO 34324 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1674 ms
2024-03-10T06:05:05.386+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereHandler dev.hilla.push.PushEndpoint mapped to context-path: /HILLA/push
2024-03-10T06:05:05.389+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed the following AtmosphereInterceptor mapped to AtmosphereHandler dev.hilla.push.PushEndpoint
2024-03-10T06:05:05.391+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor : Atmosphere LifeCycle
2024-03-10T06:05:05.391+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.client.TrackMessageSizeInterceptor : Track Message Size Interceptor using |
2024-03-10T06:05:05.391+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.SuspendTrackerInterceptor : UUID Tracking Interceptor
2024-03-10T06:05:05.434+08:00 INFO 34324 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2024-03-10T06:05:05.659+08:00 INFO 34324 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:exp02 user=ROOT
2024-03-10T06:05:05.661+08:00 INFO 34324 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2024-03-10T06:05:05.672+08:00 INFO 34324 --- [ main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:exp02'
2024-03-10T06:05:05.725+08:00 INFO 34324 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing AtmosphereFramework
2024-03-10T06:05:07.018+08:00 INFO 34324 --- [ main] c.v.f.s.VaadinServletContextInitializer : Search for subclasses and classes with annotations took 1079 ms
2024-03-10T06:05:07.407+08:00 INFO 34324 --- [ main] com.vaadin.flow.server.Platform : Unable to determine Hilla version. No META-INF/maven/dev.hilla/hilla/pom.properties found
2024-03-10T06:05:07.422+08:00 INFO 34324 --- [ main] c.v.b.d.startup.DevModeStartupListener : Starting dev-mode updaters in C:\code\__JVTC\JavaEE\exp02 folder.
2024-03-10T06:05:07.455+08:00 INFO 34324 --- [ main] c.v.f.s.f.s.FullDependenciesScanner : Visited 7 classes. Took 12 ms.
2024-03-10T06:05:07.673+08:00 INFO 34324 --- [onPool-worker-1] c.v.f.s.frontend.TaskUpdatePackages : Skipping `npm install` because the frontend packages are already installed in the folder 'C:\code\__JVTC\JavaEE\exp02\node_modules' and the hash in the file 'C:\code\__JVTC\JavaEE\exp02\node_modules\.vaadin\vaadin.json' is the same as in 'package.json'
2024-03-10T06:05:07.784+08:00 INFO 34324 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2024-03-10T06:05:07.853+08:00 INFO 34324 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.4.1.Final
2024-03-10T06:05:07.888+08:00 INFO 34324 --- [ main] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2024-03-10T06:05:08.067+08:00 INFO 34324 --- [ main] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2024-03-10T06:05:08.700+08:00 INFO 34324 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2024-03-10T06:05:08.727+08:00 INFO 34324 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
> Connecting to Daemon
<-------------> 0% EXECUTING [378ms]
> :hillaConfigure > Resolve dependencies of :runtimeClasspath > Resolve dependencies of :detachedConfiguration41
2024-03-10T06:05:09.358+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereHandler com.vaadin.flow.server.communication.PushAtmosphereHandler mapped to context-path: /*
2024-03-10T06:05:09.358+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed the following AtmosphereInterceptor mapped to AtmosphereHandler com.vaadin.flow.server.communication.PushAtmosphereHandler
<-------------> 0% EXECUTING [471ms]34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere is using org.atmosphere.util.VoidAnnotationProcessor for processing annotation
> :hillaConfigure > Resolve dependencies of :runtimeClasspath > Resolve dependencies of :detachedConfiguration60 ForkJoinPool java.util.concurrent.ForkJoinPool. Set the org.atmosphere.cpr.broadcaster.maxAsyncWriteThreads to -1 to fully use its power.
2024-03-10T06:05:09.448+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
2024-03-10T06:05:09.453+08:00 INFO 34324 --- [ main] o.a.container.JSR356AsyncSupport : JSR 356 Mapping path /VAADIN/push
2024-03-10T06:05:09.480+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installing Default AtmosphereInterceptors
2024-03-10T06:05:09.480+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
2024-03-10T06:05:09.480+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response's Headers Interceptor
2024-03-10T06:05:09.481+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
2024-03-10T06:05:09.481+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
2024-03-10T06:05:09.482+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.HeartbeatInterceptor : Heartbeat Interceptor Support
2024-03-10T06:05:09.483+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
2024-03-10T06:05:09.483+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
2024-03-10T06:05:09.484+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
2024-03-10T06:05:09.485+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
2024-03-10T06:05:09.485+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Browser Padding Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] o.a.interceptor.HeartbeatInterceptor : HeartbeatInterceptor configured with padding value 'X', client frequency 0 seconds and server frequency 60 seconds
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Heartbeat Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.486+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT
2024-03-10T06:05:09.487+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor with priority AFTER_DEFAULT
2024-03-10T06:05:09.487+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT
2024-03-10T06:05:09.487+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor org.atmosphere.interceptor.IdleResourceInterceptor with priority BEFORE_DEFAULT
2024-03-10T06:05:09.488+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
2024-03-10T06:05:09.488+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using BroadcasterCache: org.atmosphere.cache.UUIDBroadcasterCache
2024-03-10T06:05:09.488+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Default Broadcaster Class: org.atmosphere.cpr.DefaultBroadcaster
2024-03-10T06:05:09.488+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Broadcaster Shared List Resources: false
2024-03-10T06:05:09.488+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Broadcaster Polling Wait Time 100
2024-03-10T06:05:09.488+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Shared ExecutorService supported: true
2024-03-10T06:05:09.489+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Messaging ExecutorService Pool Size unavailable - Not instance of ThreadPoolExecutor
2024-03-10T06:05:09.489+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Async I/O Thread Pool Size: 200
2024-03-10T06:05:09.489+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
2024-03-10T06:05:09.489+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using AtmosphereResurceFactory: org.atmosphere.cpr.DefaultAtmosphereResourceFactory
2024-03-10T06:05:09.489+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
2024-03-10T06:05:09.492+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Invoke AtmosphereInterceptor on WebSocket message true
2024-03-10T06:05:09.493+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : HttpSession supported: true
2024-03-10T06:05:09.493+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere is using org.atmosphere.inject.InjectableObjectFactory for dependency injection and object creation
2024-03-10T06:05:09.493+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: Apache Tomcat/10.1.17 using jakarta.servlet/3.0 and jsr356/WebSocket API
2024-03-10T06:05:09.493+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere Framework 3.0.3.slf4jvaadin2 started.
2024-03-10T06:05:09.496+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Track Message Size Interceptor using | with priority BEFORE_DEFAULT
<-------------> 0% EXECUTING [580ms]34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
> :hillaConfigure > Resolve dependencies of :runtimeClasspath
2024-03-10T06:05:09.617+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Auto detecting WebSocketHandler in /WEB-INF/classes/
2024-03-10T06:05:09.619+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
2024-03-10T06:05:09.619+08:00 INFO 34324 --- [ main] o.a.container.JSR356AsyncSupport : JSR 356 Mapping path /HILLA/push
2024-03-10T06:05:09.620+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installing Default AtmosphereInterceptors
2024-03-10T06:05:09.621+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.CorsInterceptor : CORS Interceptor Support
2024-03-10T06:05:09.621+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.CacheHeadersInterceptor : Default Response's Headers Interceptor
2024-03-10T06:05:09.622+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.PaddingAtmosphereInterceptor : Browser Padding Interceptor Support
2024-03-10T06:05:09.622+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.AndroidAtmosphereInterceptor : Android Interceptor Support
2024-03-10T06:05:09.622+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.HeartbeatInterceptor : Heartbeat Interceptor Support
2024-03-10T06:05:09.622+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.SSEAtmosphereInterceptor : SSE Interceptor Support
2024-03-10T06:05:09.622+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.JSONPAtmosphereInterceptor : JSONP Interceptor Support
2024-03-10T06:05:09.623+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.JavaScriptProtocol : Atmosphere JavaScript Protocol
2024-03-10T06:05:09.623+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor : org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor
2024-03-10T06:05:09.623+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.OnDisconnectInterceptor : Browser disconnection detection
2024-03-10T06:05:09.623+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : org.atmosphere.interceptor.IdleResourceInterceptor : org.atmosphere.interceptor.IdleResourceInterceptor
2024-03-10T06:05:09.623+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults to disable them.
2024-03-10T06:05:09.623+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Browser Padding Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] o.a.interceptor.HeartbeatInterceptor : HeartbeatInterceptor configured with padding value 'X', client frequency 0 seconds and server frequency 60 seconds
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Heartbeat Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor org.atmosphere.interceptor.WebSocketMessageSuspendInterceptor with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT
2024-03-10T06:05:09.624+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Installed AtmosphereInterceptor org.atmosphere.interceptor.IdleResourceInterceptor with priority BEFORE_DEFAULT
2024-03-10T06:05:09.625+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
2024-03-10T06:05:09.625+08:00 WARN 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
2024-03-10T06:05:09.625+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Default Broadcaster Class: org.atmosphere.util.SimpleBroadcaster
2024-03-10T06:05:09.625+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Broadcaster Shared List Resources: false
2024-03-10T06:05:09.625+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Broadcaster Polling Wait Time 100
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Shared ExecutorService supported: true
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.util.ForkJoinPool : Using ForkJoinPool java.util.concurrent.ForkJoinPool. Set the org.atmosphere.cpr.broadcaster.maxAsyncWriteThreads to -1 to fully use its power.
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Messaging ExecutorService Pool Size unavailable - Not instance of ThreadPoolExecutor
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Async I/O Thread Pool Size: 200
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using AtmosphereResurceFactory: org.atmosphere.cpr.DefaultAtmosphereResourceFactory
2024-03-10T06:05:09.626+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
2024-03-10T06:05:09.627+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Invoke AtmosphereInterceptor on WebSocket message true
2024-03-10T06:05:09.627+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : HttpSession supported: false
2024-03-10T06:05:09.627+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere is using org.atmosphere.inject.InjectableObjectFactory for dependency injection and object creation
2024-03-10T06:05:09.627+08:00 INFO 34324 --- [ main] org.atmosphere.cpr.AtmosphereFramework : Atmosphere is using async support: org.atmosphere.container.JSR356AsyncSupport running under container: Apache Tomcat/10.1.17 using jakarta.servlet/3.0 and jsr356/WebSocket <-------------> 0% EXECUTING [673ms]
> :hillaConfigure > Resolve dependencies of :runtimeClasspath > Resolve dependencies of :detachedConfiguration88phere Framework 3.0.3.slf4jvaadin2 started.
2024-03-10T06:05:09.653+08:00 INFO 34324 --- [ main] c.v.f.s.DefaultDeploymentConfiguration :
Vaadin is running in DEVELOPMENT mode - do not use for production deployments.
2024-03-10T06:05:11.132+08:00 INFO 34324 --- [onPool-worker-1] dev.hilla.parser.core.Parser : Search for endpoints in directories [C:\code\__JVTC\JavaEE\exp02\build\classes\java\main, C:\code\__JVTC\JavaEE\exp02\build\resources\main]
WARN (tsgen) <ModelPlugin>: Component has no properties: dev.hilla.crud.filter.Filter
2024-03-10T06:05:13.222+08:00 INFO 34324 --- [onPool-worker-1] c.v.f.s.frontend.TaskCopyFrontendFiles : Copying frontend resources from jar files ...
2024-03-10T06:05:13.306+08:00 INFO 34324 --- [onPool-worker-1] c.v.f.s.frontend.TaskCopyFrontendFiles : Visited 0 resources. Took 85 ms.
2024-03-10T06:05:13.333+08:00 INFO 34324 --- [onPool-worker-1] c.v.b.devserver.AbstractDevServerRunner : Starting Vite
------------------ Starting Frontend compilation. ------------------
2024-03-10T06:05:16.903+08:00 INFO 34324 --- [onPool-worker-1] c.v.b.devserver.AbstractDevServerRunner : Running Vite to compile frontend resources. This may take a moment, please stand by...
2024-03-10T06:05:18.375+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker :
2024-03-10T06:05:18.376+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : VITE v5.0.6 ready in 1428 ms
----------------- Frontend compiled successfully. -----------------
2024-03-10T06:05:18.376+08:00 INFO 34324 --- [onPool-worker-1] c.v.b.devserver.AbstractDevServerRunner : Started Vite. Time: 5042ms
2024-03-10T06:05:18.376+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker :
2024-03-10T06:05:18.376+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : 鉃? Local: http://127.0.0.1:13422/VAADIN/
2024-03-10T06:05:20.018+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker :
2024-03-10T06:05:20.018+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : ERROR(TypeScript) Cannot find module 'Frontend/generated/jar-resources/dev-tools-database.js' or its corresponding type declarations.
2024-03-10T06:05:20.018+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : FILE C:/code/__JVTC/JavaEE/exp02/frontend/generated/vaadin.ts:26:12
2024-03-10T06:05:20.018+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker :
2024-03-10T06:05:20.018+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : 24 | //@ts-ignore
2024-03-10T06:05:20.018+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : 25 | if (import.meta.env.DEV) {
2024-03-10T06:05:20.020+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : > 26 | import("Frontend/generated/jar-resources/dev-tools-database.js");
2024-03-10T06:05:20.021+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-03-10T06:05:20.021+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : 27 | }
2024-03-10T06:05:20.021+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : 28 |
2024-03-10T06:05:20.022+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker :
2024-03-10T06:05:20.022+08:00 INFO 34324 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : [TypeScript] Found 1 error. Watching for file changes.
Describe the solution you'd like
Improve Gradle build tool support
Describe alternatives you've considered
Now switch to Maven build tools 目前换到 Maven 构建工具
Additional context
No response
Hi @Yue-plus, thanks for reporting this issue. Could you please provide more info about which version of Hilla caused this issue for you?
Hi @Yue-plus, thanks for reporting this issue. Could you please provide more info about which version of Hilla caused this issue for you?
Thanks for your reply, I have tried Hilla 2.5.5 and 2.5.6 and met with this problem;
感谢回复,我尝试了 Hilla 2.5.5 和 2.5.6 都遇到了这个问题;
This is the build.gradle file of the project exp02:
这是项目 exp02 的 build.gradle 文件:
plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id 'dev.hilla' version '2.5.6'
}
group = 'zone.yue.jvtc.javaee'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { setUrl("https://maven.vaadin.com/vaadin-addons") }
}
ext {
set('hillaVersion', "2.5.6")
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'dev.hilla:hilla-react-spring-boot-starter'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
dependencyManagement {
imports {
mavenBom "dev.hilla:hilla-bom:${hillaVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
}
Seems to be something related with the missing space, addressed in https://github.com/vaadin/docs/pull/3304