Permalink
Browse files

use compileOnly instead of provided

  • Loading branch information...
1 parent 10d4887 commit e8ee420c96a0d0f283fd9ff646938d0be6d24d39 @graemerocher graemerocher committed Nov 17, 2016
Showing with 9 additions and 11 deletions.
  1. +9 −11 grails-core/build.gradle
@@ -16,25 +16,17 @@ dependencies {
compile("org.springframework:spring-context:${springVersion}") {
exclude group: 'commons-logging', module:'commons-logging'
}
- testCompile("org.springframework:spring-jdbc:${springVersion}") {
- exclude group: 'commons-logging', module:'commons-logging'
- }
- testRuntime 'com.h2database:h2:1.3.176'
- provided("org.springframework:spring-test:${springVersion}") {
+ compileOnly("org.springframework:spring-test:${springVersion}") {
exclude group: 'commons-logging', module:'commons-logging'
}
-
- // Used by Spring AOP
- provided 'aopalliance:aopalliance:1.0',
- "org.aspectj:aspectjrt:$aspectjVersion"
+ compileOnly("org.springframework:springloaded:$springLoadedVersion")
+ compileOnly("org.codehaus.groovy:groovy-templates:$groovyVersion")
runtime ( 'xalan:serializer:2.7.2' ) {
exclude group: 'xml-apis', module:'xml-apis'
}
- provided ("org.springframework:springloaded:$springLoadedVersion")
-
compile project(":grails-bootstrap"), {
exclude group:"org.fusesource.jansi", module:"jansi"
exclude group:"jline", module:"jline"
@@ -57,6 +49,12 @@ dependencies {
exclude group:'org.grails', module:'grails-bootstrap'
}
+ testCompile("org.springframework:spring-jdbc:${springVersion}") {
+ exclude group: 'commons-logging', module:'commons-logging'
+ }
+
+ testRuntime 'com.h2database:h2:1.3.176'
+
// These dependencies are not required, but due to a Groovy compiler bug they are loaded by Groovy and hence
// have to be on the path for compilation even though they shouldn't be
provided "org.apache.ant:ant:${antVersion}"

0 comments on commit e8ee420

Please sign in to comment.