bamboo
02/13/2017, 4:03 PMikej
02/15/2017, 9:02 PMval publishing: NamedDomainObjectContainer<Publication> by extensions
publishing {
"Module"(MavenPublication::class) {
// more code here
}
}
but I get this error:
Element 'publishing' of type 'org.gradle.api.publish.internal.DefaultPublishingExtension_Decorated' from container 'org.gradle.api.internal.plugins.DefaultConvention@260e45a' cannot be cast to 'org.gradle.api.NamedDomainObjectContainer'
Am I doing something wrong, or is this not supported yet?orangy
02/17/2017, 11:33 AMjlleitschuh
02/17/2017, 6:53 PMsdeleuze
02/18/2017, 8:44 AMikej
02/18/2017, 6:22 PMbuildscript { dependencies { classpath(...) }}
in the root project, it is not used in sub-projects, neither in the IDE nor on the command line. This means that as it stands now, I have to repeat buildscript blocks with repository configurations, dependencies and version numbers in all projects where external plugins are applied. Is this a limitation that will go away before 1.0?breandan
02/19/2017, 7:09 PMkotlin-gradle-script
. Is there going to be a better way to configure plugin DSLs, other than configure<SomePluginExtension> { … }
?sdeleuze
02/20/2017, 5:16 PMkotlin-runtime in the classpath
jlleitschuh
02/21/2017, 4:24 PMoehme
02/21/2017, 4:25 PMCreate Module for each SourceSet
option when importingjlleitschuh
02/21/2017, 9:14 PM2017-02-21 16:11:08,981 [ 177485] WARN - finder.JvmIDEVirtualFileFinder - There are 3 classes with same fqName: kotlin/io/FilesKt__FilePathComponentsKt found.
sdeleuze
02/23/2017, 2:14 PMjlleitschuh
02/24/2017, 8:21 PMbamboo
02/24/2017, 10:09 PMmbstavola
02/27/2017, 10:20 PMgildor
03/01/2017, 4:50 PMjlleitschuh
03/03/2017, 5:33 PM@get:Input
override val configuration: CodegenConfigurator by lazy { project.extensions.getByType(CodegenConfigurator::class.java) }
This throws an exception because:
Could not add entry ':PlexxiSwagger:Spec:swagger' to cache taskHistory.bin (/Users/jonathanleitschuh/work/git/plexxicontrol/.gradle/3.5-20170217174236+0000/taskHistory/taskHistory.bin).
> Unable to store task input properties. Property 'configuration' with value 'io.swagger.codegen.config.CodegenConfigurator_Decorated@735e4fd' cannot be serialized.
I know that the undecorated CodegenConfigurator
is serializable because I made it so that it was:
https://github.com/swagger-api/swagger-codegen/blob/master/modules/swagger-codegen/src/main/java/io/swagger/codegen/config/CodegenConfigurator.java#L38
Is this because of the extensions plugin?suresh
03/06/2017, 11:32 PMunable to compile script
errorjlleitschuh
03/07/2017, 12:07 AMHasConvention
seems ugly given that there's a javadoc on it that says that its not going to stick around:
https://github.com/JLLeitschuh/ktlint-gradle/blob/master/src/main/kotlin/org/jlleitschuh/gradle/ktlint/KtLintPlugin.kt#L37-L40
However, the GSK build uses the same thing;
https://github.com/gradle/gradle-script-kotlin/blob/master/build.gradle.kts#L115-L117
I'm assuming if there was a better way you'd be doing it. Is there a way that plugins are supposed to consume the kotlin plugin's source set?
/**
* Demarcates objects that expose a convention.
*
* Convention objects aren't going to be around forever, so this is a temporary interface.
*/
public interface HasConvention {
jlleitschuh
03/07/2017, 4:25 PM"ktlintPlugin"
string not work with apply
?gildor
03/09/2017, 2:59 AMpluginBundle
and gradlePlugin
extensions:
gradlePlugin {
(plugins) {
“pluginName" { /* plugin config */ }
}
}
Anyway, good job!sdeleuze
03/15/2017, 12:42 AMplugins { }
syntax but declaring org.jetbrains.kotlin.plugin.spring
don’t work (plugin not taken in account).mariolopezjr
03/18/2017, 5:13 AMmkobit
03/18/2017, 5:28 AMbuildScan {
setLicenseAgree("yes")
setLicenseAgreementUrl(”<https://gradle.com/terms-of-service%22|https://gradle.com/terms-of-service">)
rather than
buildScan {
licenseAgree = "yes"
licenseAgreementUrl = “<https://gradle.com/terms-of-service>”
even though the methods seem to fit the right signature for setters - public void setLicenseAgreementUrl(String var1)
sdeleuze
03/18/2017, 4:08 PMbuild.gradle.kts
to make it works” issue that various users (including me) reported?jlleitschuh
03/21/2017, 4:26 PMgskGenerateAccessors
to figure out what code you need for that plugin.dstarcev
03/24/2017, 5:56 PMcompileKotlin
and compileJava
tasks in gradle?
I try this
compileJava.dependsOn.remove(compileKotlin)
compileKotlin.dependsOn(compileJava)
but I am still getting the error
Circular dependency between the following tasks:
:backend:compileJava
\--- :backend:compileKotlin
\--- :backend:compileJava (*)
sdeleuze
03/25/2017, 11:39 PMsuresh
03/27/2017, 12:25 AMimport org.jetbrains.kotlin.gradle.tasks.KotlinCompile
....
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}
suresh
03/27/2017, 3:28 AMjvmTarget
for kotlincompile, it takes the default value as 1.6
suresh
03/27/2017, 3:28 AMjvmTarget
for kotlincompile, it takes the default value as 1.6
mkobit
03/27/2017, 3:46 AM