Skip to content

Commit 235a35c

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 235a35c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
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()) {

biz.aQute.repository/src/aQute/bnd/repository/maven/provider/SonatypeMode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package aQute.bnd.repository.maven.provider;
22

3+
@Deprecated(forRemoval = true, since = "7.3.0")
34
public enum SonatypeMode {
45

56
/*
@@ -23,6 +24,7 @@ public enum SonatypeMode {
2324
this.value = value;
2425
}
2526

27+
@Deprecated
2628
@Override
2729
public String toString() {
2830
return value;

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

0 commit comments

Comments
 (0)