mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-21 11:09:10 +08:00
build: update intellijGradlePlugin to 0.7.2 and allow using property flatten.sourceset
to disable flatten sourceSets
This commit is contained in:
parent
ece455f79e
commit
e5f0adfd7e
@ -138,6 +138,8 @@ fun KotlinSourceSet.configureKotlinExperimentalUsages() {
|
||||
}
|
||||
|
||||
fun Project.configureFlattenSourceSets() {
|
||||
val flatten = extra.runCatching { get("flatten.sourceset") }.getOrNull()?.toString()?.toBoolean() ?: true
|
||||
if (!flatten) return
|
||||
sourceSets {
|
||||
findByName("main")?.apply {
|
||||
resources.setSrcDirs(listOf(projectDir.resolve("resources")))
|
||||
|
@ -50,7 +50,7 @@ object Versions {
|
||||
// If you the versions below, you need to sync changes to mirai-console/buildSrc/src/main/kotlin/Versions.kt
|
||||
|
||||
const val yamlkt = "0.7.5"
|
||||
const val intellijGradlePlugin = "0.4.16"
|
||||
const val intellijGradlePlugin = "0.7.2"
|
||||
const val kotlinIntellijPlugin = "203-1.4.30-release-IJ7148.5" // keep to newest as kotlinCompiler
|
||||
const val intellij = "2020.3.2" // don't update easily unless you want your disk space -= 500MB
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user