@@ -29,6 +29,7 @@ subprojects { subproject ->
29
29
version project. projectVersion
30
30
31
31
ext {
32
+ includePublication = true
32
33
userOrg = " grails"
33
34
isGrailsPlugin = false
34
35
isConfiguration = subproject. name. startsWith(' configurations' )
@@ -52,11 +53,12 @@ subprojects { subproject ->
52
53
// apply plugin:"org.grails.grails-web"
53
54
}
54
55
else {
55
- apply from :" ${ commonBuild} /common-project-nogroovydoc.gradle"
56
+ apply plugin :" groovy"
57
+ apply plugin :" java"
56
58
sourceCompatibility = ' 1.8'
57
59
targetCompatibility = ' 1.8'
58
60
if (! subproject. name. contains(' test-suite' )) {
59
- apply from :" ${ commonBuild } /common- publishing.gradle"
61
+ apply from :" ${ rootProject.rootDir } /gradle/ publishing.gradle"
60
62
}
61
63
}
62
64
@@ -67,36 +69,35 @@ subprojects { subproject ->
67
69
}
68
70
}
69
71
72
+ configurations {
73
+ documentation
74
+ all {
75
+ resolutionStrategy. eachDependency { DependencyResolveDetails details ->
76
+ String group = details. requested. group
77
+ if (group == ' org.codehaus.groovy' ) {
78
+ details. useVersion(groovyVersion)
79
+ }
80
+ }
81
+ }
82
+ }
83
+
70
84
dependencies {
85
+ compile " org.slf4j:slf4j-api:$slf4jVersion "
86
+ testCompile " org.codehaus.groovy:groovy:$groovyVersion "
87
+ testCompile(" org.spockframework:spock-core:${ spockVersion} " ) {
88
+ exclude module :' groovy-all'
89
+ }
90
+ testCompile " cglib:cglib-nodep:2.2.2"
91
+ testCompile " org.objenesis:objenesis:1.4"
92
+
71
93
testRuntime " ch.qos.logback:logback-classic:1.2.3"
72
94
compileOnly ' org.ow2.asm:asm:5.2'
73
95
compileOnly ' org.ow2.asm:asm-commons:5.2'
74
96
75
97
testCompile " org.ow2.asm:asm:$asmVersion "
76
98
testCompile " org.ow2.asm:asm-commons:$asmVersion "
77
-
78
99
}
79
100
}
80
101
81
102
apply from :" ${ commonBuild} /common-docs.gradle"
82
103
83
- // IDEA 2017.2 made a breaking change with IDE build output vs gradle build output
84
- // [see https://youtrack.jetbrains.com/issue/IDEA-175172]
85
- // the problem here is the gradle build uses <module-dir>/build/classes/main
86
- // while IDEA uses <module-dir>/out/production/..
87
- // As a result, compiling ast or java-inject module and using the IDEA test runner fails because the
88
- // generated bean classes for injection are in <module-dir>/build, not <module-dir>/out
89
- allprojects {
90
- apply plugin : ' idea'
91
- idea {
92
- module {
93
- outputDir file(' build/classes/main' )
94
- testOutputDir file(' build/classes/test' )
95
- }
96
- }
97
- if (project. convention. findPlugin(JavaPluginConvention )) {
98
- // Change the output directory for the main and test source sets back to the old path
99
- sourceSets. main. output. classesDir = new File (buildDir, " classes/main" )
100
- sourceSets. test. output. classesDir = new File (buildDir, " classes/test" )
101
- }
102
- }
0 commit comments