bamboo
05/30/2017, 5:26 PMcreate(...)
call)bamboo
05/30/2017, 5:27 PMProject.getDependencies()
insteadbamboo
05/30/2017, 5:27 PMbamboo
05/30/2017, 5:27 PMtarget.dependencies.add(...)
versus target.dependencies { add(...) }
bamboo
05/30/2017, 5:28 PMKotlinDependencyHandler
, the former doesn'tjlleitschuh
05/30/2017, 5:31 PMtarget.dependencies.add(ktLintConfig.name,
mapOf("group" to "com.github.shyiko", "name" to "ktlint", "version" to extension.version))
jlleitschuh
05/30/2017, 5:37 PMthe
jlleitschuh
05/30/2017, 6:15 PMturansky
05/30/2017, 11:30 PMturansky
05/31/2017, 12:46 AMturansky
05/31/2017, 1:51 AMuser
05/31/2017, 9:04 AMnekoinemo
05/31/2017, 9:17 AMpublishing { ... }
I use 0.9.0bamboo
05/31/2017, 1:18 PMpublishing
or on within the publications
block that you get that error?nekoinemo
05/31/2017, 1:25 PMpublishing
itselfbamboo
05/31/2017, 1:55 PMbamboo
05/31/2017, 1:55 PMmaven-publish
applied in the plugins
block?nekoinemo
05/31/2017, 2:04 PMnekoinemo
05/31/2017, 2:19 PMbamboo
05/31/2017, 2:30 PMmaven-publish
within a plugins
block (https://gist.github.com/NekoiNemo/eb53fff230bf9ed6b943fa434aa66fe3#file-gsk-maven-publishing-L22), that means accessors can’t be generatedbamboo
05/31/2017, 2:30 PMplugins {
`maven-publish`
}
lam
05/31/2017, 2:31 PMclass GreetingTask : DefaultTask() {
@TaskAction
fun doHelloWorld() = println("Hello World!")
}
class GreetingPlugin : Plugin<Project> {
val TASK_NAME = "greeting"
override fun apply(project: Project) {
project.tasks.create(TASK_NAME, GreetingTask::class.java)
}
}
the problem is, in the command line I type: gradlew greeting
and I got the following error
FAILURE: Build failed with an exception.
* What went wrong:
Task 'greeting' not found in root project 'cx-auth'.
can someone help me?nekoinemo
05/31/2017, 2:35 PMapply { plugin("maven-publish") }
?bamboo
05/31/2017, 2:36 PMbamboo
05/31/2017, 2:37 PMbamboo
05/31/2017, 2:39 PMplugins
blockbamboo
05/31/2017, 2:41 PMlam
05/31/2017, 2:51 PMnekoinemo
05/31/2017, 2:52 PMapply {
plugin("idea")
plugin("java")
plugin("kotlin")
}
plugins {
`maven-publish`
}
Though it didn't seem to helplam
05/31/2017, 4:00 PM