File tree 1 file changed +19
-13
lines changed
1 file changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,29 @@ apply plugin: 'osgi'
21
21
22
22
archivesBaseName = ' mongo-java-driver'
23
23
24
- task init () << {
25
- new File (" ${ project.rootDir} /${ archivesBaseName} /build/classes/main" ). mkdirs()
24
+ idea {
25
+ module {
26
+ sourceDirs = [] // Ignore in idea (prevents intellij crashing due to sources outside project dir)
27
+ }
28
+ }
29
+
30
+ // dependencies copied from driver-core
31
+ dependencies {
32
+ compile " io.netty:netty-buffer:$nettyVersion " , optional
33
+ compile " io.netty:netty-transport:$nettyVersion " , optional
34
+ compile " io.netty:netty-handler:$nettyVersion " , optional
26
35
}
27
36
28
- def getJar (name ) {
29
- project(name). jar. archivePath
37
+ // srcDirs copied as well, so everything is compiled twice
38
+ sourceSets {
39
+ main {
40
+ java {
41
+ srcDirs = [" $rootDir /driver/src/main" , " $rootDir /driver-core/src/main" , " $rootDir /bson/src/main" ]
42
+ }
43
+ }
30
44
}
31
45
46
+ // copied from driver-core
32
47
jar {
33
48
manifest {
34
49
instruction ' Import-Package' ,
44
59
' io.netty.*;resolution:=optional' ,
45
60
' org.slf4j;resolution:=optional'
46
61
}
47
- from(zipTree(getJar(" :driver-core" ))) {
48
- exclude(" META-INF" )
49
- }
50
- from(zipTree(getJar(" :driver" ))) {
51
- exclude(" META-INF" )
52
- }
53
- from(zipTree(getJar(" :bson" ))) {
54
- exclude(" META-INF" )
55
62
}
56
- }. dependsOn(" init" )
57
63
58
64
modifyPom {
59
65
project {
You can’t perform that action at this time.
0 commit comments