forked from mozilla/rhino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (33 loc) · 1.42 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
plugins {
id 'rhino.library-conventions'
}
dependencies {
implementation project(':rhino')
}
publishing {
publications {
rhinoengine(MavenPublication) {
from components.java
artifacts = [jar, sourceJar, javadocJar]
pom.withXml {
def root = asNode()
root.appendNode('description', "Rhino ScriptEngine implementation")
root.appendNode("url", "https://mozilla.github.io/rhino/")
def p = root.appendNode("parent")
p.appendNode("groupId", "org.sonatype.oss")
p.appendNode("artifactId", "oss-parent")
p.appendNode("version", "7")
def l = root.appendNode("licenses").appendNode("license")
l.appendNode("name", "Mozilla Public License, Version 2.0")
l.appendNode("url", "http://www.mozilla.org/MPL/2.0/index.txt")
def scm = root.appendNode("scm")
scm.appendNode("connection", "scm:git:[email protected]:mozilla/rhino.git")
scm.appendNode("developerConnection", "scm:git:[email protected]:mozilla/rhino.git")
scm.appendNode("url", "[email protected]:mozilla/rhino.git")
def o = root.appendNode("organization")
o.appendNode("name", "The Mozilla Foundation")
o.appendNode("url", "http://www.mozilla.org")
}
}
}
}