Skip to content

Commit b5abc5b

Browse files
committed
Fix Gradle deprecation warnings.
- The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. - The runtime configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the runtimeOnly configuration instead. - The version property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveVersion property instead. - The baseName property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the distributionBaseName property instead. - The extension property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveExtension property instead. Unresolved: - The maven plugin has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the maven-publish plugin instead.
1 parent 27780be commit b5abc5b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

metafacture-runner/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ configurations {
3030
}
3131

3232
dependencies {
33-
compile project(':metafacture-framework')
34-
compile project(':metafacture-commons')
35-
compile project(':metafacture-flux')
33+
implementation project(':metafacture-framework')
34+
implementation project(':metafacture-commons')
35+
implementation project(':metafacture-flux')
3636

3737
plugins project(':metafacture-biblio')
3838
plugins project(':metafacture-csv')
@@ -67,7 +67,7 @@ dependencies {
6767
// class loader which was used to load the classes of the slf4j-api. Until
6868
// a solution is found for this problem, the binding need to be placed on the
6969
// class path:
70-
runtime 'org.slf4j:slf4j-log4j12:1.7.21'
70+
runtimeOnly 'org.slf4j:slf4j-log4j12:1.7.21'
7171

7272
// The following dependencies are placed in the "provided" scope to prevent
7373
// them from being included in the class path but still have them available
@@ -88,7 +88,7 @@ jar {
8888
manifest {
8989
attributes(
9090
'Implementation-Title': project.name,
91-
'Implementation-Version': version,
91+
'Implementation-Version': archiveVersion,
9292
'Main-Class': 'org.metafacture.runner.Flux',
9393
'Class-Path':
9494
configurations.runtimeClasspath.files.collect { it.name }.join(' '))
@@ -104,7 +104,7 @@ jar {
104104

105105
distributions {
106106
main {
107-
baseName = parent.project.name
107+
distributionBaseName = parent.project.name
108108
contents {
109109
dirMode = 0755
110110
fileMode = 0644
@@ -141,7 +141,7 @@ def metamorph() {
141141
distTar {
142142
compression = Compression.GZIP
143143
classifier = 'dist'
144-
extension = 'tar.gz'
144+
archiveExtension = 'tar.gz'
145145
}
146146

147147
distZip {

0 commit comments

Comments
 (0)