tidy up gradle plugins (mostly removing comments)
This commit is contained in:
parent
aaca52a3e1
commit
531b8e193e
5 changed files with 3 additions and 56 deletions
|
|
@ -33,23 +33,6 @@ dependencies {
|
|||
implementation(libs.ktorSerialization.kotlinxJson)
|
||||
}
|
||||
|
||||
|
||||
//val gradleJvmTarget = 11
|
||||
//
|
||||
//kotlin {
|
||||
// jvmToolchain(gradleJvmTarget)
|
||||
//}
|
||||
//
|
||||
//kotlinDslPluginOptions {
|
||||
// jvmTarget.set("$gradleJvmTarget")
|
||||
//}
|
||||
//
|
||||
//tasks.withType<KotlinCompile>().configureEach {
|
||||
// kotlinOptions {
|
||||
// jvmTarget = "$gradleJvmTarget"
|
||||
// }
|
||||
//}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
create("factorioMod") {
|
||||
|
|
@ -60,20 +43,7 @@ gradlePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
overrideKotlinLanguageVersion("1.7")
|
||||
|
||||
//val gradleKotlinTarget = "1.7"
|
||||
//
|
||||
//afterEvaluate {
|
||||
// tasks.withType<KotlinCompile>().configureEach {
|
||||
// kotlinOptions {
|
||||
// apiVersion = gradleKotlinTarget
|
||||
// languageVersion = gradleKotlinTarget
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
overrideKotlinLanguageVersion("1.7") // required for Kotlinx Serialization
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions.freeCompilerArgs += listOf(
|
||||
|
|
|
|||
|
|
@ -14,14 +14,11 @@ abstract class FactorioModPlugin @Inject constructor(
|
|||
override fun apply(target: Project) {
|
||||
target.createSettings()
|
||||
|
||||
|
||||
val factorioModConfiguration =
|
||||
target.configurations.register(FACTORIO_GRADLE_CONFIGURATION_NAME) {
|
||||
asConsumer()
|
||||
factorioModAttributes(objects)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private fun Project.createSettings(): FactorioModSettings {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue