Skip to content

Commit 1e4fe1b

Browse files
committed
Fix Gradle space-assignment deprecation warnings
Fixes the "Space-assignment syntax in Groovy DSL has been deprecated." warnings when using a newer Gradle version. See: https://docs.gradle.org/8.12.1/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
1 parent 3fd04cb commit 1e4fe1b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

deployment/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tasks.register('license') {
2323
}
2424

2525
tasks.register('installDist', Copy) {
26-
duplicatesStrategy DuplicatesStrategy.EXCLUDE
26+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
2727
dependsOn(parent.getTasksByName('installDist', true).findAll {
2828
// Don't create circular dependency or depend on built in openremote submodule apps
2929
it.project != project && !it.project.path.startsWith(":openremote:ui:app")

project.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if (project == rootProject) {
102102
idea.project.settings {
103103
compiler {
104104
javac {
105-
javacAdditionalOptions "-parameters"
105+
javacAdditionalOptions = "-parameters"
106106
}
107107
}
108108
runConfigurations {
@@ -150,10 +150,10 @@ repositories {
150150
}
151151
mavenCentral()
152152
maven {
153-
url "https://pkgs.dev.azure.com/OpenRemote/OpenRemote/_packaging/OpenRemote/maven/v1"
153+
url = "https://pkgs.dev.azure.com/OpenRemote/OpenRemote/_packaging/OpenRemote/maven/v1"
154154
}
155155
maven {
156-
url "https://s01.oss.sonatype.org/content/repositories/snapshots"
156+
url = "https://s01.oss.sonatype.org/content/repositories/snapshots"
157157
}
158158
}
159159

@@ -165,8 +165,8 @@ apply plugin: 'idea'
165165
// Use the same output directories in IDE as in gradle
166166
idea {
167167
module {
168-
outputDir file('build/classes/main')
169-
testOutputDir file('build/classes/test')
168+
outputDir = file('build/classes/main')
169+
testOutputDir = file('build/classes/test')
170170
excludeDirs += file(".node")
171171
excludeDirs += file("node_modules")
172172
excludeDirs += file("dist")

test/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ test {
2727
events TestLogEvent.FAILED,
2828
TestLogEvent.PASSED,
2929
TestLogEvent.SKIPPED
30-
exceptionFormat TestExceptionFormat.FULL
31-
showExceptions true
32-
showCauses true
33-
showStackTraces true
30+
exceptionFormat = TestExceptionFormat.FULL
31+
showExceptions = true
32+
showCauses = true
33+
showStackTraces = true
3434

3535
// set options for log level DEBUG and INFO
3636
debug {
@@ -39,7 +39,7 @@ test {
3939
TestLogEvent.PASSED,
4040
TestLogEvent.SKIPPED,
4141
TestLogEvent.STANDARD_ERROR
42-
exceptionFormat TestExceptionFormat.FULL
42+
exceptionFormat = TestExceptionFormat.FULL
4343
}
4444
info.events = debug.events
4545
info.exceptionFormat = debug.exceptionFormat

0 commit comments

Comments
 (0)