altavir
04/23/2019, 7:11 PMgildor
04/23/2019, 11:33 PMaltavir
04/24/2019, 6:30 AMgildor
04/24/2019, 6:31 AMaltavir
04/24/2019, 6:31 AMgildor
04/24/2019, 6:32 AM--scan
to build commandaltavir
04/24/2019, 6:32 AMgildor
04/24/2019, 6:33 AMaltavir
04/24/2019, 6:34 AMgildor
04/24/2019, 6:34 AMaltavir
04/24/2019, 6:34 AMgildor
04/24/2019, 6:35 AMaltavir
04/24/2019, 6:38 AMgildor
04/24/2019, 6:40 AMaltavir
04/24/2019, 6:42 AMgildor
04/24/2019, 6:43 AMkotlin.incremental=true
, but with
kotlin.parallel.tasks.in.project=true
org.gradle.parallel=true
altavir
04/24/2019, 6:48 AMgildor
04/24/2019, 6:49 AMaltavir
04/24/2019, 7:28 AMgildor
04/24/2019, 7:32 AMaltavir
04/24/2019, 7:54 AMgildor
04/24/2019, 7:56 AMaltavir
04/24/2019, 7:56 AMval artifactoryUser: String? by project
. It seems to return nullgradle.properties
file is in the system user directorygildor
04/24/2019, 7:59 AMaltavir
04/24/2019, 8:00 AMgildor
04/24/2019, 8:00 AMaltavir
04/24/2019, 8:00 AMgildor
04/24/2019, 8:01 AMaltavir
04/24/2019, 8:03 AMgildor
04/24/2019, 8:03 AMartifactoryUser=someUser
to ~/.gradie/gradle.propertiesaltavir
04/24/2019, 8:04 AMgildor
04/24/2019, 8:05 AM-PpropertyName=propertyValue
command line argumentaltavir
04/24/2019, 8:06 AMgildor
04/24/2019, 8:07 AMaltavir
04/24/2019, 8:07 AMgildor
04/24/2019, 8:07 AMaltavir
04/24/2019, 8:09 AMgildor
04/24/2019, 8:09 AMaltavir
04/24/2019, 8:10 AMgildor
04/24/2019, 8:11 AM~/.gradle/gradle.properties
is doesn’t work for you?altavir
04/24/2019, 8:11 AMgildor
04/24/2019, 8:13 AM~/gradle.properties
and this worked?altavir
04/24/2019, 8:13 AMgildor
04/24/2019, 8:13 AMaltavir
04/24/2019, 8:18 AMgildor
04/29/2019, 1:57 AMdependencies
block instead of sourceSet DSL:
https://github.com/mipt-npm/kmath/compare/dev...gildor:type-safe-configuration?expand=1
Just interested about your opinion, how do you think is it make sense, I like it because it less typing, less nesting and uses standard Gradle dependencies DSLaltavir
04/29/2019, 4:28 AMcompile
with api
). I think this notation would be useful, but only if it is more universal.gildor
04/29/2019, 4:47 AMharder to move from one project to anotherDo you mean to completely different project? You have those configurations even without custom plugin, but no type-safe accessors:
"jvmMainApi"("com.kyonifer:koma-core-api-jvm:0.12")
But ti also possible to get instance of configuration:
dependencies {
val jvmMainApi by configurations
jvmMainApi("com.kyonifer:koma-core-api-jvm:0.12")
}
altavir
04/29/2019, 4:58 AMgildor
04/29/2019, 5:04 AMplugins{}
block)
Because those configurations are created on runtime when you create new target of MPP plugin, like js {}
or jvm("java8") {}
so you have no type safe accessors for them, only for commonMain*
and commonTest*
plugins{}
dsl, Gradle allows us to use type-safe accessors for configuraions available after configuration time, so if you try to use for example iosArm64MainApi
you will get error, until you add iosArm64{}
target to multiplatform-config
val jvmMainApi by configurations
is just syntactic sugar for:
configurations["jvmMainApi"] ?: error("Configuration not found")
And doesn’t provide real type safetyaltavir
04/29/2019, 5:07 AMgildor
04/29/2019, 5:10 AMwere several bad design decisions since thenWhat exactly do you mean?