craigburke/client-dependencies-gradle

Build failed, plugin not found

Closed this issue · 1 comments

When I run gradle build, I get the following error:

FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\vlto\MyProjects\KursNemackog\build.gradle' line: 3
* What went wrong:
A problem occurred evaluating root project 'HartwegerCenter'.
> Plugin with id 'com.craigburke.client-dependencies' not found.

My build.gradle file:

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.craigburke.client-dependencies'
group = 'com.hartweger'
version = '0.0.1-SNAPSHOT'

description = "Hartweger Center"

sourceCompatibility = 1.8
targetCompatibility = 1.8

tasks.withType(JavaCompile) {
	options.encoding = 'UTF-8'
}

repositories {
    maven { url "http://repo.maven.apache.org/maven2" }
    jcenter()
    mavenCentral()
}

dependencies {
    compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version:'1.5.9.RELEASE'
    compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-rest', version:'1.5.9.RELEASE'
    compile group: 'org.springframework.boot', name: 'spring-boot-starter-jersey', version:'1.5.9.RELEASE'
    compile group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version:'1.5.9.RELEASE'
    compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.9.RELEASE'
    compile group: 'mysql', name: 'mysql-connector-java', version:'5.1.6'
    compile group: 'com.cloudinary', name: 'cloudinary-taglib', version:'1.17.0'
    compile group: 'com.cloudinary', name: 'cloudinary-http44', version:'1.17.0'
    compile group: 'commons-fileupload', name: 'commons-fileupload', version:'1.3'
    compile group: 'commons-io', name: 'commons-io', version:'2.4'
    classpath 'com.craigburke.gradle:client-dependencies:1.4.1'
    testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.0.2'
    testCompile(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'1.5.9.RELEASE') {
        exclude(module: 'commons-logging')
    }
}

You need to add this at the top of the build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.craigburke.gradle:client-dependencies:1.4.1'
    }
}