You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for checking package exports for changed API
Currently API tools only check for API changes on the bundle level, but
even more important are checks on the exported packages. If the bundle
version is not properly incremented this can lead to method not found or
similar errors, also consumers of the package can not depend on the
package version reliable to get new API.
This now adds some basic checks to check for API changes on the package
level, compare it with the baseline and suggest a new version based on
the resulting delta being a breaking or non breaking change.
Copy file name to clipboardExpand all lines: apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/problems/problemmessages.properties
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
# Contributors:
12
12
# IBM Corporation - initial API and implementation
19 = The major version should be incremented in version {0}, because the modification of the version range for the re-exported bundle {1} requires a major version change
38
38
20 = The minor version should be incremented in version {0}, because the modification of the version range for the re-exported bundle {1} requires a minor version change
39
39
62 = The major version should be incremented in version {0}, because the bundle {1} is no longer re-exported
40
+
63 = The minor version for the package ''{0}'' should be incremented to version {1}, since new APIs have been added since version {2}
41
+
65 = The major version for the package ''{0}'' should be incremented to version {1}, since API breakage occurred since version {2}
Copy file name to clipboardExpand all lines: apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/provisional/problems/IApiProblem.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -242,6 +242,26 @@ public interface IApiProblem {
242
242
* @see #CATEGORY_USAGE
243
243
*/
244
244
245
+
/**
246
+
* Constant representing the value of the major version change
0 commit comments