@@ -25,7 +25,6 @@ configure(subprojects.findAll {it.name != 'util'}) {
2525 apply plugin : ' checkstyle'
2626 apply plugin : ' pmd'
2727 apply plugin : ' findbugs'
28- apply plugin : ' osgi'
2928 apply plugin : ' jacoco'
3029
3130 evaluationDependsOn(' :util' )
@@ -117,22 +116,11 @@ configure(subprojects.findAll {it.name != 'util'}) {
117116
118117 tasks. matching { (it instanceof FindBugs ) || (it instanceof Pmd ) }. all {
119118 reports {
120- xml. enabled = project. hasProperty(' xmlReportsEnabled' )
121- html. enabled = ! project . hasProperty( ' xmlReportsEnabled ' )
119+ xml. enabled = project. hasProperty(' xmlReportsEnabled' ) && project . property( ' xmlReportsEnabled ' ) . toBoolean()
120+ html. enabled = ! xml . enabled
122121 }
123122 }
124123
125- /* Artifacts */
126- task sourcesJar(type : Jar ) {
127- classifier = ' sources'
128- from sourceSets. main. allSource
129- }
130-
131- task javadocJar(type : Jar , dependsOn : javadoc) {
132- classifier = ' javadoc'
133- from javadoc
134- }
135-
136124 javadoc {
137125 dependsOn project(' :util' ). compileJava // We need taglets to be compiled
138126 options. author = true
@@ -142,27 +130,13 @@ configure(subprojects.findAll {it.name != 'util'}) {
142130 options. taglets ' ManualTaglet'
143131 }
144132
145- artifacts {
146- archives sourcesJar
147- archives javadocJar
148- }
149133}
150134
151135// ////////////////////////////////////////
152136// Project specific behavior //
153137// ////////////////////////////////////////
154138
155- project(' :bson' ) {
156-
157- jar {
158- manifest {
159- attributes(
160- ' Bundle-License' : ' http://www.apache.org/licenses/LICENSE-2.0.txt' ,
161- ' Bundle-Name' : ' BSON'
162- )
163- }
164- }
165- }
139+ project(' :bson' ) { }
166140
167141project(' :driver' ) {
168142
@@ -180,19 +154,6 @@ project(':driver') {
180154 acceptanceCompile sourceSets. functional. runtimeClasspath
181155 }
182156
183- jar {
184- from project(' :bson' ). sourceSets. main. output
185- manifest {
186- attributes(
187- ' Bundle-License' : ' http://www.apache.org/licenses/LICENSE-2.0.txt' ,
188- ' Bundle-Name' : ' MongoDB Java Driver' ,
189- ' Bundle-SymbolicName' : ' org.mongodb.driver' ,
190- ' Import-Package' : ' javax.management, javax.net, javax.net.ssl' ,
191-
192- )
193- }
194- }
195-
196157 task functionalTest(type : Test , dependsOn : test) {
197158 testClassesDir = sourceSets. functional. output. classesDir
198159 classpath = sourceSets. functional. runtimeClasspath
@@ -202,14 +163,6 @@ project(':driver') {
202163 testClassesDir = sourceSets. acceptance. output. classesDir
203164 classpath = sourceSets. acceptance. runtimeClasspath
204165 }
205-
206- sourcesJar {
207- from project(' :bson' ). sourceSets. main. allSource
208- }
209-
210- javadoc {
211- source project(' :bson' ). sourceSets. main. allJava
212- }
213166}
214167
215168project(' :driver-compat' ) {
@@ -229,29 +182,6 @@ project(':driver-compat') {
229182 failOnSrcError = false
230183 }
231184
232- jar {
233- from project(' :bson' ). sourceSets. main. output
234- from project(' :driver' ). sourceSets. main. output
235- manifest {
236- attributes(
237- ' Bundle-License' : ' http://www.apache.org/licenses/LICENSE-2.0.txt' ,
238- ' Bundle-Name' : ' MongoDB Java Driver' ,
239- ' Bundle-SymbolicName' : ' org.mongodb.mongo-java-driver' ,
240- ' Import-Package' : ' javax.management, javax.net, javax.net.ssl'
241- )
242- }
243- }
244-
245- sourcesJar {
246- from project(' :bson' ). sourceSets. main. allSource
247- from project(' :driver' ). sourceSets. main. allSource
248- }
249-
250- javadoc {
251- source project(' :bson' ). sourceSets. main. allJava
252- source project(' :driver' ). sourceSets. main. allJava
253- }
254-
255185 checkstyle {
256186 configFile = new File (" $configDir /checkstyle-lite.xml" )
257187 }
@@ -275,5 +205,6 @@ gradle.buildFinished { BuildResult result ->
275205 gradle. rootProject. logger. error(" \n * Warning:\n JDK ${ JavaVersion.VERSION_1_7} is minimal requirement for building the driver. You have ${ JavaVersion.current()} ." )
276206}
277207
278- apply from : ' gradle/ide-configuration.gradle'
279- apply from : ' gradle/maven-configuration.gradle'
208+ apply from : ' gradle/ide-settings.gradle'
209+ apply from : ' gradle/maven-deployment.gradle'
210+ apply from : ' gradle/osgi-compatibility.gradle'
0 commit comments