Skip to content

Commit 9b3b733

Browse files
committed
Fix Gradle DSL deprecation warnings
1 parent 77dcffc commit 9b3b733

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

common.gradle

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ java {
2525
}
2626

2727
tasks.withType(JavaCompile) { // compile-time options:
28-
options.compilerArgs << '-Xlint:deprecation'
28+
//options.compilerArgs << '-Xlint:deprecation' // to show deprecation warnings
2929
options.compilerArgs << '-Xlint:unchecked'
30-
options.compilerArgs << '-Xlint:-options'
3130
options.encoding = 'UTF-8'
3231
options.release = 8
3332
}
@@ -102,26 +101,26 @@ task javadocJar(type: Jar, dependsOn: javadoc, description: 'Creates a jar from
102101
}
103102

104103
ext.pomConfig = {
105-
name POM_NAME
106-
description POM_DESCRIPTION
107-
url POM_URL
108-
inceptionYear POM_INCEPTION_YEAR
104+
name = POM_NAME
105+
description = POM_DESCRIPTION
106+
url = POM_URL
107+
inceptionYear = POM_INCEPTION_YEAR
109108
scm {
110-
url POM_SCM_URL
111-
connection POM_SCM_CONNECTION
112-
developerConnection POM_SCM_DEVELOPER_CONNECTION
109+
url = POM_SCM_URL
110+
connection = POM_SCM_CONNECTION
111+
developerConnection = POM_SCM_DEVELOPER_CONNECTION
113112
}
114113
licenses {
115114
license {
116-
name POM_LICENSE_NAME
117-
url POM_LICENSE_URL
118-
distribution POM_LICENSE_DISTRIBUTION
115+
name = POM_LICENSE_NAME
116+
url = POM_LICENSE_URL
117+
distribution = POM_LICENSE_DISTRIBUTION
119118
}
120119
}
121120
developers {
122121
developer {
123-
name 'jMonkeyEngine Team'
124-
id 'jMonkeyEngine'
122+
name = 'jMonkeyEngine Team'
123+
id = 'jMonkeyEngine'
125124
}
126125
}
127126
}

0 commit comments

Comments
 (0)