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
@@ -52,7 +44,7 @@ fun findArtifact(version: String): File {
52
44
val depModule ="io.opentelemetry.semconv:${base.archivesName.get()}:$version@jar"
53
45
val depJar ="${base.archivesName.get()}-$version.jar"
54
46
val configuration:Configuration= configurations.detachedConfiguration(
55
-
dependencies.create(depModule),
47
+
dependencies.create(depModule),
56
48
)
57
49
return files(configuration.files).filter {
58
50
it.name.equals(depJar)
@@ -72,7 +64,7 @@ if (!project.hasProperty("otel.release")) {
72
64
// the japicmp "new" version is either the user-specified one, or the locally built jar.
73
65
val apiNewVersion:String? by project
74
66
val newArtifact = apiNewVersion?.let { findArtifact(it) }
75
-
?: file(getByName<Jar>("jar").archiveFile)
67
+
?: file(getByName<Jar>("jar").archiveFile)
76
68
newClasspath.from(files(newArtifact))
77
69
78
70
// only output changes, not everything
@@ -81,20 +73,23 @@ if (!project.hasProperty("otel.release")) {
81
73
// the japicmp "old" version is either the user-specified one, or the latest release.
82
74
val apiBaseVersion:String? by project
83
75
val baselineVersion = apiBaseVersion ?: latestReleasedVersion
84
-
oldClasspath.from(
85
-
try {
86
-
files(findArtifact(baselineVersion))
87
-
} catch (e:Exception) {
88
-
// if we can't find the baseline artifact, this is probably one that's never been published before,
89
-
// so publish the whole API. We do that by flipping this flag, and comparing the current against nothing.
90
-
onlyModified.set(false)
91
-
files()
92
-
},
93
-
)
76
+
// TODO: uncomment after first stable release
77
+
// oldClasspath.from(
78
+
// try {
79
+
// files(findArtifact(baselineVersion))
80
+
// } catch (e: Exception) {
81
+
// // if we can't find the baseline artifact, this is probably one that's never been published before,
82
+
// // so publish the whole API. We do that by flipping this flag, and comparing the current against nothing.
83
+
// onlyModified.set(false)
84
+
// files()
85
+
// },
86
+
// )
94
87
95
88
// Reproduce defaults from https://github.com/melix/japicmp-gradle-plugin/blob/09f52739ef1fccda6b4310cf3f4b19dc97377024/src/main/java/me/champeau/gradle/japicmp/report/ViolationsGenerator.java#L130
96
89
// with some changes.
97
90
val exclusions = mutableListOf<String>()
91
+
// Generics are not detected correctly
92
+
exclusions.add("CLASS_GENERIC_TEMPLATE_CHANGED")
98
93
// Allow new default methods on interfaces
99
94
exclusions.add("METHOD_NEW_DEFAULT")
100
95
// Allow adding default implementations for default methods
@@ -115,7 +110,14 @@ if (!project.hasProperty("otel.release")) {
115
110
116
111
// this is needed so that we only consider the current artifact, and not dependencies
0 commit comments