-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ff68ce
commit c56f254
Showing
1 changed file
with
56 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ buildscript { | |
plugins { | ||
id "idea" | ||
id "java" | ||
id "maven-publish" | ||
id "com.palantir.git-version" version "3.1.0" | ||
id "io.spring.dependency-management" version "1.0.9.RELEASE" | ||
id "io.franzbecker.gradle-lombok" version "4.0.0" | ||
|
@@ -286,64 +285,59 @@ task javadocJar(type: Jar, dependsOn: javadoc) { | |
from javadoc.destinationDir | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifacts { | ||
artifact sourceJar | ||
artifact javadocJar | ||
artifact fatJar | ||
} | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode("name", pluginAppName) | ||
root.appendNode("description", "XNAT plugin for launching and managing containers.") | ||
root.appendNode("url", "https://github.com/nrgxnat/container-service") | ||
root.appendNode("inceptionYear", "2016") | ||
|
||
def scm = root.appendNode("scm") | ||
scm.appendNode("url", "https://github.com/nrgxnat/container-service") | ||
scm.appendNode("connection", "scm:https://github.com/nrgxnat/container-service.git") | ||
scm.appendNode("developerConnection", "scm:[email protected]:nrgxnat/container-service") | ||
|
||
def license = root.appendNode("licenses").appendNode("license") | ||
license.appendNode("name", "Simplified BSD 2-Clause License") | ||
license.appendNode("url", "https://xnat.org/about/license.php") | ||
license.appendNode("distribution", "repo") | ||
|
||
def developers = root.appendNode("developers") | ||
def flavin = developers.appendNode("developer") | ||
flavin.appendNode("id", "jflavin") | ||
flavin.appendNode("name", "John Flavin") | ||
flavin.appendNode("email", "[email protected]") | ||
|
||
def kelsey = developers.appendNode("developer") | ||
kelsey.appendNode("id", "kelseym") | ||
kelsey.appendNode("name", "Matt Kelsey") | ||
kelsey.appendNode("email", "[email protected]") | ||
|
||
def will = developers.appendNode("developer") | ||
will.appendNode("id", "hortonw") | ||
will.appendNode("name", "Will Horton") | ||
will.appendNode("email", "[email protected]") | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
if (project.version.endsWith("-SNAPSHOT")) { | ||
url "https://nrgxnat.jfrog.io/nrgxnat/libs-snapshot-local" | ||
} else { | ||
url "https://nrgxnat.jfrog.io/nrgxnat/libs-release-local" | ||
} | ||
// The value for name must match <id> in ~/.m2/settings.xml | ||
name = "XNAT_Artifactory" | ||
} | ||
} | ||
} | ||
|
||
def propertyWithDefault(def String property, def Object value) { | ||
hasProperty(property) ? getProperty(property) : value | ||
} | ||
|
||
//publishing { | ||
// publications { | ||
// mavenJava(MavenPublication) { | ||
// artifacts { | ||
// artifact sourceJar | ||
// artifact javadocJar | ||
// artifact fatJar | ||
// } | ||
// | ||
// pom.withXml { | ||
// def root = asNode() | ||
// root.appendNode("name", pluginAppName) | ||
// root.appendNode("description", "XNAT plugin for launching and managing containers.") | ||
// root.appendNode("url", "https://github.com/nrgxnat/container-service") | ||
// root.appendNode("inceptionYear", "2016") | ||
// | ||
// def scm = root.appendNode("scm") | ||
// scm.appendNode("url", "https://github.com/nrgxnat/container-service") | ||
// scm.appendNode("connection", "scm:https://github.com/nrgxnat/container-service.git") | ||
// scm.appendNode("developerConnection", "scm:[email protected]:nrgxnat/container-service") | ||
// | ||
// def license = root.appendNode("licenses").appendNode("license") | ||
// license.appendNode("name", "Simplified BSD 2-Clause License") | ||
// license.appendNode("url", "https://xnat.org/about/license.php") | ||
// license.appendNode("distribution", "repo") | ||
// | ||
// def developers = root.appendNode("developers") | ||
// def flavin = developers.appendNode("developer") | ||
// flavin.appendNode("id", "jflavin") | ||
// flavin.appendNode("name", "John Flavin") | ||
// flavin.appendNode("email", "[email protected]") | ||
// | ||
// def kelsey = developers.appendNode("developer") | ||
// kelsey.appendNode("id", "kelseym") | ||
// kelsey.appendNode("name", "Matt Kelsey") | ||
// kelsey.appendNode("email", "[email protected]") | ||
// | ||
// def will = developers.appendNode("developer") | ||
// will.appendNode("id", "hortonw") | ||
// will.appendNode("name", "Will Horton") | ||
// will.appendNode("email", "[email protected]") | ||
// } | ||
// } | ||
// } | ||
// repositories { | ||
// maven { | ||
// if (project.version.endsWith("-SNAPSHOT")) { | ||
// url "https://nrgxnat.jfrog.io/nrgxnat/libs-snapshot-local" | ||
// } else { | ||
// url "https://nrgxnat.jfrog.io/nrgxnat/libs-release-local" | ||
// } | ||
// // The value for name must match <id> in ~/.m2/settings.xml | ||
// name = "XNAT_Artifactory" | ||
// } | ||
// } | ||
//} |