Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can anyone help in gradle [bootrun] issue. #172

Open
ObaidShahid opened this issue Nov 3, 2020 · 0 comments
Open

Can anyone help in gradle [bootrun] issue. #172

ObaidShahid opened this issue Nov 3, 2020 · 0 comments

Comments

@ObaidShahid
Copy link

ObaidShahid commented Nov 3, 2020

Getting dependency plugin error.

GRADLE FILE
_buildscript {
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.11.1"
classpath "org.grails.plugins:hibernate5:6.0.2"
}
}

plugins {
id 'net.saliman.cobertura' version '2.4.0'
}

version "0.1"
group "umm"

apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "war"
apply plugin: "org.grails.grails-web"
apply plugin: "org.grails.grails-gsp"
apply plugin: "asset-pipeline"
apply from: 'gradle/docker.gradle'

repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core"}
}

//Uncomment to run with jetty

//configurations {
// compile.exclude module: "tomcat-juli"
// compile.exclude module: "spring-boot-starter-tomcat"
// compile.exclude group: "com.google.guava", module: "guava-jdk5"
//}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"

//Comment next line to run with jetty
compile "org.springframework.boot:spring-boot-starter-tomcat"

//Uncomment to run with jetty

// provided("org.springframework.boot:spring-boot-starter-web:1.5.7.RELEASE")
// provided("org.springframework.boot:spring-boot-starter-jetty:1.5.7.RELEASE")

// runtime "org.grails.plugins:async:4.0.0"
compile 'org.grails.plugins:grails-executor:0.4'
compile "com.google.guava:guava:28.2-jre"

compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.1.Final"
compile "org.hibernate:hibernate-ehcache:5.1.1.Final"

compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5'
compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
compile group: 'jcifs', name: 'jcifs', version: '1.3.17'
compile 'commons-httpclient:commons-httpclient:3.1'
compile 'commons-fileupload:commons-fileupload:1.3.2'
compile group: 'commons-lang', name: 'commons-lang', version: '2.6'
compile group: 'org.json', name: 'json', version: '20180813'

// compile 'org.grails.plugins:spring-security-core:3.1.2'
compile 'org.grails.plugins:spring-security-rest:2.0.0.M2'
// compile 'org.grails.plugins:spring-security-ldap:3.0.2'
compile 'org.grails:grails-datastore-rest-client:5.0.0.RC2'
compile files('lib/idsclientlib-with-dependencies-11.6.1-20170531.173814-19.jar')
compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1'
assets 'com.bertramlabs.plugins:sass-asset-pipeline:2.13.1'
console "org.grails:grails-console"
profile "org.grails.profiles:web"
profile "org.grails.profiles:web-plugin"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.11.1"
runtime "mysql:mysql-connector-java:5.1.41"
compile 'org.grails.plugins:grails-melody-plugin:1.67.0'
// compile group: 'com.sun.jna', name: 'jna', version: '3.0.9'
compile 'com.sun.jna:jna:3.0.9'
compile 'org.grails.plugins:quartz:2.0.1'

runtime 'org.grails.plugins:grails-console:2.0.8'
runtime 'net.sourceforge.jtds:jtds:1.3.1'
compile 'org.grails.plugins:grails-executor:0.4'

testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
compile 'com.bettercloud:vault-java-driver:5.1.0'
compile  'org.springframework.boot:spring-boot-starter:1.1.4.RELEASE'
compile  'org.springframework:spring-jms:4.0.6.RELEASE'
compile  'org.apache.activemq:activemq-broker:5.10.0'

}

assets {
minifyJs = true
minifyCss = true
}
_

ERROR
`An exception occurred applying plugin request [id: 'net.saliman.cobertura', version: '2.4.0']

Failed to apply plugin [id 'net.saliman.cobertura']
Could not create an instance of type net.saliman.gradle.plugin.cobertura.CoberturaExtension.
> Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant