Build and run using IntelliJ IDEA after building ui (#6261)

#### What type of PR is this?

/kind improvement
/area core
/milestone 2.18.x

#### What this PR does / why we need it:

This PR treats `ui/build/dist` as resource dir for application module to adapt building and running using IntelliJ IDEA.

How to use?

1. Build ui project by executing command `./gradlew :ui:build -x :ui:check`.
1. Create a `Run/Debug Configuration` with arguments `--spring.profiles.active=dev --halo.console.proxy.enabled=false --halo.uc.proxy.enabled=false`.
1. Go to `Settings | Build, Execution, Deployment | Build Tools | Gradle` and select `IntelliJ IDEA` for `Build and run using:`
1. Run/Debug the configuration 

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/6268/head
John Niang 2024-07-04 11:22:32 +08:00 committed by GitHub
parent 284417ae8b
commit 36fb44c8b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@ plugins {
id "com.gorylenko.gradle-git-properties" id "com.gorylenko.gradle-git-properties"
id "checkstyle" id "checkstyle"
id 'java' id 'java'
id 'idea'
id 'jacoco' id 'jacoco'
id "de.undercouch.download" id "de.undercouch.download"
id "io.freefair.lombok" id "io.freefair.lombok"
@ -23,6 +24,12 @@ java {
targetCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17
} }
idea {
module {
resourceDirs += file("../ui/build/dist/")
}
}
checkstyle { checkstyle {
toolVersion = "9.3" toolVersion = "9.3"
showViolations = false showViolations = false