Hello! I am trying to create a demo project using ...
# gradle
v
Hello! I am trying to create a demo project using Kotlin that must build and run in an environment without access to the internet. For the project dependencies I have downloaded all the jars and placed them in a lib directory. I tried doing something similar with the plugin and it’s dependencies, but have not found a way to successfully compile my code. During the build I get the following error:
Copy code
Could not determine the dependencies of task ':compileKotlin'.
> Could not resolve all files for configuration ':kotlinCompilerClasspath'.
   > Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.10 because no repositories are defined.
     Required by:
         project :
Here is how I’m trying to load the plugin locally:
Copy code
buildscript {
    repositories {
        flatDir { dirs("plugins") }
    }
    dependencies {
        classpath(":kotlin-gradle-plugin:1.4.10")
        classpath(":kotlin-gradle-plugin-api:1.4.10")
        classpath(":kotlin-gradle-plugin-model:1.4.10")
        classpath(":kotlin-compiler-embeddable:1.4.10")
        classpath(":kotlin-compiler-runner:1.4.10")
        classpath(":kotlin-daemon-embeddable:1.4.10")
        classpath(":kotlin-daemon-client:1.4.10")
        ...
    }
}

apply(plugin = "org.jetbrains.kotlin.jvm")
Can anyone suggest how I can do what I’m attempting? Thanks in advance.
r
Might be worth trying the gradle slack community: https://gradle-community.slack.com/
t
probably you could use
buildSrc
module and add there all plugins via common
implementation
notation