Is it possible to create a task in buildSrc?

Just found some results…
In Gradle 8.0, this is fixed. Some changes to make buildSrc more like an included build by adammurdoch · Pull Request #22540 · gradle/gradle · GitHub
Not sure if the fix will make Intellij show the buildSrc tasks in Gradle panel??

Before Gradle 8.0, you can run buildSrc command: ./gradlew -p buildSrc taskName