Skip to content

#2557 remove deprecated Gradle syntax - #2575

Open
winfriedgerlach wants to merge 1 commit into
bcgit:mainfrom
winfriedgerlach:#2557-deprecated-gradle-syntax
Open

winfriedgerlach wants to merge 1 commit into
bcgit:mainfrom
winfriedgerlach:#2557-deprecated-gradle-syntax

Conversation

@winfriedgerlach

@winfriedgerlach winfriedgerlach commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

AI disclosue: AI aided in implementing and verifying these changes.
All changes have been human-reviewed.

Closes #2557

Comment thread core/build.gradle
archives javadocJar
archives sourcesJar
}
assemble.dependsOn javadocJar, sourcesJar

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that jar was already part of assemble, so it does not need to be added here

Comment thread jmail/build.gradle

plugins {
id "biz.aQute.bnd.builder" version "7.1.0"
id "biz.aQute.bnd.builder" version "7.2.3"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the old plugin caused Gradle deprecation warnings itself; fixed in 7.2.x so I bumped to newest 7.2.x release
note that 7.5.0 is already available, so this could be bumped further (not tested)

Comment thread misc/build.gradle

jar.archiveBaseName = "bcmisc-$vmrange"

sourceSets {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since 0.9.5, the protobuf plugin writes to a different folder
since the plugin registers its srcDirs on its own, this section is not needed anyway

Comment thread tls/build.gradle
task test25(type: Test) {

// This is testing the 21 code base
// This is testing the 25 code base

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

judging from the task name, this was a typo

Comment thread build.gradle
}

def String deriveOSGIVersion(String prjVersion) {
String deriveOSGIVersion(String prjVersion) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either return type or def, not both ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated Gradle features used - please update

1 participant