From 970c9627479c90e9ea379abf764949e03b51c668 Mon Sep 17 00:00:00 2001 From: kaleidot725 Date: Sun, 3 Nov 2024 20:50:32 +0900 Subject: [PATCH] feat: update version --- build.gradle.kts | 10 +++++++--- java.policy | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 java.policy diff --git a/build.gradle.kts b/build.gradle.kts index abc3a1a..e8a8131 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.plugin.KotlinExecution + plugins { alias(libs.plugins.multiplatform) alias(libs.plugins.compose) @@ -7,7 +9,7 @@ plugins { } group = "jp.kaleidot725" -version = "1.1.0" +version = "1.2.0" repositories { mavenCentral() @@ -23,11 +25,11 @@ kotlin { languageVersion = JavaLanguageVersion.of(17) } - jvm { } + jvm { + } sourceSets { val jvmMain by getting { dependencies { - implementation(kotlin("stdlib-jdk8")) implementation(compose.desktop.currentOs) implementation(compose.material) implementation(compose.materialIconsExtended) @@ -60,6 +62,8 @@ compose.desktop { modules("jdk.management") modules("jdk.unsupported") + args.addAll(listOf("-Djava.security.manager", "-Djava.security.policy=./java.policy")) + targetFormats( org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg, org.jetbrains.compose.desktop.application.dsl.TargetFormat.Msi, diff --git a/java.policy b/java.policy new file mode 100644 index 0000000..58dcae3 --- /dev/null +++ b/java.policy @@ -0,0 +1,3 @@ +grant { + permission java.net.SocketPermission "*", "connect,resolve"; +} \ No newline at end of file