dagguh
06/23/2017, 7:25 PMhastebrot
06/26/2017, 2:17 PMUnsupported declaration type: VALUE_PARAMETER File name: build.gradle.kts Physical: true Injected: false
val SourceSet.kotlin: SourceDirectorySet
get() = (this as HasConvention).convention.getPlugin<KotlinSourceSet>().kotlin
var SourceDirectorySet.sourceDirs: Iterable<File>
get() = srcDirs
set(<caret>value) { setSrcDirs(value) }
Using: distributionUrl=https\://repo.gradle.org/gradle/dist-snapshots/gradle-kotlin-dsl-4.1-20170624053347+0000-all.zip
madhead
06/27/2017, 8:10 AMjar
) then this:
(tasks["jar"] as Jar).apply {
(manifest as OsgiManifest).apply {
name = "..."
symbolicName = "..."
vendor = "..."
instruction(
"Import-Package", "a.b.c"
)
}
}
?napperley
06/28/2017, 8:05 AMjar {
from configurations.compile.collect { zipTree it }
manifest.attributes 'Main-Class': mainClassName
}
jlleitschuh
06/29/2017, 5:18 PMfun ProtobufConfigurator.generateProtoTasks(configuration : ProtobufConfigurator.GenerateProtoTaskCollection.() -> Unit = {} ) = delegateClosureOf(configuration)
aurimas
06/29/2017, 10:45 PMkarelpeeters
07/02/2017, 2:28 PMgildor
07/03/2017, 1:33 AMtasks {
"war"(War::class) {
archiveName = "myapp.war"
}
}
or
val war: War by tasks // Now your task in variable [war]
war.archiveName = "myapp.war"
liamd
07/03/2017, 6:21 PMmainClassName
@gildorkarelpeeters
07/03/2017, 7:41 PMdumptruckman
07/04/2017, 5:22 PMdumptruckman
07/04/2017, 7:50 PMdouglarek
07/05/2017, 10:13 AMkotlin-allopen
itnoles
07/05/2017, 7:02 PMbacon
07/06/2017, 4:51 AMdumptruckman
07/06/2017, 5:07 PMorg/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments : Unsupported major.minor version 52.0
when i try to run my gradle script. I'm really not sure why it's not finding Java 8gildor
07/11/2017, 6:47 AMgildor
07/11/2017, 2:49 PMkarelpeeters
07/11/2017, 4:33 PMsourceSets { main.kotlin.srcDirs += 'src/main/myKotlin' }
according to https://kotlinlang.org/docs/reference/using-gradle.html#targeting-the-jvmdumptruckman
07/11/2017, 5:50 PMsdeleuze
07/13/2017, 12:48 PMgaetan
07/14/2017, 2:54 PMgalex
07/17/2017, 11:09 AMgaetan
07/18/2017, 4:33 PMgaetan
07/19/2017, 4:55 PMgaetan
07/19/2017, 6:14 PMflstaats
07/19/2017, 7:58 PMjackmiras
07/21/2017, 3:52 PMx80486
07/21/2017, 10:02 PMgradle-kotlin-dsl-4.1-20170707032407+0000-all
. I imported the plug-in correctly: id("com.github.johnrengelman.shadow") version "2.0.1"
, but when I try to write the task in order to assemble the JAR file, it's not doing anything. This is the ShadowJar
task:
tasks.withType<ShadowJar> {
baseName = project.name
classifier = "shadow" // fat, shadow
manifest.attributes.apply {
put("Application-Name", project.name)
put("Build-Date", ZonedDateTime.now(ZoneOffset.UTC).format(DateTimeFormatter.ISO_DATE_TIME))
//put("Build-Number", )
put("Created-By", System.getProperty("user.name"))
put("Gradle-Version", gradle.gradleVersion)
put("Implementation-Version", "${project.version}")
put("JDK-Version", System.getProperty("java.version"))
//put("Main-Class", "io.shido.MainVerticle")
put("Main-Verticle", "io.shido.MainVerticle")
}
mergeServiceFiles({ include("META-INF/services/io.vertx.core.spi.VerticleFactory") }) // TODO: This doesn't work :(
version = "${project.version}"
}
Leon Linhart
07/24/2017, 7:22 PMLeon Linhart
07/24/2017, 7:22 PMgildor
07/25/2017, 12:14 AMLeon Linhart
07/25/2017, 9:06 AMgildor
07/25/2017, 9:11 AMtask<Javadoc>("myJavadocs") {
source = java.sourceSets["main"].allJava
}
But I’m not familiar with advanced javadoc configsLeon Linhart
07/25/2017, 10:21 AMapply plugin 'java'
def exportedProjects= [
":top-lib",
":sub:sub-api",
":sub:sub-lib1",
":sub:sub-lib2",
":sub:sub-lib3"
]
task alljavadoc(type: Javadoc) {
source exportedProjects.collect { project(it).sourceSets.main.allJava }
classpath = files(exportedProjects.collect { project(it).sourceSets.main.compileClasspath })
destinationDir = file("${buildDir}/docs/javadoc")
}
This is one of the snippets that come up when googling the issue. I do get what it does and how it does it but I'm having trouble porting the exportedProjects.collect { ... }
bits to Kotlin.gildor
07/25/2017, 3:51 PM.map{}