-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* logback v1.2.0 Gradle changes to support latest gradle. Code changes to support latest java and javabrake. * added example * Removed blank spaces and Updated readme
- Loading branch information
1 parent
1d92c88
commit 91f0dc2
Showing
23 changed files
with
1,077 additions
and
173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
.gradle | ||
.project | ||
.settings/* | ||
build | ||
.ackrc | ||
bin | ||
**target | ||
**.DS_Store | ||
**.vscode | ||
Main.java | ||
/src/main/resources |
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 |
---|---|---|
|
@@ -3,20 +3,24 @@ buildscript { | |
mavenCentral() | ||
} | ||
dependencies { | ||
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.11.0" | ||
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0" | ||
} | ||
} | ||
|
||
plugins { | ||
id 'com.jfrog.bintray' version '1.7.3' | ||
} | ||
plugins { | ||
id 'java' | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
apply plugin: 'maven' | ||
apply plugin: 'java-library' | ||
apply plugin: 'io.codearte.nexus-staging' | ||
apply plugin: 'io.codearte.nexus-staging' | ||
|
||
group = 'io.airbrake' | ||
version = '0.1.1' | ||
version = '0.1.2' | ||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
|
||
if (project.hasProperty('signing.keyId')) { | ||
apply plugin: 'signing' | ||
|
@@ -26,15 +30,18 @@ if (project.hasProperty('signing.keyId')) { | |
} | ||
|
||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile 'io.airbrake:javabrake:0.1.6' | ||
compile 'ch.qos.logback:logback-classic:1.2.3' | ||
compile 'org.slf4j:slf4j-api:1.7.25' | ||
implementation 'io.airbrake:javabrake:0.3.0' | ||
implementation 'ch.qos.logback:logback-classic:1.3.5' | ||
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
} | ||
|
||
testImplementation 'junit:junit:4.12' | ||
java{ | ||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
test { | ||
|
@@ -48,105 +55,64 @@ test { | |
} | ||
} | ||
|
||
bintray { | ||
user = System.getenv('BINTRAY_USER') | ||
key = System.getenv('BINTRAY_KEY') | ||
configurations = ['archives'] | ||
publish = true | ||
override = true | ||
pkg { | ||
repo = 'maven' | ||
name = project.name | ||
userOrg = 'airbrake' | ||
licenses = ['MIT'] | ||
vcsUrl = 'https://github.com/airbrake/logback.git' | ||
version { | ||
name = project.version | ||
desc = 'logback integration for javabrake' | ||
vcsTag = project.version | ||
} | ||
} | ||
} | ||
|
||
if (project.hasProperty('ossrhUsername')) { | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name project.name | ||
packaging 'jar' | ||
description 'Logback integration for javabrake' | ||
url 'https://airbrake.io' | ||
|
||
scm { | ||
connection 'https://github.com/airbrake/logback.git' | ||
developerConnection 'https://github.com/airbrake/logback.git' | ||
url 'https://github.com/airbrake/logback' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'MIT License' | ||
url 'https://opensource.org/licenses/MIT' | ||
} | ||
} | ||
publishing { | ||
publications{ | ||
|
||
mavenJava(MavenPublication){ | ||
|
||
group = 'io.airbrake' | ||
artifactId = 'logback' | ||
version = '0.1.2' | ||
description = 'logback integration for javabrake' | ||
from(components.java) | ||
|
||
|
||
pom{ | ||
name = 'logback' | ||
url = 'https://airbrake.io' | ||
description = 'Logback integration for javabrake' | ||
licenses { | ||
license { | ||
name = 'MIT License' | ||
url = 'https://opensource.org/licenses/MIT' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'sumitjoshi1989' | ||
name = 'Sumit Joshi' | ||
email = '[email protected]' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git:github.com/airbrake/logback.git' | ||
developerConnection = 'scm:git:ssh://github.com/airbrake/logback.git' | ||
url = 'https://github.com/airbrake/logback' | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'vmihailenco' | ||
name 'Vladimir Mihailenco' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
repositories{ | ||
maven{ | ||
|
||
name = 'OSSRH' | ||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
// url = 'https://oss.sonatype.org/content/repositories/snapshots' | ||
credentials { | ||
username = project.properties["ossrhUsername"] | ||
password = project.properties["ossrhPassword"] | ||
} | ||
|
||
} | ||
} | ||
|
||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
signing { | ||
sign publishing.publications.mavenJava | ||
} | ||
|
||
task createPom { | ||
doLast { | ||
pom { | ||
project { | ||
groupId project.group | ||
artifactId project.name | ||
version project.version | ||
|
||
inceptionYear '2017' | ||
licenses { | ||
license { | ||
name 'MIT License' | ||
url 'http://www.opensource.org/licenses/mit-license.php' | ||
distribution 'repo' | ||
} | ||
} | ||
} | ||
}.writeTo("pom.xml") | ||
} | ||
} | ||
build.dependsOn createPom | ||
javadoc{ | ||
|
||
} |
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,33 @@ | ||
HELP.md | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ |
Binary file not shown.
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,2 @@ | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip | ||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar |
Oops, something went wrong.