Skip to content

Commit cd68f25

Browse files
committed
Fix Gradle DSL deprecation warnings
1 parent dd814b6 commit cd68f25

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
google()
88
maven {
9-
url "https://plugins.gradle.org/m2/"
9+
url = "https://plugins.gradle.org/m2/"
1010
}
1111
}
1212
dependencies {
@@ -121,7 +121,7 @@ task copyLibs(type: Copy){
121121
}
122122

123123
task dist(dependsOn: [':jme3-examples:dist', 'mergedJavadoc']){
124-
description 'Creates a jME3 examples distribution with all jme3 binaries, sources, javadoc and external libraries under ./dist'
124+
description = 'Creates a jME3 examples distribution with all jme3 binaries, sources, javadoc and external libraries under ./dist'
125125
}
126126

127127
def mergedJavadocSubprojects = [
@@ -242,4 +242,4 @@ if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
242242

243243
assemble.dependsOn extractPrebuiltNatives
244244
}
245-
}
245+
}

common.gradle

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -93,26 +93,26 @@ task javadocJar(type: Jar, dependsOn: javadoc, description: 'Creates a jar from
9393
}
9494

9595
ext.pomConfig = {
96-
name POM_NAME
97-
description POM_DESCRIPTION
98-
url POM_URL
99-
inceptionYear POM_INCEPTION_YEAR
96+
name = POM_NAME
97+
description = POM_DESCRIPTION
98+
url = POM_URL
99+
inceptionYear = POM_INCEPTION_YEAR
100100
scm {
101-
url POM_SCM_URL
102-
connection POM_SCM_CONNECTION
103-
developerConnection POM_SCM_DEVELOPER_CONNECTION
101+
url = POM_SCM_URL
102+
connection = POM_SCM_CONNECTION
103+
developerConnection = POM_SCM_DEVELOPER_CONNECTION
104104
}
105105
licenses {
106106
license {
107-
name POM_LICENSE_NAME
108-
url POM_LICENSE_URL
109-
distribution POM_LICENSE_DISTRIBUTION
107+
name = POM_LICENSE_NAME
108+
url = POM_LICENSE_URL
109+
distribution = POM_LICENSE_DISTRIBUTION
110110
}
111111
}
112112
developers {
113113
developer {
114-
name 'jMonkeyEngine Team'
115-
id 'jMonkeyEngine'
114+
name = 'jMonkeyEngine Team'
115+
id = 'jMonkeyEngine'
116116
}
117117
}
118118
}
@@ -155,7 +155,7 @@ publishing {
155155
}
156156
url = POM_URL
157157
}
158-
version project.version
158+
version = project.version
159159
}
160160
}
161161

@@ -210,8 +210,8 @@ tasks.withType(Sign) {
210210
}
211211

212212
checkstyle {
213-
toolVersion libs.versions.checkstyle.get()
214-
configFile file("${gradle.rootProject.rootDir}/config/checkstyle/checkstyle.xml")
213+
toolVersion = libs.versions.checkstyle.get()
214+
configFile = file("${gradle.rootProject.rootDir}/config/checkstyle/checkstyle.xml")
215215
}
216216

217217
checkstyleMain {

0 commit comments

Comments
 (0)