jlleitschuh
07/25/2017, 3:06 PMAction<T>
to T.()
? If so what feature? Or is it just because of the magic of being able to preprocess the build file?eskatos
07/26/2017, 5:46 PM./gradlew clean
?sdeleuze
07/27/2017, 10:48 AMmvnpom
accessible cc @sureshjlleitschuh
08/03/2017, 5:10 PMx80486
08/04/2017, 8:16 PMShadowJar
plug-in using Kotlin DSL? I'm using Vert.x with Kotlin and so far the mergeServiceFiles
doesn't work; also I get some "unresolved reference" for manifest.attributes
(you know, the red bulb on the right). This is what I got so far...
plugins {
...
id("com.github.johnrengelman.shadow") version "2.0.1"
}
tasks.withType<ShadowJar> {
baseName = project.name
classifier = "shadow" // fat, shadow
manifest.attributes.apply {
put("Application-Name", project.name)
put("Gradle-Version", gradle.gradleVersion)
put("Implementation-Version", "${project.version}")
//put("Main-Class", "io.shido.MainVerticle")
put("Main-Verticle", "io.shido.MainVerticle")
}
mergeServiceFiles({ include("META-INF/services/io.vertx.core.spi.VerticleFactory") })
version = "${project.version}"
}
fitzoh
08/04/2017, 10:27 PMkotlin-dsl
plugin, anything I’m missing here?jlleitschuh
08/07/2017, 8:41 PM4.1
from 4.0.2
. Mostly related to dependency configurations missing like testCompile
.drako
08/08/2017, 2:37 PMjlleitschuh
08/08/2017, 11:14 PMjlleitschuh
08/10/2017, 6:19 PMredrield
08/10/2017, 8:43 PMmbstavola
08/11/2017, 6:24 PMbamboo
08/11/2017, 6:49 PMkotlin-dsl
relies on the Kotlin SamWithReceiver
infrastructure which is currently not completely supported by the IntelliJ plugin => https://youtrack.jetbrains.com/issue/KT-18062napperley
08/14/2017, 12:46 AMx80486
08/14/2017, 12:01 PMprotobuf
plug-in from Gradle. This is what I got so far:
configure<ProtobufConfigurator> { //protobuf
generatedFilesBaseDir = "$projectDir/build/generated"
//generateProtoTasks {
// all() * . plugins {
// grpc { option "enable_deprecated = false" }
// }
//}
generateProtoTasks({ ??? })
//plugins {
// grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpc_version}" }
//}
// protoc {
// artifact = "com.google.protobuf:protoc:3.3.0"
// }
}
bamboo
08/15/2017, 8:47 PMmaven { url = uri("https://...") }
mbstavola
08/21/2017, 11:05 PMclasses
kotlin
main
test
main
test
But I'd rather have the kotlin output alongside the JavaCzar
08/22/2017, 8:01 AMTask with path 'copyMainKotlinClasses' not found in project
. In build.gradle
I have:
// groovy code should have access to kotlin classes for things like blablabla to work
tasks.compileGroovy.dependsOn 'copyMainKotlinClasses'
// and also for tests
tasks.compileTestGroovy.dependsOn 'copyTestKotlinClasses'
Gradle version: 4.0.1mkobit
08/23/2017, 2:34 PMbamboo
08/23/2017, 7:09 PMkotlin-stdlib
shipped with Gradle being incompatible with more recent versions (assuming you’re running Gradle 4.1 which ships 1.1.3-2)fitzoh
08/23/2017, 11:49 PMval buildDockerImage by creating(Exec::class) {
commandLine("docker", "build", "-t", ${someExtension.somePropertyState},, dockerDirectory)
doLast{println("executed $commandLine")}
}
I’m trying to figure out how to lazily set an argument in this exec task from a propertystate, but it’s evaluating too early.
Am I missing something?bamboo
08/24/2017, 3:41 PMfitzoh
08/24/2017, 6:05 PMmkobit
08/29/2017, 1:45 PMlewis
08/31/2017, 10:19 AMlewis
08/31/2017, 10:21 AMitbeha
08/31/2017, 7:09 PMjlleitschuh
09/01/2017, 3:54 PMjlleitschuh
09/01/2017, 7:15 PMlewis
09/04/2017, 9:04 AMplugins {
kotlin("jvm")
// kotlin("allopen")
}
buildscript {
repositories {
// gradleScriptKotlin()
google()
mavenLocal()
jcenter()
mavenCentral()
maven { setUrl("<https://plugins.gradle.org/m2>") }
maven { setUrl("<https://repo.spring.io/snapshot>") }
maven { setUrl("<https://repo.spring.io/milestone>") }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M2")
// classpath(kotlin("gradle-plugin", "1.2-M2"))
// classpath(kotlin("allopen", "1.2-M2"))
}
}
apply {
// plugin("org.jetbrains.kotlin.plugin.allopen")
plugin("idea")
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
}
lewis
09/04/2017, 9:04 AMplugins {
kotlin("jvm")
// kotlin("allopen")
}
buildscript {
repositories {
// gradleScriptKotlin()
google()
mavenLocal()
jcenter()
mavenCentral()
maven { setUrl("<https://plugins.gradle.org/m2>") }
maven { setUrl("<https://repo.spring.io/snapshot>") }
maven { setUrl("<https://repo.spring.io/milestone>") }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M2")
// classpath(kotlin("gradle-plugin", "1.2-M2"))
// classpath(kotlin("allopen", "1.2-M2"))
}
}
apply {
// plugin("org.jetbrains.kotlin.plugin.allopen")
plugin("idea")
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
}
gildor
09/04/2017, 1:06 PM