package com.verificationgentleman.gradle.reflection

import org.gradle.api.initialization.*
import org.gradle.api.file.*
import org.gradle.api.tasks.*
import org.gradle.api.attributes.*
import org.gradle.api.*

class SvunitBuildPlugin implements Plugin<Settings> {
    void apply(Settings settings) {
        settings.with {
            rootProject.name = 'svunit'
            gradle.rootProject {
                group = 'com.verificationgentleman'
                version = '1.0-SNAPSHOT'

                task('dummyCopy', type: Copy) {
                    from buildFile
                    into buildDir
                }
                configurations.create('default')
                artifacts {
                    'default'(buildDir) {
                        builtBy(dummyCopy)
                    }
                }
            }
        }
    }
}

package com.verificationgentleman.gradle.reflection

import org.gradle.api.initialization.*
import org.gradle.api.file.*
import org.gradle.api.tasks.*
import org.gradle.api.attributes.*
import org.gradle.api.*

class SvunitBuildPlugin implements Plugin<Settings> {
    void apply(Settings settings) {
        settings.with {
            rootProject.name = 'svunit'
            gradle.rootProject {
                group = 'com.verificationgentleman'

                task('dummyCopy', type: Copy) {
                    from buildFile
                    into buildDir
                }
                configurations.create('default')
                artifacts {
                    'default'(buildDir) {
                        builtBy(dummyCopy)
                    }
                }
            }
        }
    }
}

Remove explicit value of 'version' property when injecting plugin
Remove explicit value of 'version' property when injecting plugin

This doesn't seem to be needed, since the version is handled via the Git repo
(either branch of tag).
