-
Notifications
You must be signed in to change notification settings - Fork 33
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
Showing
7 changed files
with
123 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 |
---|---|---|
@@ -1,12 +1,21 @@ | ||
plugins { | ||
id "java" | ||
id "checkstyle" | ||
id 'net.researchgate.release' version '2.4.0' | ||
id 'maven' | ||
id 'signing' | ||
apply plugin: 'java' | ||
apply plugin: 'checkstyle' | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
if (project.hasProperty('releasing')) { | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' | ||
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1' | ||
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0' | ||
classpath 'net.researchgate:gradle-release:2.4.0' | ||
} | ||
} | ||
} | ||
if (project.hasProperty('releasing')) { | ||
apply from: "release.gradle" | ||
} | ||
|
||
archivesBaseName = 'bugsnag' | ||
|
||
sourceCompatibility = 1.6 | ||
targetCompatibility = 1.6 | ||
|
@@ -34,72 +43,3 @@ test { | |
checkstyle { | ||
toolVersion = "6.16" | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from tasks.javadoc.destinationDir | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives jar | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
signing { | ||
required { gradle.taskGraph.hasTask("uploadArchives") } | ||
sign configurations.archives | ||
} | ||
|
||
release { | ||
tagTemplate = 'v${version}' | ||
} | ||
|
||
// Required to upload releases to Sonatype | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: sonatypeUsername, password: sonatypePassword) | ||
} | ||
|
||
pom.artifactId = 'bugsnag' | ||
pom.groupId = 'com.bugsnag' | ||
|
||
pom.project { | ||
name 'bugsnag' | ||
packaging 'jar' | ||
description 'Official Bugsnag notifier for Java applications' | ||
url 'http://bugsnag.com/' | ||
|
||
scm { | ||
url 'https://github.com/bugsnag/bugsnag-java' | ||
connection 'scm:git:[email protected]:bugsnag/bugsnag-java.git' | ||
developerConnection 'scm:git:[email protected]:bugsnag/bugsnag-java.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'http://opensource.org/licenses/MIT' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'james' | ||
name 'James Smith' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,5 +1,8 @@ | ||
version=3.0.3-SNAPSHOT | ||
version=3.1.0 | ||
|
||
# Default properties | ||
sonatypeUsername= | ||
sonatypePassword= | ||
bintray_user= | ||
bintray_password= | ||
bintray_api_key= |
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.bmuschko.nexus' | ||
apply plugin: 'io.codearte.nexus-staging' | ||
apply plugin: 'net.researchgate.release' | ||
apply plugin: 'maven-publish' | ||
|
||
archivesBaseName = 'bugsnag' | ||
|
||
release { | ||
tagTemplate = 'v${version}' | ||
} | ||
|
||
modifyPom { | ||
project { | ||
name 'Bugsnag' | ||
description 'Official Bugsnag notifier for Java applications' | ||
url 'https://github.com/bugsnag/bugsnag-java' | ||
|
||
scm { | ||
url 'https://github.com/bugsnag/bugsnag-java' | ||
connection 'scm:git:git://github.com/bugsnag/bugsnag-java.git' | ||
developerConnection 'scm:git:ssh://[email protected]/bugsnag/bugsnag-java.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT' | ||
url 'http://opensource.org/licenses/MIT' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
organization { | ||
name 'Bugsnag' | ||
url 'https://bugsnag.com' | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'loopj' | ||
name 'James Smith' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
Publication(MavenPublication) { | ||
artifact jar | ||
groupId 'com.bugsnag' | ||
artifactId 'bugsnag' | ||
version project.version | ||
} | ||
} | ||
} | ||
// Bintray upload | ||
bintray { | ||
user = "$bintray_user" | ||
key = "$bintray_api_key" | ||
publications = ['Publication'] | ||
pkg { | ||
repo = 'maven' | ||
name = 'bugsnag-java' | ||
userOrg = 'bugsnag' | ||
licenses = ['MIT'] | ||
vcsUrl = 'https://github.com/bugsnag/bugsnag-java.git' | ||
version { | ||
name = project.version | ||
vcsTag = "v${project.version}" | ||
} | ||
} | ||
} |
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