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
@@ -82,19 +74,21 @@ if (!project.hasProperty("otel.release")) {
82
74
val apiBaseVersion:String? by project
83
75
val baselineVersion = apiBaseVersion ?: latestReleasedVersion
84
76
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
-
},
77
+
try {
78
+
files(findArtifact(baselineVersion))
79
+
} catch (e:Exception) {
80
+
// if we can't find the baseline artifact, this is probably one that's never been published before,
81
+
// so publish the whole API. We do that by flipping this flag, and comparing the current against nothing.
82
+
onlyModified.set(false)
83
+
files()
84
+
},
93
85
)
94
86
95
87
// Reproduce defaults from https://github.com/melix/japicmp-gradle-plugin/blob/09f52739ef1fccda6b4310cf3f4b19dc97377024/src/main/java/me/champeau/gradle/japicmp/report/ViolationsGenerator.java#L130
96
88
// with some changes.
97
89
val exclusions = mutableListOf<String>()
90
+
// Generics are not detected correctly
91
+
exclusions.add("CLASS_GENERIC_TEMPLATE_CHANGED")
98
92
// Allow new default methods on interfaces
99
93
exclusions.add("METHOD_NEW_DEFAULT")
100
94
// Allow adding default implementations for default methods
@@ -115,7 +109,11 @@ if (!project.hasProperty("otel.release")) {
115
109
116
110
// this is needed so that we only consider the current artifact, and not dependencies
0 commit comments