From d5f78066632e61cf0e018cc2c25ce2c58d545696 Mon Sep 17 00:00:00 2001 From: Apehum <36326454+Apehum@users.noreply.github.com> Date: Sat, 28 Sep 2024 15:21:32 +0800 Subject: [PATCH] build: update crowdin and configure shadow plugin --- build.gradle.kts | 12 +++++++++++- gradle.properties | 1 + gradle/libs.versions.toml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 50eed1c..aa3d713 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import java.net.URI + plugins { id("java") kotlin("jvm") version(libs.versions.kotlin.get()) @@ -19,13 +21,21 @@ repositories { } crowdin { - projectId = "plasmo-voice-addons" + url = URI.create("https://github.com/plasmoapp/plasmo-voice-crowdin/archive/refs/heads/addons.zip").toURL() sourceFileName = "server/priority.toml" resourceDir = "priority/languages" createList = true } tasks { + jar { + enabled = false + } + + shadowJar { + archiveClassifier.set("") + } + java { toolchain.languageVersion.set(JavaLanguageVersion.of(8)) } diff --git a/gradle.properties b/gradle.properties index 0807fd1..fdb9379 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ group=su.plo version=1.1.0 +kotlin.stdlib.default.dependency=false \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7271ed3..dcf4772 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ lombok = "1.18.24" pv = "2.1.0-SNAPSHOT" -crowdin = "1.0.2-SNAPSHOT" +crowdin = "1.1.0-SNAPSHOT" pv-gradle-plugin = "1.0.2-SNAPSHOT" [libraries]