Last active
May 11, 2020 07:52
-
-
Save MikeMitterer/c35b44a8f558543c7d6d519e6b9a74a8 to your computer and use it in GitHub Desktop.
Change src and resources root for Kotlin/Java project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
kotlin { | |
sourceSets { | |
getByName("main") { | |
kotlin.srcDirs("src") | |
} | |
getByName("test") { | |
kotlin.srcDirs("test/unit") | |
} | |
} | |
} | |
java { | |
sourceSets { | |
getByName("main").java.srcDirs("src") | |
getByName("test").java.srcDirs("test/unit") | |
} | |
} | |
sourceSets["main"].resources.srcDirs("resources") | |
sourceSets["test"].resources.srcDirs("test/resources") | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment