Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 23 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import org.gradle.internal.os.OperatingSystem

plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'jacoco'
Expand Down Expand Up @@ -71,6 +72,21 @@ javadoc {
}
}

jacoco {
toolVersion = "0.8.13"
}

jacocoTestReport {
reports {
xml.required = true // coveralls plugin depends on xml format report
html.required = true
}
}

artifacts {
archives javadocJar, sourcesJar
}

if (isMerge || isRelease) {
nexusPublishing {
repositories {
Expand All @@ -87,18 +103,14 @@ if (isMerge || isRelease) {
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = archivesBaseName
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
artifact sourcesJar
artifact javadocJar
pom {
name = 'JNats Json'
name = rootProject.name
packaging = 'jar'
groupId = group
artifactId = archivesBaseName
description = 'JSON Parser built specifically for JNATS'
url = 'https://github.com/nats-io/nats.java.json'
licenses {
Expand All @@ -112,7 +124,7 @@ publishing {
id = "synadia"
name = "Synadia"
email = "info@synadia.com"
url = "https://synadia.io"
url = "https://nats.io"
}
}
scm {
Expand All @@ -121,14 +133,6 @@ publishing {
}
}
}
// repositories {
// maven {
// // change URLs to point to your repos, e.g. http://my.org/repo
// def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/"
// def snapshotsRepoUrl = layout.buildDirectory.dir("https://central.sonatype.com/repository/maven-snapshots/")
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
// }
// }
}

if (isRelease) {
Expand Down