jlleitschuh
08/07/2017, 8:41 PM4.1 from 4.0.2. Mostly related to dependency configurations missing like testCompile.agomez
08/07/2017, 8:42 PMjlleitschuh
08/07/2017, 8:44 PMsubprojects {
apply {
plugin("java")
plugin("checkstyle")
plugin("pmd")
plugin("findbugs")
plugin("jacoco")
}
repositories {
mavenCentral()
}
dependencies {
testCompile(group = "junit", name = "junit", version = "+")
}
}
Shouldn't testCompile be correctly resolved?agomez
08/07/2017, 8:45 PMagomez
08/07/2017, 8:45 PMjlleitschuh
08/07/2017, 8:45 PMdependencies.jlleitschuh
08/07/2017, 8:46 PMjlleitschuh
08/07/2017, 8:47 PMjava plugin applied to it.agomez
08/07/2017, 8:48 PMbamboo
08/07/2017, 8:53 PM“testCompile”(...)bamboo
08/07/2017, 8:53 PMjlleitschuh
08/07/2017, 8:55 PM4.0.2 build file will be 100% incompatible with 4.1. Which, while I understand that GSK is in pre-release and subject to API changes, not the kind of massive build refactor that I want to have to go through.bamboo
08/07/2017, 8:55 PMbamboo
08/07/2017, 8:56 PMtestCompile accessor on buildSrcbamboo
08/07/2017, 8:56 PMjlleitschuh
08/07/2017, 9:01 PM"Configuration not found in project" error over not having the static method there.
I mean sure, I can add it, but I'm working with GSK on several different projects, I don't really want to have to do that for each buildSrc. I mean I will if I have to.bamboo
08/07/2017, 9:03 PMapi, implementation and any custom configuration created by plugins out there)jlleitschuh
08/07/2017, 9:03 PMbuildSrc you'd just put the extension in the root package so that all projects can access it?
So, the assumption that I'm working off of is that every project that is working with the dependency block will always have the testCompile and will almost always want to use it.bamboo
08/07/2017, 9:04 PMbuildSrc dependencybamboo
08/07/2017, 9:04 PMbamboo
08/07/2017, 9:05 PMjlleitschuh
08/07/2017, 9:13 PM"testCompile"(group = "junit", name = "junit", version = "+")
Instead of:
"testCompile"(create(group = "junit", name = "junit", version = "+"))bamboo
08/07/2017, 9:31 PMbamboo
08/07/2017, 9:31 PMmkobit
08/08/2017, 1:08 AMbamboo
08/08/2017, 12:28 PM