From 9d63f3bb50f672db50b2676f927c079c8b16f5b5 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 10 Jul 2024 22:41:19 +0800 Subject: [PATCH] Use kotlint dsl simple property assignment --- lsplant/build.gradle.kts | 26 +++++++++++++------------- settings.gradle.kts | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lsplant/build.gradle.kts b/lsplant/build.gradle.kts index 390f4303b..68513ffd0 100644 --- a/lsplant/build.gradle.kts +++ b/lsplant/build.gradle.kts @@ -107,15 +107,15 @@ dependencies { val symbolsReleaseTask = tasks.register("generateReleaseSymbolsJar") { from(project.layout.buildDirectory.file("symbols/release")) exclude("**/dex_builder") - archiveClassifier.set("symbols") - archiveBaseName.set("release") + archiveClassifier = "symbols" + archiveBaseName = "release" } val symbolsStandaloneTask = tasks.register("generateStandaloneSymbolsJar") { from(project.layout.buildDirectory.file("symbols/standalone")) exclude("**/dex_builder") - archiveClassifier.set("symbols") - archiveBaseName.set("standalone") + archiveClassifier = "symbols" + archiveBaseName = "standalone" } val repo = jgit.repo(true) @@ -129,24 +129,24 @@ publish { group = "org.lsposed.lsplant" version = ver pom { - name.set("LSPlant") - description.set("A hook framework for Android Runtime (ART)") - url.set("https://github.com/LSPosed/LSPlant") + name = "LSPlant" + description = "A hook framework for Android Runtime (ART)" + url = "https://github.com/LSPosed/LSPlant" licenses { license { - name.set("GNU Lesser General Public License v3.0") - url.set("https://github.com/LSPosed/LSPlant/blob/master/LICENSE") + name = "GNU Lesser General Public License v3.0" + url = "https://github.com/LSPosed/LSPlant/blob/master/LICENSE" } } developers { developer { - name.set("Lsposed") - url.set("https://lsposed.org") + name = "Lsposed" + url = "https://lsposed.org" } } scm { - connection.set("scm:git:https://github.com/LSPosed/LSPlant.git") - url.set("https://github.com/LSPosed/LSPlant") + connection = "scm:git:https://github.com/LSPosed/LSPlant.git" + url = "https://github.com/LSPosed/LSPlant" } } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 4272745e8..e6da8bfb2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -6,7 +6,7 @@ pluginManagement { } } dependencyResolutionManagement { - repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS repositories { google() mavenCentral()