11import org.jetbrains.gradle.ext.Gradle
22import org.jetbrains.gradle.ext.compiler
33import org.jetbrains.gradle.ext.runConfigurations
4- import org.jetbrains.gradle.ext.taskTriggers
54import org.jetbrains.gradle.ext.settings
5+ import org.jetbrains.gradle.ext.taskTriggers
66
77plugins {
88 java
@@ -11,7 +11,7 @@ plugins {
1111 kotlin(" jvm" ) version " 2.4.0"
1212 id(" com.gradleup.shadow" ) version " 9.5.1"
1313 id(" org.jetbrains.gradle.plugin.idea-ext" ) version " 1.4.1"
14- id(" xyz.wagyourtail.unimined" ) version " 1.4.35 -kappa"
14+ id(" xyz.wagyourtail.unimined" ) version " 1.4.36 -kappa"
1515 id(" net.kyori.blossom" ) version " 2.2.0"
1616}
1717
@@ -180,9 +180,14 @@ sourceSets {
180180 property(" mod_name" , mod_name)
181181 property(" mod_version" , mod_version)
182182 property(" mod_description" , mod_description)
183- property(" mod_authors" , mod_authors.takeIf { it.isNotBlank() }
184- ?.split(" ," )?.filter { it.isNotBlank() }
185- ?.joinToString(" \" , \" " ) { it.trim() } ? : " " )
183+ property(
184+ " mod_authors" ,
185+ mod_authors
186+ .takeIf { it.isNotBlank() }
187+ ?.split(" ," )
188+ ?.filter { it.isNotBlank() }
189+ ?.joinToString(" \" , \" " ) { it.trim() } ? : " " ,
190+ )
186191 property(" mod_credits" , mod_credits)
187192 property(" mod_url" , mod_url)
188193 property(" mod_update_json" , mod_update_json)
@@ -204,15 +209,21 @@ idea {
204209 project {
205210 settings {
206211 runConfigurations {
207- add(Gradle (" 1. Build" ).apply {
208- setProperty(" taskNames" , listOf (" build" ))
209- })
210- add(Gradle (" 2. Run Client" ).apply {
211- setProperty(" taskNames" , listOf (" runClient" ))
212- })
213- add(Gradle (" 3. Run Server" ).apply {
214- setProperty(" taskNames" , listOf (" runServer" ))
215- })
212+ add(
213+ Gradle (" 1. Build" ).apply {
214+ setProperty(" taskNames" , listOf (" build" ))
215+ },
216+ )
217+ add(
218+ Gradle (" 2. Run Client" ).apply {
219+ setProperty(" taskNames" , listOf (" runClient" ))
220+ },
221+ )
222+ add(
223+ Gradle (" 3. Run Server" ).apply {
224+ setProperty(" taskNames" , listOf (" runServer" ))
225+ },
226+ )
216227 }
217228 compiler.javac {
218229 afterEvaluate {
@@ -263,15 +274,6 @@ tasks.shadowJar {
263274 archiveClassifier = " shadow"
264275}
265276
266- tasks.named(remapTaskName) {
267- doFirst {
268- logging.captureStandardOutput(LogLevel .INFO )
269- }
270- doLast {
271- logging.captureStandardOutput(LogLevel .QUIET )
272- }
273- }
274-
275277java {
276278 sourceCompatibility = JavaVersion .VERSION_25
277279 targetCompatibility = JavaVersion .VERSION_25
0 commit comments