Skip to content

Commit 5ebac79

Browse files
committed
deprecate sonatype release mode for 7.3.0
as discussed today. The current implementation was a dead end and we will move it to another part of the build. It was needed to release bnd itself but should not be used anywhere outside Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
1 parent 1d23e2e commit 5ebac79

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

biz.aQute.bndlib/src/aQute/bnd/build/Project.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,18 +1217,27 @@ public void release(String name, boolean test) throws Exception {
12171217
release(new ReleaseParameter(name, test, false));
12181218
}
12191219

1220+
@Deprecated(forRemoval = true, since = "7.3.0")
12201221
public static class ReleaseParameter {
1222+
@Deprecated
12211223
public String name;
1224+
@Deprecated
12221225
public boolean test;
1226+
@Deprecated
12231227
public boolean lastBundleInWorkspace;
12241228

1229+
@Deprecated(forRemoval = true, since = "7.3.0")
12251230
public ReleaseParameter(String name, boolean test, boolean lastBundleInWorkspace) {
12261231
this.name = name;
12271232
this.test = test;
12281233
this.lastBundleInWorkspace = lastBundleInWorkspace;
12291234
}
12301235
}
12311236

1237+
/**
1238+
* Do not use this method.
1239+
*/
1240+
@Deprecated(forRemoval = true, since = "7.3.0")
12321241
public void release(ReleaseParameter relParam) throws Exception, IOException {
12331242
List<RepositoryPlugin> releaseRepos = getReleaseRepos(relParam.name);
12341243
if (releaseRepos.isEmpty()) {

docs/_plugins/maven.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A configuration can look like this:
3333
index=${.}/release.maven; \
3434
name="Release"
3535

36-
#### Release to Maven Central via Sonatype Central Portal
36+
#### Release to Maven Central via Sonatype Central Portal (deprecated for removal in 7.3.0)
3737

3838
Maven Central now offers publishing through the [Sonatype Central Portal](https://central.sonatype.com/), which provides a streamlined publishing process. The MavenBndRepository plugin supports this with the `sonatypeMode` configuration property.
3939

gradle-plugins/biz.aQute.bnd.gradle/src/main/java/aQute/bnd/gradle/BndPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public void execute(Task tt) {
652652
// case for sonatype release)
653653
tt.getLogger()
654654
.lifecycle("bnd: Last release bundle ({}) {}", count, bndProject.getName());
655-
bndProject.release(new ReleaseParameter(null, false, true));
655+
bndProject.release(new (null, false, true));
656656
}
657657
} catch (Exception e) {
658658
throw new GradleException(

0 commit comments

Comments
 (0)