build-test-data plugin Does anyone know the maint...
# questions
t
build-test-data plugin Does anyone know the maintainer of the build-test-data plugin? The 6.0.0-M1 version released in january fails with the Grails 7.0.0-M4 release. I have opened a pull request https://github.com/longwa/build-test-data/pull/123
The error
Copy code
Caused by: org.spockframework.runtime.extension.ExtensionException: Duplicated Extension declaration for [org.grails.testing.gorm.spock.GormTestingSupportExtension]
Source 1: jar:file:~/.gradle/caches/modules-2/files-2.1/org.grails/grails-gorm-testing-support/9.0.0-M3/d6ff8c5a8cb64c1f0d515dbfd939063ce1d9accd/grails-gorm-testing-support-9.0.0-M3.jar!/META-INF/services/org.spockframework.runtime.extension.IGlobalExtension
Source 2: jar:file:/.gradle/caches/modules-2/files-2.1/org.apache.grails/grails-testing-support-datamapping/7.0.0-M4/3cb11dcbd3b83c7c44fbec7e4e0f74326d152976/grails-testing-support-datamapping-7.0.0-M4.jar!/META-INF/services/org.spockframework.runtime.extension.IGlobalExtension
This is most likely caused by having two different version of a library on the classpath.
Temporary workaround
Copy code
// build.gradle
allprojects {  
    configurations.all {  
        resolutionStrategy {  
            dependencySubstitution {  
                // FIX io.github.longwa:build-test-data until new release                substitute module("org.grails:grails-gorm-testing-support") using module("org.apache.grails:grails-testing-support-datamapping:$grailsVersion")  
                substitute module("org.grails:grails-databinding") using module("org.apache.grails.databinding:grails-databinding-core:$grailsVersion")
            }  
        }
    }
}
j
@jdaugherty should be able to help you
👍 1
j
i intend to do an update on it this weekend
t
Nice, I have a fix so it is not blocking me
j
FYI: https://github.com/longwa/build-test-data/pull/124 Once it's tests pass, I'll publish it as a 6.0.0-M2. I did something different with this plugin + the upcoming asset pipeline. I'm removing dependencies that are always present in a grails application from being exported. This has the added benefit that gradle doesn't have to resolve conflicts going forward (which means I can also depend on snapshot to minimize changes to this plugin in the future)
👍 1
https://s01.oss.sonatype.org/content/repositories/releases/io/github/longwa/build-test-data/6.0.0-M2/ - it's released and will be on central in the next 30min or so typically
t
Nice, I will try it later today
👍 1
j
I forgot to update the documentation root, but it's here: http://longwa.github.io/build-test-data/6.0.0-M2/
I updated http://longwa.github.io/build-test-data/6.0.0-M2/#grails-7-0-or-later to make sure people understand the impacts of not exporting the grails dependencies.