Nikky
01/13/2019, 1:31 AMgotoOla
01/14/2019, 8:09 AMJohan Vergeer
01/14/2019, 8:16 AMmkobit
01/14/2019, 5:28 PMnikolaymetchev
01/15/2019, 6:32 PMhmole
01/15/2019, 7:07 PMkotlin
plugin, api
configuration doesn't work as expected(consumers don't see it as transitive dependency), only after applying java-library
modules does it work. Is it intended?Seri
01/15/2019, 9:46 PMbarteks2x
01/17/2019, 5:01 AMmagnusj
01/17/2019, 5:12 AMtasks.getByName<Upload>("uploadArchives") {
?thanksforallthefish
01/17/2019, 10:43 AMMarc Knaup
01/17/2019, 5:30 PMconfigurations {
all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(embeddedKotlinVersion)
because("All Kotlin modules must have the same version.")
}
}
}
}
Something like that being part of the Kotlin Gradle Plugin would be great, but with configurable version of course.jmfayard
01/18/2019, 10:56 AMbuildSrcVersions
for that. It extracts all dependencies with their exact version.
So you only have to define which dependencies you want
val forceDependencies = listOf(Libs.kotlin_reflect, Libs.kotlin_stdlib_jdk7)
and then the resolutionStrategy
block is always the same and straightforward
https://github.com/jmfayard/buildSrcVersions/issues/28aarjav
01/19/2019, 7:20 PMrook
01/21/2019, 8:34 PMgradle.kts
. I’m working in Android Studio and I’ve replaced my app-level build.gradle
with build.gradle.kts
. My project now helpfully informs me that Kotlin not configured
. I’m not really sure what to do about it. I’ve tried just performing Configure Kotlin in Project
, but it fails with “there aren’t configurators available”.Nikky
01/23/2019, 3:12 AM-SNAPSHOT
maven publications that point to the latest actual maven publication.. seems like gradle and/or idea stopped supporting those does anybody know if something like that was mentioned in releasenotes or here ?
i just use dynamic version numbers now eg: 0.4.5+
instead of 0.4.5-SNAPSHOT
it could be that the did not always have a scope in the maven pom.. i guess that would be required, no clue why it worked before thenLeoColman
01/23/2019, 2:35 PMcristiangm
01/23/2019, 7:38 PMGradle: Build model 'org.jetbrains.kotlin.gradle.KotlinMPPGradleModel' for project ':app'I don't use MPP
Nikky
01/23/2019, 11:32 PMCould not get logger for ':core:compileKotlin'. Falling back to sl4j logger
for every module, is it safe to ignore ?ikej
01/24/2019, 10:41 AMjkbbwr
01/25/2019, 4:39 PMgumil
01/26/2019, 11:18 AMlocal.properties
when using kotlin gradle script?Davide Giuseppe Farella
01/28/2019, 7:27 AMclass Classpath( scope: ScriptHandlerScope ) {
val dependencies: DependencyHandlerScope.() -> Unit = {
scope.run {
classpath( kotlin("gradle-plugin", Versions.kotlin))
classpath("org.jetbrains.kotlin:kotlin-serialization:${Versions.kotlin}")
classpath("com.android.tools.build:gradle:3.3.0")
classpath("com.squareup.sqldelight:gradle-plugin:${Versions.sqldelight}")
}
}
}
And this in my build.gradle.kts:
buildscript {
repositories( Repositories.all )
dependencies( Classpath(this ).dependencies )
}
Is there something wrong here? Sync is running successfully, but I got the warning above my kts
file:
build configuration failed, using previous dependencies, run 'gradle tasks' for more information
which is not true, since that doesn’t give me more info 😄Bernhard
01/28/2019, 11:06 AMuser
01/29/2019, 10:59 AMxenoterracide
01/29/2019, 7:24 PMtasks {
val dependsOnModules: Task.() -> Unit = {
gradle.includedBuilds.forEach { dependsOn(it.task(":${this.name}")) }
}
"build" dependsOnModules
"clean" dependsOnModules
"wrapper" dependsOnModules
}
aoriani
01/30/2019, 1:13 AMAleksey Kornienko
01/30/2019, 1:17 PMNikky
01/30/2019, 7:55 PMapply false
and removing the version information from the subProjects plugin block fixed it.. and i have no clue why and whats going on thereNikky
01/31/2019, 8:41 AMsnowe
01/31/2019, 8:23 PMsnowe
01/31/2019, 8:23 PMxenoterracide
01/31/2019, 8:29 PMapi()
is the equivalentsnowe
01/31/2019, 8:30 PMjava-library
as a plugin???serebit
01/31/2019, 8:36 PMkotlin-dsl
to your pluginssnowe
01/31/2019, 8:39 PMcompile
to implementation
everything starts to fail, because implementation
doesn’t resolve transitively.implementation
declarations to everything or api
just to the common modules.api
doesn’t resolve unless I add java-library
as I just discovered.serebit
01/31/2019, 8:44 PMsnowe
01/31/2019, 8:46 PMjava-library
resolved my issue.octylFractal
01/31/2019, 11:28 PMjava-library
is what you want for thatsnowe
01/31/2019, 11:34 PMoctylFractal
01/31/2019, 11:38 PMsnowe
01/31/2019, 11:38 PMjlleitschuh
02/01/2019, 8:56 PMkotlin-dsl
plugin. The kotlin-dls
plugin is for developing Gradle plugins using the kotlin-dsl
.snowe
02/01/2019, 9:46 PM