mkobit
10/24/2018, 7:07 PMMavenPublication
using withXml
?jcechace
10/29/2018, 9:09 AMmp
10/29/2018, 3:48 PMrivu.chakraborty
10/30/2018, 8:23 AM:buildSrc
providing dependencies to all other modules with Kotlin Gradle DSL.
This is the build.gradle.kts file inside buildSrc
import org.gradle.kotlin.dsl.`kotlin-dsl`
plugins {
`kotlin-dsl`
}
It was running perfectly well with Kotlin 1.2.50, but as soon as we update the Kotlin version to 1.3.0, we're getting the below gradle issue.
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':buildSrc'.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.internal.event.ListenerNotificationException: Failed to notify project evaluation listener.
rivu.chakraborty
10/30/2018, 9:39 AMhallvard
10/30/2018, 10:06 AMRichyHBM
10/30/2018, 10:13 AMhallvard
10/30/2018, 12:09 PMPlugin 'maven-publish' is a core Gradle plugin, which is already on the classpath. Requesting it with the 'apply false' option is a no-op.
darkmoon_uk
10/30/2018, 8:53 PMYour code will be
much more nicely formatted
for others to see,
kartikpatodi
10/31/2018, 10:12 AMkartikpatodi
10/31/2018, 10:21 AMJUnit5
in the plugins block?
As per my research junit is aldready bundled with gradle🤔plastiv
10/31/2018, 1:46 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
allWarningsAsErrors = true
freeCompilerArgs = ["-Xprogressive"]
}
}
Saša Šijak
11/02/2018, 6:19 AMirus
11/02/2018, 11:57 AMtasks.withType<KotlinJvmCompile> {
kotlinOptions {
freeCompilerArgs += listOf("-Xprogressive")
}
}
Johan Vergeer
11/02/2018, 1:26 PMJohan Vergeer
11/02/2018, 1:29 PMmp
11/02/2018, 4:12 PMNikky
11/05/2018, 1:51 PMmp
11/05/2018, 10:58 PMJetBrains/kotlin
repo doesn't seem to have issues enabled. On Gradle 5.0-rc-1, the kotlin plugin produces:
The DefaultSourceDirectorySet constructor has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the ObjectFactory service to create instances of SourceDirectorySet instead.
deviant
11/06/2018, 10:35 AMcompileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = [
'-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi',
'-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
"-XXLanguage:+InlineClasses"
]
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = [
'-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi',
'-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
"-XXLanguage:+InlineClasses"
]
}
}
ValV
11/06/2018, 4:21 PMcompileKotlin
task? Do I need val compileKotlin: KotlinCompile by tasks
line?ValV
11/06/2018, 4:38 PMimport org.jetbrains.kotlin.gradle.tasks.KotlinCompile
, but it says Unresolved reference: jetbrains
. So I need kotlin-gradle-plugin
to installed somehow, right? I have mavenLocal()
and mavenCentral()
, how do I get the plugin into local repository and plug outta there?henrik
11/09/2018, 9:43 AMrun { environment "key" "value" }
dsvoronin
11/12/2018, 10:26 AMsteamstreet
11/12/2018, 7:42 PMcompile(project(":client"))
). The error is Required org.gradle.usage 'java-runtime' and found incompatible value 'kotlin-api
dsvoronin
11/13/2018, 8:14 AMPaul Woitaschek
11/13/2018, 10:38 AMLonwabo
11/14/2018, 9:15 AMPaul Woitaschek
11/14/2018, 9:32 AMuser
11/14/2018, 4:34 PMuser
11/14/2018, 4:34 PMcristiangm
11/14/2018, 6:03 PMbamboo
11/14/2018, 7:08 PMcristiangm
11/14/2018, 9:44 PM