File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
gradle/plugins/japicmp/src/main/kotlin Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ val extension = extensions.create<JApiCmpExtension>("japicmp").apply {
37
37
}
38
38
39
39
val downloadPreviousReleaseJar by tasks.registering(Download ::class ) {
40
+ if (gradle.startParameter.isOffline) {
41
+ enabled = false
42
+ }
40
43
onlyIf { extension.enabled.get() }
41
44
val previousVersion = extension.previousVersion.get()
42
45
src(" https://repo1.maven.org/maven2/${project.group.toString().replace(" ." , " /" )} /${project.name} /$previousVersion /${project.name} -$previousVersion .jar" )
@@ -48,6 +51,9 @@ val downloadPreviousReleaseJar by tasks.registering(Download::class) {
48
51
}
49
52
50
53
val checkBackwardCompatibility by tasks.registering(JapicmpTask ::class ) {
54
+ if (gradle.startParameter.isOffline) {
55
+ enabled = false
56
+ }
51
57
onlyIf { extension.enabled.get() }
52
58
oldClasspath.from(downloadPreviousReleaseJar.map { it.outputFiles })
53
59
newClasspath.from(tasks.jar)
You can’t perform that action at this time.
0 commit comments