-
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.
- Loading branch information
1 parent
13c6c4c
commit 13b9692
Showing
3 changed files
with
125 additions
and
97 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 |
---|---|---|
|
@@ -2,94 +2,119 @@ | |
* Maven publishing configuration | ||
* */ | ||
|
||
// Maven basis attributes | ||
// Maven pom.xml attributes | ||
ext { | ||
libraryName = 'Testerra' | ||
artifact = project.getName().toLowerCase() | ||
packagingType = 'jar' | ||
libraryName = 'Testerra TeamCity Connector' | ||
packagingType = 'jar' | ||
|
||
libraryDescription = "Testerra ${project.getName()} module" | ||
siteUrl = 'https://testerra.io' | ||
gitUrl = 'scm:git:git://github.com/telekom/testerra-azure-devops-connector.git' | ||
gitHttpsUrl = 'https://github.com/telekom/testerra-azure-devops-connector/' | ||
|
||
siteUrl = 'https://testerra.io' | ||
gitUrl = 'https://github.com/telekom/testerra-selenoid-connector.git' | ||
issueUrl = 'https://github.com/telekom/testerra-selenoid-connector/issues' | ||
developerId = 'MMS' | ||
developerName = 'Testerra Team T-Systems MMS' | ||
developerEmail = '[email protected]' | ||
developerOrganization = 'T-Systems MMS' | ||
developerOrganizationUrl = 'https://www.t-systems-mms.com/' | ||
|
||
developerId = 'MMS' | ||
developerName = 'Testerra Team T-Systems MMS' | ||
developerEmail = '[email protected]' | ||
|
||
licenseName = 'The Apache Software License, Version 2.0' | ||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
allLicenses = ["Apache-2.0"] | ||
licenseName = 'The Apache Software License, Version 2.0' | ||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
allLicenses = ["Apache-2.0"] | ||
} | ||
|
||
// Set up the Maven publication. | ||
install { | ||
repositories.mavenInstaller { | ||
// This generates POM.xml with proper parameters | ||
pom.project { | ||
packaging packagingType | ||
groupId group | ||
artifactId artifact | ||
|
||
// Add your description here | ||
name libraryName | ||
description libraryDescription | ||
url siteUrl | ||
|
||
// Set your license | ||
licenses { | ||
license { | ||
name licenseName | ||
url licenseUrl | ||
} | ||
} | ||
developers { | ||
developer { | ||
id developerId | ||
name developerName | ||
email developerEmail | ||
} | ||
} | ||
scm { | ||
connection gitUrl | ||
developerConnection gitUrl | ||
url siteUrl | ||
} | ||
|
||
} | ||
} | ||
nexusStaging { | ||
serverUrl = "https://s01.oss.sonatype.org/service/local/" | ||
packageGroup = "io.testerra" | ||
username = System.getProperty("deployUsername") | ||
password = System.getProperty("deployPassword") | ||
} | ||
|
||
|
||
// Publish to a Maven repository | ||
allprojects { | ||
|
||
publishing { | ||
def libraryDescription = "Testerra test automation framework - ${project.getName()} module" | ||
|
||
javadoc { | ||
// Support JDK 8 annotations | ||
options.tags = [ | ||
"implNote:a:Implementation Note:", | ||
"apiNote:a:API Note:", | ||
"implSpec:a:Implementation Requirements:" | ||
] | ||
// Prevent errors during generation | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
archiveClassifier.set('sources') | ||
from sourceSets.main.allSource | ||
archiveClassifier.set('sources') | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
task javadocJar(type: Jar) { | ||
archiveClassifier.set('javadoc') | ||
from javadoc | ||
} | ||
|
||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
} | ||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
repositories { | ||
maven { | ||
url System.getProperty("deployUrl", "none") | ||
credentials { | ||
username System.getProperty("deployUsername", "none") | ||
password System.getProperty("deployPassword", "none") | ||
publishing { | ||
|
||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
// Custom pom | ||
pom { | ||
|
||
name = libraryName | ||
description = libraryDescription | ||
url = siteUrl | ||
|
||
licenses { | ||
license { | ||
name = licenseName | ||
url = licenseUrl | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = developerId | ||
name = developerName | ||
email = developerEmail | ||
organization = developerOrganization | ||
organizationUrl = developerOrganizationUrl | ||
} | ||
} | ||
|
||
scm { | ||
connection = gitUrl | ||
developerConnection = gitUrl | ||
url = gitHttpsUrl | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
url System.getProperty("deployUrl", "none") | ||
credentials { | ||
username System.getProperty("deployUsername", "none") | ||
password System.getProperty("deployPassword", "none") | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign publishing.publications.mavenJava | ||
} | ||
|
||
} | ||
} | ||
} |