You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
Should be able to override mainClassName for a task.
Current Behavior
Uses the application's mainClassName - and does not use task's overridden mainClassName.
Currently it's using SomeService.kt, and I want it to be RunSomeServiceLocally.kt
Context
I'm trying to use a gradle task to run a local instance of a file which is found in the test directory.
Consider the following folder structure:
src/main/kotlin/com.service/SomeService.kt
src/test/kotlin/com.service/RunSomeServiceLocally.kt
Basically I want to make it so that when I do ./gradlew run - it uses the RunSomeServiceLocally.kt file.
Steps to Reproduce (for bugs)
Below is how I have configured the build.gradle.kts file:
Expected Behavior
Should be able to override mainClassName for a task.
Current Behavior
Uses the application's mainClassName - and does not use task's overridden mainClassName.
Currently it's using SomeService.kt, and I want it to be RunSomeServiceLocally.kt
Context
I'm trying to use a gradle task to run a local instance of a file which is found in the test directory.
Consider the following folder structure:
src/main/kotlin/com.service/SomeService.kt
src/test/kotlin/com.service/RunSomeServiceLocally.kt
Basically I want to make it so that when I do ./gradlew run - it uses the RunSomeServiceLocally.kt file.
Steps to Reproduce (for bugs)
Below is how I have configured the build.gradle.kts file:
Your Environment
gradle --version
: Gradle 6.0.1edit: formatting
The text was updated successfully, but these errors were encountered: