Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 424 Vote(s) - 3.54 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kotlin + gradle+ intellij - no repositories are defined

#1
anyone can help me out please? i got just project source code and dockefile from ex-colleague without explanation of work but i got in trouble now with time limitation.
please please please.

-------------------------------------------------------------------------------------------------

i got this error message below

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.3.41
because no repositories are defined.

-----------------------------------------------------------------------------------------------
that's my build.gradle below



plugins {
id 'idea'
id "org.jetbrains.kotlin.jvm" version "1.3.41"
id "org.jetbrains.kotlin.kapt" version "1.3.41" apply false
id "org.jetbrains.kotlin.plugin.spring" version "1.3.41" apply false
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.41" apply false
id "org.springframework.boot" version "2.1.6.RELEASE" apply false
id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
id "com.palantir.docker" version "0.22.1" apply false
}
subprojects {
group = "bawoori"
version = "1.0"
sourceCompatibility = 1.8
apply plugin: "kotlin"
apply plugin: "io.spring.dependency-management"

repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.41"
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
}

Reply

#2
You need to define repository for root Gradle project for the build script:

buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.70"
}
}

plugins {
id "org.jetbrains.kotlin.<...>" version "1.3.70"
}

repositories {
// this repo should be available in every subproject that uses kotlin
mavenCentral() // or jcentrer
}

See [Using Gradle](

[To see links please register here]

) section in Kotlin documentation for more information.
Reply

#3
you need add `allproject`
```groovy
plugins {
id 'idea'
id "org.jetbrains.kotlin.jvm" version "1.3.41"
id "org.jetbrains.kotlin.kapt" version "1.3.41" apply false
id "org.jetbrains.kotlin.plugin.spring" version "1.3.41" apply false
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.41" apply false
id "org.springframework.boot" version "2.1.6.RELEASE" apply false
id "io.spring.dependency-management" version "1.0.7.RELEASE" apply false
id "com.palantir.docker" version "0.22.1" apply false
}

allprojects {
group = "bawoori"
version = "1.0"
sourceCompatibility = "1.8"

repositories {
mavenCentral()
jcenter()
}

compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = sourceCompatibility
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = sourceCompatibility
}
}
}
subprojects {
apply plugin: "kotlin"
apply plugin: "io.spring.dependency-management"

repositories {
mavenCentral()
jcenter()
}
}
```
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through