File tree 1 file changed +26
-3
lines changed
1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import groovy.xml.slurpersupport.NodeChild
4
4
5
5
plugins {
6
6
`java- platform`
7
+ `maven- publish`
7
8
}
8
9
9
10
tasks {
@@ -12,9 +13,13 @@ tasks {
12
13
}
13
14
}
14
15
16
+ operator fun GPathResult.div (child : String ) = children().find { (it!! as NodeChild ).name() == child } as GPathResult
17
+
18
+ val effXml = XmlSlurper ().parse(" platform/eff.xml" )
19
+
15
20
dependencies {
16
- operator fun GPathResult. div ( child : String ) = children().find { (it !! as NodeChild ).name() == child } as GPathResult
17
- val deps = XmlSlurper ().parse( " platform/eff.xml " ) / " dependencyManagement" / " dependencies"
21
+
22
+ val deps = effXml / " dependencyManagement" / " dependencies"
18
23
constraints {
19
24
deps.children().forEach {
20
25
val node = it!! as NodeChild
@@ -25,4 +30,22 @@ dependencies {
25
30
// println("$g:$a:$v")
26
31
}
27
32
}
28
- }
33
+ }
34
+
35
+
36
+
37
+ publishing {
38
+ publications {
39
+ repositories {
40
+ maven(" to fill" )
41
+ }
42
+ create<MavenPublication >(" sciJavaPlatform" ) {
43
+ groupId = " org.scijava"
44
+ artifactId = " pom-scijava"
45
+ version = (effXml / " version" ).toString()
46
+
47
+ from(components[" javaPlatform" ])
48
+ }
49
+ }
50
+ }
51
+
You can’t perform that action at this time.
0 commit comments