From efd133249f25e1e355f7c51ac0142f08fa8414db Mon Sep 17 00:00:00 2001 From: Madray Haven Date: Tue, 27 Sep 2022 14:57:39 +0800 Subject: [PATCH] fix license config --- .../main/java/io.github.sgpublic.exsp/core/_Publishing.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/io.github.sgpublic.exsp/core/_Publishing.kt b/buildSrc/src/main/java/io.github.sgpublic.exsp/core/_Publishing.kt index 55e9d70..380876f 100644 --- a/buildSrc/src/main/java/io.github.sgpublic.exsp/core/_Publishing.kt +++ b/buildSrc/src/main/java/io.github.sgpublic.exsp/core/_Publishing.kt @@ -40,8 +40,10 @@ private fun applyPublishing(project: Project, type: String) { description.set(projectName) url.set("https://github.com/sgpublic/ExSharedPreference") licenses { - name.set("The Apache License, Version 2.0") - url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") + license { + name.set("The Apache License, Version 2.0") + url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") + } } issueManagement { system.set("GitHub")