-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALFREDOPS-849 use entreprise-conventions-gradle-plugin for publishing
- Loading branch information
1 parent
24cd4b4
commit 43aa5b8
Showing
5 changed files
with
49 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
pluginManager.withPlugin('maven-publish') { | ||
apply plugin: 'signing' | ||
|
||
publishing { | ||
publications { | ||
all { | ||
pom { | ||
url = 'https://github.com/xenit-eu/alfred-telemetry' | ||
name = "alfred-telemetry" | ||
description = project.description | ||
publishing { | ||
|
||
scm { | ||
connection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git' | ||
developerConnection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git' | ||
url = 'https://github.com/xenit-eu/alfred-telemetry.git' | ||
} | ||
developers { | ||
developer { | ||
id = "xenit" | ||
name = "Xenit Solutions NV" | ||
repositories { | ||
if ("${project.version}".endsWith('-SNAPSHOT')) { | ||
sonatypeSnapshots { | ||
credentials { | ||
username = project.findProperty('publish_username') | ||
password = project.findProperty('publish_password') | ||
} | ||
} | ||
|
||
licenses { | ||
license { | ||
name = 'GNU Lesser General Public License v3.0' | ||
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt' | ||
} else { | ||
sonatypeMavenCentral { | ||
credentials { | ||
username = project.findProperty('publish_username') | ||
password = project.findProperty('publish_password') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
publications { | ||
all { | ||
pom { | ||
url = 'https://github.com/xenit-eu/alfred-telemetry' | ||
name = "alfred-telemetry" | ||
description = project.description | ||
|
||
repositories { | ||
maven { | ||
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
url = version.toString().endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
scm { | ||
connection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git' | ||
developerConnection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git' | ||
url = 'https://github.com/xenit-eu/alfred-telemetry.git' | ||
} | ||
developers { | ||
developer { | ||
id = "xenit" | ||
name = "Xenit Solutions NV" | ||
} | ||
} | ||
|
||
credentials { | ||
username = project.findProperty('sonatype_username') | ||
password = project.findProperty('sonatype_password') | ||
licenses { | ||
license { | ||
name = 'GNU Lesser General Public License v3.0' | ||
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
required { !version.toString().endsWith("SNAPSHOT") } | ||
useInMemoryPgpKeys(findProperty("signingKeyId"), findProperty("signingKey"), findProperty("signingPassword")) | ||
sign publishing.publications | ||
} | ||
} |
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