lex
02/12/2018, 5:45 AMjeherrejon08
02/13/2018, 10:42 PMkotlin-dsl
pluginziggy42
02/14/2018, 8:41 AMaballano
02/18/2018, 10:41 PMrobolectric : dependencies.create("...") {
exclude group: 'org.assertj'
},
hmole
02/20/2018, 10:51 AMhmole
02/20/2018, 1:25 PMmantono
02/20/2018, 3:54 PMCzar
02/22/2018, 1:56 PMsettings.gradle.kts
be evaluated before build.gradle.kts
? Specifically pluginManagement
part?Czar
02/22/2018, 2:00 PM4.5.1
gradle.properties kotlin.version=1.2.21
build.gradle.kts plugins {
kotlin("jvm")
}
settings.gradle.kts pluginManagement {
repositories {
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id.startsWith("org.jetbrains.kotlin")) {
useVersion(gradle.rootProject.extra["kotlin.version"] as String)
}
}
}
}
rootProject.name = "blabla"
$ gradle tasks
result:
FAILURE: Build failed with an exception.
Build file '/home/czar/work/occ/build.gradle.kts' line: 2
Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Gradle Central Plugin Repository (plugin dependency must include a version number for this source)
evan
02/28/2018, 12:18 AMinline
functions with gradle?
I’ve done a cursory search on Stack and found no leads:
https://stackoverflow.com/questions/41466092/code-coverage-inline-functiongaetan
02/28/2018, 10:32 AMmkobit
02/28/2018, 5:47 PMsettings.gradle.kts
scripts to work in IntelliJ?araqnid
02/28/2018, 5:56 PMsdeleuze
03/01/2018, 11:31 AMtest {
useJUnitPlatform()
}
jlleitschuh
03/01/2018, 4:25 PMtasks {
"test"<Test> {
useJUnitPlatform()
}
}
Just looks cleaner IMOVova Lantsov
03/05/2018, 6:33 AMvoddan
03/05/2018, 10:40 AMs1m0nw1
03/05/2018, 9:47 PMpatrickdelconte
03/06/2018, 12:18 PMFlorian Wiesner
03/08/2018, 4:42 PMbuild.gradle.kts
fails with GradleRunner
as the decoraded class lacks the extension propertiesvinayagasundar
03/11/2018, 6:42 PMkotlin-platform-common
plugiin I'm getting following error any idea what's wrong herecarolos
03/12/2018, 4:46 PMgildor
03/13/2018, 4:27 PM-PpropertyName=value
guenther
03/16/2018, 11:39 AMbuild.gradle.kts
plugins {
id("org.sonarqube") version "2.6.2" apply false
}
apply {
from("sonarqube.gradle.kts")
}
--------
sonarqube.gradle.kts
apply{
plugin("org.sonarqube")
}
configure<org.sonarqube.gradle.SonarQubeExtension> {
properties {
property("sonar.projectName", "${rootProject.name}-${project.name}")
}
}
bjartek
03/17/2018, 5:49 PMbjartek
03/18/2018, 7:58 PMsprelacart
03/19/2018, 11:37 AMjar {
excludes = ["application*.yaml"]
}
Currently I found a way but it looks a bit awkward to me:
tasks {
"jar"(Jar::class) {
excludes.add("application*.yaml")
}
}
sprelacart
03/19/2018, 11:45 AMapomelov
03/19/2018, 5:39 PM\build.gradle.kts:8:5: Expression 'kotlin' cannot be invoked as a function. The function 'invoke()' is not found
on any gradle task, I'm running from IDEA. This is preceded by strange warning I've never seen before:
WARN: Failed to initialize native filesystem for Windows
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at org.jetbrains.kotlin.com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:95)
at org.jetbrains.kotlin.com.intellij.openapi.application.PathManager.getBinPath(PathManager.java:132)
at org.jetbrains.kotlin.com.intellij.util.lang.UrlClassLoader.loadPlatformLibrary(UrlClassLoader.java:311)
at org.jetbrains.kotlin.com.intellij.openapi.util.io.win32.IdeaWin32.<clinit>(IdeaWin32.java:48)
Any idea?
upd: from cmd line everything is ok, but I have --no-daemon global setting, that does not affect IDEA afaikapomelov
03/19/2018, 7:15 PMapomelov
03/19/2018, 7:15 PMbashor
03/20/2018, 5:38 PM