-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Hillelmed/feature/updatetojava17
Feature/updatetojava17
- Loading branch information
Showing
86 changed files
with
427 additions
and
528 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,54 +1,74 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
nexusUrl.set(uri("$sonatypeURL/service/local/")) | ||
snapshotRepositoryUrl.set(uri("$sonatypeURL/content/repositories/snapshots/")) | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
artifact testsJar | ||
artifact docsJar | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode('name', 'Jenkins Rest') | ||
root.appendNode('description', 'Java client for working with Jenkins REST API.') | ||
root.appendNode('url', 'https://github.com/cdancy/jenkins-rest') | ||
root.appendNode('inceptionYear', '2016') | ||
|
||
def scm = root.appendNode('scm') | ||
scm.appendNode('url', 'https://github.com/cdancy/jenkins-rest') | ||
scm.appendNode('connection', 'scm:https://cdancy@github.com/cdancy/jenkins-rest.git') | ||
scm.appendNode('developerConnection', 'scm:git://github.com/cdancy/jenkins-rest.git') | ||
|
||
def license = root.appendNode('licenses').appendNode('license') | ||
license.appendNode('name', 'The Apache Software License, Version 2.0') | ||
license.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt') | ||
license.appendNode('distribution', 'repo') | ||
|
||
def developers = root.appendNode('developers') | ||
def cdancy = developers.appendNode('developer') | ||
cdancy.appendNode('id', 'cdancy') | ||
cdancy.appendNode('name', 'Christopher Dancy') | ||
cdancy.appendNode('email', 'christoforever@gmail.com') | ||
def martinda = developers.appendNode('developer') | ||
martinda.appendNode('id', 'martinda') | ||
martinda.appendNode('name', "Martin d'Anjou") | ||
martinda.appendNode('email', 'martin.danjou14@gmail.com') | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign publishing.publications.mavenJava | ||
} | ||
//apply plugin: 'maven-upload' | ||
//apply plugin: 'signing' | ||
// | ||
//group = 'io.github.hillelmed' | ||
//version = '1.0.0' | ||
//archivesBaseName = "jenkins-client-java" | ||
// | ||
//java { | ||
// withJavadocJar() | ||
// withSourcesJar() | ||
//} | ||
//uploadArchives { | ||
// repositories { | ||
// mavenDeployer { | ||
// | ||
// repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
// authentication(userName: ossrhUsername, password: ossrhPassword) | ||
// } | ||
// | ||
// snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { | ||
// authentication(userName: ossrhUsername, password: ossrhPassword) | ||
// } | ||
// | ||
// pom.project { | ||
// name = 'Jenkins rest client in java' | ||
// description = 'Java client for working with Jenkins REST API' | ||
// url = 'https://github.com/Hillelmed/jenkins-client-java' | ||
// packaging 'jar' | ||
// licenses { | ||
// license { | ||
// name = 'The MIT License (MIT)' | ||
// url = 'http://opensource.org/licenses/MIT' | ||
// } | ||
// } | ||
// developers { | ||
// developer { | ||
// id = 'HillelMed' | ||
// name = 'Hillel medioni' | ||
// email = 'hillel95med@gmail.com' | ||
// } | ||
// } | ||
// scm { | ||
// connection = 'scm:https://github.com/Hillelmed/jenkins-client-java.git' | ||
// developerConnection = 'scm:git://github.com/Hillelmed/jenkins-client-java.git' | ||
// url = 'https://github.com/Hillelmed/jenkins-client-java/' | ||
// } | ||
// } | ||
// } | ||
// } | ||
//} | ||
// | ||
// | ||
//signing { | ||
// sign configurations.archives | ||
//} | ||
//artifacts { | ||
// archives javadocJar, sourcesJar | ||
//} | ||
//tasks.register('javadocJar', Jar) { | ||
// classifier = 'javadoc' | ||
// from javadoc | ||
//} | ||
// | ||
//tasks.register('sourcesJar', Jar) { | ||
// classifier = 'sources' | ||
// from sourceSets.main.allSource | ||
//} | ||
// | ||
// | ||
//javadoc { | ||
// if (JavaVersion.current().isJava9Compatible()) { | ||
// options.addBooleanOption('html5', true) | ||
// } | ||
//} |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...b/hmedioni/jenkins/client/JenkinsApi.java → .../hillelmed/jenkins/client/JenkinsApi.java
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
Oops, something went wrong.