Skip to content

Commit

Permalink
Gradle: fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and remkop committed Oct 31, 2020
1 parent 8c7d5bf commit bdf774e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 17 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ pluginManager.withPlugin('biz.aQute.bnd.builder') { // if plugin applied, execut
baseline
}
dependencies {
baseline('group': group, 'name': jar.baseName, 'version': "(,${jar.version}[") {
force = true
baseline('group': group, 'name': jar.archiveBaseName) {
version {
strictly "(,${jar.archiveVersion}["
}
transitive = false
}
}
Expand Down Expand Up @@ -146,7 +148,7 @@ allprojects {
}
distributions {
main {
baseName = "$archivesBaseName-all"
distributionBaseName = "$archivesBaseName-all"
contents {
from jar
from sourcesJar
Expand Down Expand Up @@ -207,10 +209,10 @@ jar {
manifest {
attributes 'Specification-Title' : 'picocli',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'picocli',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Main-Class' : 'picocli.AutoComplete'
}
// copy module-info.class to META-INF/versions/9
Expand Down
4 changes: 2 additions & 2 deletions picocli-annotation-processing-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jar {
manifest {
attributes 'Specification-Title': 'Picocli Annotation Processing Tests',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'Picocli Annotation Processing Tests',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name' : 'info.picocli.annotation.processing.tests'
}
}
4 changes: 2 additions & 2 deletions picocli-codegen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jar {
manifest {
attributes 'Specification-Title' : 'Picocli Code Generation',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'Picocli Code Generation',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name' : 'info.picocli.codegen'
}
}
Expand Down
4 changes: 2 additions & 2 deletions picocli-groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jar {
manifest {
attributes 'Specification-Title' : 'Picocli Groovy',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'Picocli Groovy',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name' : 'info.picocli.groovy'
}
}
Expand Down
4 changes: 2 additions & 2 deletions picocli-shell-jline2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jar {
manifest {
attributes 'Specification-Title' : 'Picocli Shell JLine2',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'Picocli Shell JLine2',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name' : 'info.picocli.shell.jline2'
}
}
Expand Down
4 changes: 2 additions & 2 deletions picocli-shell-jline3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jar {
manifest {
attributes 'Specification-Title' : 'Picocli Shell JLine3',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'Picocli Shell JLine3',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name' : 'info.picocli.shell.jline3'
}
}
Expand Down
4 changes: 2 additions & 2 deletions picocli-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jar {
manifest {
attributes 'Specification-Title' : 'Picocli Spring Boot Starter',
'Specification-Vendor' : 'Remko Popma',
'Specification-Version' : version,
'Specification-Version' : archiveVersion,
'Implementation-Title' : 'Picocli Spring Boot Starter',
'Implementation-Vendor' : 'Remko Popma',
'Implementation-Version': version,
'Implementation-Version': archiveVersion,
'Automatic-Module-Name' : 'info.picocli.spring'
}
}
Expand Down

0 comments on commit bdf774e

Please sign in to comment.