vivin / gradle-semantic-build-versioning

Gradle plugin to generate version-numbers and tags using semantic versioning
MIT License
85 stars 32 forks source link

Not able to refresh the gradle project with this plugin #85

Closed adhithyasrinivasan closed 6 years ago

adhithyasrinivasan commented 6 years ago

Please find the gradle file.

buildscript { ext { springBootVersion = '1.4.1.RELEASE' } repositories { mavenCentral() jcenter()
maven { url "https://plugins.gradle.org/m2/" }} dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") classpath 'gradle.plugin.net.vivin:gradle-semantic-build-versioning:4.0.0'

}

}

group 'net.vivin' apply plugin: 'eclipse' apply plugin: 'spring-boot' apply plugin: 'application' apply plugin: 'net.vivin.gradle-semantic-build-versioning'

mainClassName = "sem.Semver"

jar { baseName = 'demo' //version = '0.0.1-SNAPSHOT' //version=versioning.info.full }

repositories { mavenCentral() }

configurations { providedRuntime } configurations.all{ exclude group:'javax.servlet', module :'servlet-api' }

task wrapper(type: Wrapper) { gradleVersion = '2.9' }

Getting the following error

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 0.501 secs

vivin commented 6 years ago

@adhithyasrinivasan It looks like you're applying this to build.gradle. This is a settings plugin and so should be defined and applied inside settings.gradle.