Skip to content

Commit e4c2d84

Browse files
Merge branch 'main' into scala
2 parents cb9cdfc + 46dff9f commit e4c2d84

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ sourceSets {
139139
property('mod_name', propertyString('mod_name'))
140140
property('mod_version', propertyString('mod_version'))
141141
property('mod_description', propertyString('mod_description'))
142-
property('mod_authors', "${propertyStringList('mod_authors', ',').join(', ')}")
142+
property('mod_authors', propertyStringList('mod_authors', ',').collect {it.strip()}.join('", "'))
143143
property('mod_credits', propertyString('mod_credits'))
144144
property('mod_url', propertyString('mod_url'))
145145
property('mod_update_json', propertyString('mod_update_json'))
@@ -156,21 +156,21 @@ idea {
156156
project {
157157
settings {
158158
runConfigurations {
159-
"1. Build"(Gradle) {
159+
'1. Build'(Gradle) {
160160
taskNames = ["build"]
161161
}
162-
"2. Run Client"(Gradle) {
162+
'2. Run Client'(Gradle) {
163163
taskNames = ["runClient"]
164164
}
165-
"3. Run Server"(Gradle) {
165+
'3. Run Server'(Gradle) {
166166
taskNames = ["runServer"]
167167
}
168168
}
169169
compiler.javac {
170170
afterEvaluate {
171-
javacAdditionalOptions = "-encoding utf8"
171+
javacAdditionalOptions = '-encoding utf8'
172172
moduleJavacAdditionalOptions = [
173-
(project.name + ".main"): tasks.compileJava.options.compilerArgs.collect { '"' + it + '"' }.join(' ')
173+
(project.name + '.main'): tasks.compileJava.options.compilerArgs.collect { '"' + it + '"' }.join(' ')
174174
]
175175
}
176176
}

gradle/scripts/helpers.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Collection<String> propertyStringList(String key) {
2323
}
2424

2525
Collection<String> propertyStringList(String key, String delimit) {
26-
return propertyString(key).split(delimit).findAll { !it.isEmpty() }
26+
return propertyString(key).split(delimit).findAll { !it.isBlank() }
2727
}
2828

2929
private Object $property(String key) {

0 commit comments

Comments
 (0)