MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    官方插件自配置的Maven太慢,想用别的仓库

    开发交流
    3
    4
    210
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 2
      250king last edited by

      我现在公司局域网内部有个私有仓库,想优先使用企业内部的仓库。结果配置了仓库,编译速度还是慢得出奇。后来经过排查才发现插件已经自己配了仓库——https://dl.bintray.com/him188moe/mirai,而且优先级最高。我可忍受不了这个慢速度,有没有什么办法可以屏蔽插件自配置的仓库?

      plugins {
          val kotlinVersion = "1.5.10"
          kotlin("jvm") version kotlinVersion
          kotlin("plugin.serialization") version kotlinVersion
          id("net.mamoe.mirai-console") version "2.6.7"
      }
      
      group = "fun.hana.bot.qq"
      version = "2.0.0"
      
      dependencies {
          implementation("org.mongodb:mongodb-driver-sync:4.3.1")
          implementation("com.squareup.okhttp3:okhttp:4.9.1")
          implementation("org.json:json:20210307")
          implementation("org.jsoup:jsoup:1.14.2")
      }
      
      repositories {
          mavenLocal()
          maven("https://10.155.107.100/repository/public")
          mavenCentral()
      }
      
      

      已配置仓库

      > Task :showRepositories
      repository: maven  #https://dl.bintray.com/him188moe/mirai
      repository: MavenLocal    #本地  
      repository: maven2    #企业私有库
      repository: MavenRepo    #中央仓库
      
      1 Reply Last reply Reply Quote 1
      • Karlatemp
        Karlatemp last edited by

        2.7-RC

        2 1 Reply Last reply Reply Quote 1
        • RainChan
          RainChan 摸鱼 last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • 2
            250king @Karlatemp last edited by

            @karlatemp 在 官方插件自配置的Maven太慢,想用别的仓库 中说:

            2.7-RC

            OK

            > Task :showRepositories
            repository: MavenLocal
            repository: maven
            repository: MavenRepo
            
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact