JetBrains / lincheck

Framework for testing concurrent data structures
Mozilla Public License 2.0
574 stars 33 forks source link

Plugin [id: 'kotlinx.team.infra', version: '0.2.0-dev-55'] was not found in any of the following sources #105

Closed you-n-g closed 3 years ago

you-n-g commented 3 years ago

Thanks for release the code of kotlinx-lincheck

I'm trying to build the project by ./gradlew build recently. However following errors appear.

FAILURE: Build failed with an exception.

* Where:
Build file '/data/nfs_home_data/zhenyue_orig/repos/kotlinx-lincheck/kotlinx-lincheck/build.gradle.kts' line: 12

* What went wrong:
Plugin [id: 'kotlinx.team.infra', version: '0.2.0-dev-55'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'kotlinx.team.infra:kotlinx.team.infra.gradle.plugin:0.2.0-dev-55')
  Searched in the following repositories:
    maven(https://dl.bintray.com/kotlin/kotlinx)
    MavenRepo
    BintrayJCenter
    Gradle Central Plugin Repository

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3s

And then I try to get more detailed info by gradle --info. And then I get following errors

Initialized native services in: /data1/xiaoyang/home/.gradle/native
The client will now receive all logging from the daemon (pid: 68791). The daemon log file: /data1/xiaoyang/home/.gradle/daemon/6.6.1/daemon-68791.out.log
Starting 3rd build in daemon [uptime: 2 mins 37.363 secs, performance: 100%, non-heap usage: 17% of 268.4 MB]
Using 64 worker leases.
Starting Build
Settings evaluated using settings file '/data/nfs_home_data/zhenyue_orig/repos/kotlinx-lincheck/kotlinx-lincheck/settings.gradle.kts'.
Projects loaded. Root project using build file '/data/nfs_home_data/zhenyue_orig/repos/kotlinx-lincheck/kotlinx-lincheck/build.gradle.kts'.
Included projects: [root project 'lincheck']

> Configure project :
Evaluating root project 'lincheck' using build file '/data/nfs_home_data/zhenyue_orig/repos/kotlinx-lincheck/kotlinx-lincheck/build.gradle.kts'.
Failed to get resource: HEAD. [HTTP HTTP/1.1 403 Forbidden: https://dl.bintray.com/kotlin/kotlinx/org/jetbrains/kotlin/multiplatform/org.jetbrains.kotlin.multiplatform.gradle.plugin/1.4.0/org.jetbrains.kotlin.multiplatform.gradle.plugin-1.4.0.pom)]
Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://dl.bintray.com/kotlin/kotlinx/kotlinx/team/infra/kotlinx.team.infra.gradle.plugin/0.2.0-dev-55/kotlinx.team.infra.gradle.plugin-0.2.0-dev-55.pom)]
Resource missing. [HTTP GET: https://repo.maven.apache.org/maven2/kotlinx/team/infra/kotlinx.team.infra.gradle.plugin/0.2.0-dev-55/kotlinx.team.infra.gradle.plugin-0.2.0-dev-55.pom]
Resource missing. [HTTP GET: https://jcenter.bintray.com/kotlinx/team/infra/kotlinx.team.infra.gradle.plugin/0.2.0-dev-55/kotlinx.team.infra.gradle.plugin-0.2.0-dev-55.pom]
Resource missing. [HTTP GET: https://jcenter.bintray.com/kotlinx/team/infra/kotlinx.team.infra.gradle.plugin/0.2.0-dev-55/kotlinx.team.infra.gradle.plugin-0.2.0-dev-55.pom]

FAILURE: Build failed with an exception.

* Where:
Build file '/data/nfs_home_data/zhenyue_orig/repos/kotlinx-lincheck/kotlinx-lincheck/build.gradle.kts' line: 12

* What went wrong:
Plugin [id: 'kotlinx.team.infra', version: '0.2.0-dev-55'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'kotlinx.team.infra:kotlinx.team.infra.gradle.plugin:0.2.0-dev-55')
  Searched in the following repositories:
    maven(https://dl.bintray.com/kotlin/kotlinx)
    MavenRepo
    BintrayJCenter
    Gradle Central Plugin Repository

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

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 4s

It seems that bintray does no longer host the dependency [id: 'kotlinx.team.infra', version: '0.2.0-dev-55'].

Do you have any suggestions about how to successfully build the project?

Thanks.

alefedor commented 3 years ago

Hi @you-n-g !

There are indeed problems because of bintray closing. We will fix this in future. For now, you can manually remove this plugin and its usages from build.gradle.kts or use the published lincheck artifact

you-n-g commented 3 years ago

@alefedor
Thanks so much! I followed your advice and It is fixed now. image