Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin with id 'com.gradle.build-scan' not found. #3759

Closed
jaredsburrows opened this issue Dec 8, 2017 · 15 comments
Closed

Plugin with id 'com.gradle.build-scan' not found. #3759

jaredsburrows opened this issue Dec 8, 2017 · 15 comments
Assignees
Milestone

Comments

@jaredsburrows
Copy link

Repro:

git clone https://github.com/jaredsburrows/android-gif-example
cd android-gif-example
gradlew assembleDebug --scan

Example build:

https://travis-ci.org/jaredsburrows/android-gif-example/builds/313230232?utm_source=github_status&utm_medium=notification

Error:

$ gradlew assembleDebug --scan
Download https://plugins.gradle.org/m2/com/gradle/build-scan-plugin/1.10.3/build-scan-plugin-1.10.3.pom
Download https://plugins.gradle.org/m2/com/gradle/build-scan-plugin/1.10.3/build-scan-plugin-1.10.3.jar

FAILURE: Build failed with an exception.

* Where:
Auto-applied by using --scan

* What went wrong:
Could not apply requested plugin [id: 'com.gradle.build-scan', version: '1.10.3', artifact: 'com.gradle:build-scan-plugin:1.10.3'] as it does not provide a plugin with id 'com.gradle.build-scan'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).
> Plugin with id 'com.gradle.build-scan' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
@oehme
Copy link
Contributor

oehme commented Dec 8, 2017

@bamboo It seems like the Kotlin DSL is trying to execute plugin requests for second level scripts. This should be avoided by this commit, did this not make it into 4.4?

@bamboo
Copy link
Member

bamboo commented Dec 8, 2017

@oehme I'm afraid that logic was lost during the settings.gradle.kts effort.

@oehme
Copy link
Contributor

oehme commented Dec 8, 2017

@bamboo What about the test case that was in that commit? Was that not making the right assertion? Or was it removed?

@oehme oehme added this to the 4.5 RC1 milestone Dec 8, 2017
@bamboo
Copy link
Member

bamboo commented Dec 8, 2017

It wasn't removed. That commit was made to a release branch and not backported to develop by mistake.

@oehme
Copy link
Contributor

oehme commented Dec 8, 2017

Ah I see, so that's why it is in 4.3.1, but not in 4.4. I think we'll need a 4.4.1 for this.

@bamboo
Copy link
Member

bamboo commented Dec 8, 2017

We're working on a fix.

bamboo added a commit to gradle/kotlin-dsl-samples that referenced this issue Dec 8, 2017
By no longer sending any plugin requests from non top level script.

See gradle/gradle#3759
bamboo added a commit to gradle/kotlin-dsl-samples that referenced this issue Dec 8, 2017
By no longer sending any plugin requests from non top level script.

See gradle/gradle#3759
@bamboo
Copy link
Member

bamboo commented Dec 8, 2017

The fix is ready. I'm cooking a new kotlin-dsl 0.13.2 release with the fix to go in gradle@release.

@jaredsburrows
Copy link
Author

jaredsburrows commented Dec 8, 2017 via email

@jaredsburrows
Copy link
Author

I see that this is tagged with 4.5 RC1, is the fix too big for a patch on 4.4?

@bamboo
Copy link
Member

bamboo commented Dec 8, 2017

@jaredsburrows It's not yet clear if there will be a 4.4.1 release, in the meantime the v0.13.2 Kotlin DSL distribution snapshot is available: https://github.com/gradle/kotlin-dsl/releases/tag/v0.13.2

@jaredsburrows
Copy link
Author

jaredsburrows commented Dec 8, 2017 via email

@bamboo
Copy link
Member

bamboo commented Dec 8, 2017

You can't.

You can use the Gradle Kotlin DSL distribution snapshot mentioned in the release notes to validate the fix though:

$ cd $YOUR_PROJECT_ROOT
$ gradle wrapper --gradle-distribution-url https://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.4-20171208150335+0000-all.zip

It is basically Gradle 4.4 with Kotlin DSL v0.13.2.

@jaredsburrows
Copy link
Author

@bamboo I have confirmed that this works. Thanks! I am now closing.

@oehme
Copy link
Contributor

oehme commented Dec 9, 2017

Reopening since we haven't decided on the target milestone yet.

@oehme oehme reopened this Dec 9, 2017
@oehme oehme modified the milestones: 4.5 RC1, 4.4.1 Dec 12, 2017
@bmuschko bmuschko changed the title [4.4] - Plugin with id 'com.gradle.build-scan' not found. Plugin with id 'com.gradle.build-scan' not found. Dec 18, 2017
@bamboo
Copy link
Member

bamboo commented Dec 18, 2017

Resolved in 435ac55.

@bamboo bamboo closed this as completed Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants