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 {
3737}
3838
3939val downloadPreviousReleaseJar by tasks.registering(Download ::class ) {
40+ if (gradle.startParameter.isOffline) {
41+ enabled = false
42+ }
4043onlyIf { extension.enabled.get() }
4144val previousVersion = extension.previousVersion.get()
4245src(" 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) {
4851}
4952
5053val checkBackwardCompatibility by tasks.registering(JapicmpTask ::class ) {
54+ if (gradle.startParameter.isOffline) {
55+ enabled = false
56+ }
5157onlyIf { extension.enabled.get() }
5258oldClasspath.from(downloadPreviousReleaseJar.map { it.outputFiles })
5359newClasspath.from(tasks.jar)
You can’t perform that action at this time.
0 commit comments