Skip to content

Commit

Permalink
Remove maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
johnflavin committed Jun 5, 2024
1 parent 1ff68ce commit c56f254
Showing 1 changed file with 56 additions and 62 deletions.
118 changes: 56 additions & 62 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
// }
// }
//}

0 comments on commit c56f254

Please sign in to comment.