-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix POM contents for proper Maven publication
- Loading branch information
Showing
7 changed files
with
134 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,25 +39,30 @@ publishing { | |
publications { | ||
rhinoall(MavenPublication) { | ||
from components.java | ||
artifacts = [jar] | ||
pom { | ||
description = "Rhino JavaScript all-in-one JAR, not for use with modular Java projects" | ||
url = "https://mozilla.github.io/rhino/" | ||
licenses { | ||
license { | ||
name = "Mozilla Public License, Version 2.0" | ||
url = "http://www.mozilla.org/MPL/2.0/index.txt" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:[email protected]:mozilla/rhino.git" | ||
developerConnection = "scm:git:[email protected]:mozilla/rhino.git" | ||
url = "[email protected]:mozilla/rhino.git" | ||
} | ||
organization { | ||
name = "The Mozilla Foundation" | ||
url = "http://www.mozilla.org" | ||
} | ||
artifacts = [jar, sourceJar, javadocJar] | ||
pom.withXml { | ||
def root = asNode() | ||
|
||
root.appendNode('description', "Rhino JavaScript all-in-one JAR, not for use with modular Java projects") | ||
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") | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,29 @@ publishing { | |
rhinoengine(MavenPublication) { | ||
from components.java | ||
artifacts = [jar, sourceJar, javadocJar] | ||
pom { | ||
description = "Rhino ScriptEngine implementation" | ||
url = "https://mozilla.github.io/rhino/" | ||
licenses { | ||
license { | ||
name = "Mozilla Public License, Version 2.0" | ||
url = "http://www.mozilla.org/MPL/2.0/index.txt" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:[email protected]:mozilla/rhino.git" | ||
developerConnection = "scm:git:[email protected]:mozilla/rhino.git" | ||
url = "[email protected]:mozilla/rhino.git" | ||
} | ||
organization { | ||
name = "The Mozilla Foundation" | ||
url = "http://www.mozilla.org" | ||
} | ||
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") | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,29 @@ publishing { | |
rhinotools(MavenPublication) { | ||
from components.java | ||
artifacts = [jar, sourceJar, javadocJar] | ||
pom { | ||
description = "Rhino tools, including shell and debugger" | ||
url = "https://mozilla.github.io/rhino/" | ||
licenses { | ||
license { | ||
name = "Mozilla Public License, Version 2.0" | ||
url = "http://www.mozilla.org/MPL/2.0/index.txt" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:[email protected]:mozilla/rhino.git" | ||
developerConnection = "scm:git:[email protected]:mozilla/rhino.git" | ||
url = "[email protected]:mozilla/rhino.git" | ||
} | ||
organization { | ||
name = "The Mozilla Foundation" | ||
url = "http://www.mozilla.org" | ||
} | ||
pom.withXml { | ||
def root = asNode() | ||
|
||
root.appendNode('description', "Rhino tools, including shell and debugger") | ||
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") | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,29 @@ publishing { | |
rhinoxml(MavenPublication) { | ||
from components.java | ||
artifacts = [jar, sourceJar, javadocJar] | ||
pom { | ||
description = "Rhino XML support" | ||
url = "https://mozilla.github.io/rhino/" | ||
licenses { | ||
license { | ||
name = "Mozilla Public License, Version 2.0" | ||
url = "http://www.mozilla.org/MPL/2.0/index.txt" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:[email protected]:mozilla/rhino.git" | ||
developerConnection = "scm:git:[email protected]:mozilla/rhino.git" | ||
url = "[email protected]:mozilla/rhino.git" | ||
} | ||
organization { | ||
name = "The Mozilla Foundation" | ||
url = "http://www.mozilla.org" | ||
} | ||
pom.withXml { | ||
def root = asNode() | ||
|
||
root.appendNode('description', "Rhino XML support") | ||
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") | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,33 @@ publishing { | |
rhino(MavenPublication) { | ||
from components.java | ||
artifacts = [jar, sourceJar, javadocJar] | ||
pom { | ||
description = "Rhino JavaScript runtime jar, excludes XML, tools ScriptEngine wrapper" | ||
url = "https://mozilla.github.io/rhino/" | ||
licenses { | ||
license { | ||
name = "Mozilla Public License, Version 2.0" | ||
url = "http://www.mozilla.org/MPL/2.0/index.txt" | ||
} | ||
} | ||
scm { | ||
connection = "scm:git:[email protected]:mozilla/rhino.git" | ||
developerConnection = "scm:git:[email protected]:mozilla/rhino.git" | ||
url = "[email protected]:mozilla/rhino.git" | ||
} | ||
organization { | ||
name = "The Mozilla Foundation" | ||
url = "http://www.mozilla.org" | ||
} | ||
// We need to use the "withXml" method here, rather than the | ||
// "pom" element in Gradle, because we can't add the "parent" | ||
// attribute otherwise, and without it Maven Central verification | ||
// will fail. | ||
pom.withXml { | ||
def root = asNode() | ||
|
||
root.appendNode('description', "Rhino JavaScript runtime jar, excludes XML, tools, and ScriptEngine wrapper") | ||
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") | ||
} | ||
} | ||
} | ||
|