File tree Expand file tree Collapse file tree 8 files changed +20
-7
lines changed Expand file tree Collapse file tree 8 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -148,3 +148,5 @@ tasks.javadocJar.configure {
148
148
// Sources publishing configuration
149
149
// ===========================
150
150
tasks.sourcesJar { from(project.sourceSets.main.map { it.kotlin }) }
151
+
152
+ afterEvaluate { tasks.jar { manifest { attributes[" Automatic-Module-Name" ] = " org.mongodb.bson.kotlin" } } }
Original file line number Diff line number Diff line change @@ -152,3 +152,5 @@ tasks.javadocJar.configure {
152
152
// Sources publishing configuration
153
153
// ===========================
154
154
tasks.sourcesJar { from(project.sourceSets.main.map { it.kotlin }) }
155
+
156
+ afterEvaluate { tasks.jar { manifest { attributes[" Automatic-Module-Name" ] = " org.mongodb.bson.kotlinx" } } }
Original file line number Diff line number Diff line change @@ -58,7 +58,10 @@ test {
58
58
maxParallelForks = 1
59
59
}
60
60
61
- jar. manifest. attributes[' Import-Package' ] = [
62
- ' !scala.*' ,
63
- ' *'
64
- ]. join(' ,' )
61
+ afterEvaluate {
62
+ jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.bson.scala'
63
+ jar. manifest. attributes[' Import-Package' ] = [
64
+ ' !scala.*' ,
65
+ ' *'
66
+ ]. join(' ,' )
67
+ }
Original file line number Diff line number Diff line change 22
22
pomURL = ' https://bsonspec.org'
23
23
}
24
24
25
- jar. manifest. attributes[' Import-Package' ] = ' org.slf4j.*;resolution:=optional'
25
+ afterEvaluate {
26
+ jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.bson'
27
+ jar. manifest. attributes[' Import-Package' ] = ' org.slf4j.*;resolution:=optional'
28
+ }
Original file line number Diff line number Diff line change @@ -193,3 +193,5 @@ tasks.javadocJar.configure {
193
193
// Sources publishing configuration
194
194
// ===========================
195
195
tasks.sourcesJar { from(project.sourceSets.main.map { it.kotlin }) }
196
+
197
+ afterEvaluate { tasks.jar { manifest { attributes[" Automatic-Module-Name" ] = " org.mongodb.driver.kotlin.coroutine" } } }
Original file line number Diff line number Diff line change @@ -188,3 +188,5 @@ tasks.javadocJar.configure {
188
188
// Sources publishing configuration
189
189
// ===========================
190
190
tasks.sourcesJar { from(project.sourceSets.main.map { it.kotlin }) }
191
+
192
+ afterEvaluate { tasks.jar { manifest { attributes[" Automatic-Module-Name" ] = " org.mongodb.driver.kotlin.sync" } } }
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ ext {
117
117
}
118
118
119
119
afterEvaluate {
120
- jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.scala.mongo- scala-driver '
120
+ jar. manifest. attributes[' Automatic-Module-Name' ] = ' org.mongodb.driver. scala'
121
121
jar. manifest. attributes[' Import-Package' ] = [
122
122
' !scala.*' ,
123
123
' *'
Original file line number Diff line number Diff line change 60
60
configureJarManifestAttributes = { project ->
61
61
{ ->
62
62
manifest. attributes[' -exportcontents' ] = " *;-noimport:=true"
63
- manifest. attributes[' Automatic-Module-Name' ] = project. group + ' .' + project. archivesBaseName
64
63
manifest. attributes[' Build-Version' ] = project. gitVersion
65
64
manifest. attributes[' Bundle-Version' ] = project. version
66
65
manifest. attributes[' Bundle-Name' ] = project. archivesBaseName
You can’t perform that action at this time.
0 commit comments