Ignore stderr stream.
This commit is contained in:
parent
462c0813bf
commit
a96c113825
5 changed files with 31 additions and 22 deletions
|
@ -5,21 +5,21 @@ import java.io.FileInputStream
|
||||||
import java.util.Properties
|
import java.util.Properties
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`build-scan`
|
id("com.gradle.build-scan") version "2.3"
|
||||||
jacoco
|
jacoco
|
||||||
java
|
java
|
||||||
kotlin("jvm") version "1.3.30"
|
kotlin("jvm") version "1.3.31"
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("com.github.ben-manes.versions") version "0.21.0"
|
id("com.github.ben-manes.versions") version "0.21.0"
|
||||||
id("com.jfrog.bintray") version "1.8.4"
|
id("com.jfrog.bintray") version "1.8.4"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14"
|
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14"
|
||||||
id("org.jetbrains.dokka") version "0.9.18"
|
id("org.jetbrains.dokka") version "0.9.18"
|
||||||
id("org.jlleitschuh.gradle.ktlint") version "7.2.1"
|
id("org.jmailen.kotlinter") version "1.25.2"
|
||||||
id("org.sonarqube") version "2.7"
|
id("org.sonarqube") version "2.7.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
version = "1.0.1-beta"
|
version = "1.0.1"
|
||||||
description = "Pinboard Poster for Kotlin/Java"
|
description = "Pinboard Poster for Kotlin/Java"
|
||||||
|
|
||||||
val gitHub = "ethauvin/$name"
|
val gitHub = "ethauvin/$name"
|
||||||
|
@ -48,18 +48,24 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("com.squareup.okhttp3:okhttp:3.14.0")
|
compile("com.squareup.okhttp3:okhttp:3.14.2")
|
||||||
compile(kotlin("stdlib"))
|
compile(kotlin("stdlib"))
|
||||||
|
|
||||||
testImplementation("org.testng:testng:6.14.3")
|
testImplementation("org.testng:testng:6.14.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
input = files("src/main/kotlin")
|
input = files("src/main/kotlin", "src/test/kotlin")
|
||||||
filters = ".*/resources/.*,.*/build/.*"
|
filters = ".*/resources/.*,.*/build/.*"
|
||||||
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
baseline = project.rootDir.resolve("detekt-baseline.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kotlinter {
|
||||||
|
ignoreFailures = false
|
||||||
|
reporters = arrayOf("html")
|
||||||
|
experimentalRules = false
|
||||||
|
}
|
||||||
|
|
||||||
jacoco {
|
jacoco {
|
||||||
toolVersion = "0.8.3"
|
toolVersion = "0.8.3"
|
||||||
}
|
}
|
||||||
|
@ -104,6 +110,16 @@ tasks {
|
||||||
destination = file("$projectDir/pom.xml")
|
destination = file("$projectDir/pom.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assemble {
|
||||||
|
dependsOn(sourcesJar, javadocJar)
|
||||||
|
}
|
||||||
|
|
||||||
|
clean {
|
||||||
|
doLast {
|
||||||
|
project.delete(fileTree(deployDir))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dokka {
|
dokka {
|
||||||
outputFormat = "html"
|
outputFormat = "html"
|
||||||
outputDirectory = "$buildDir/javadoc"
|
outputDirectory = "$buildDir/javadoc"
|
||||||
|
@ -117,10 +133,6 @@ tasks {
|
||||||
includeNonPublic = false
|
includeNonPublic = false
|
||||||
}
|
}
|
||||||
|
|
||||||
assemble {
|
|
||||||
dependsOn(sourcesJar, javadocJar)
|
|
||||||
}
|
|
||||||
|
|
||||||
val copyToDeploy by registering(Copy::class) {
|
val copyToDeploy by registering(Copy::class) {
|
||||||
from(configurations.runtime) {
|
from(configurations.runtime) {
|
||||||
exclude("annotations-*.jar")
|
exclude("annotations-*.jar")
|
||||||
|
@ -132,7 +144,7 @@ tasks {
|
||||||
register("deploy") {
|
register("deploy") {
|
||||||
description = "Copies all needed files to the $deployDir directory."
|
description = "Copies all needed files to the $deployDir directory."
|
||||||
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
group = PublishingPlugin.PUBLISH_TASK_GROUP
|
||||||
dependsOn("build")
|
dependsOn("build", "jar")
|
||||||
outputs.dir(deployDir)
|
outputs.dir(deployDir)
|
||||||
inputs.files(copyToDeploy)
|
inputs.files(copyToDeploy)
|
||||||
mustRunAfter("clean")
|
mustRunAfter("clean")
|
||||||
|
@ -153,10 +165,6 @@ tasks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check {
|
|
||||||
dependsOn("ktlintCheck")
|
|
||||||
}
|
|
||||||
|
|
||||||
val bintrayUpload by existing(BintrayUploadTask::class) {
|
val bintrayUpload by existing(BintrayUploadTask::class) {
|
||||||
dependsOn(publishToMavenLocal, gitTag)
|
dependsOn(publishToMavenLocal, gitTag)
|
||||||
}
|
}
|
||||||
|
|
6
pom.xml
6
pom.xml
|
@ -3,18 +3,18 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.thauvin.erik</groupId>
|
<groupId>net.thauvin.erik</groupId>
|
||||||
<artifactId>pinboard-poster</artifactId>
|
<artifactId>pinboard-poster</artifactId>
|
||||||
<version>1.0.1-beta</version>
|
<version>1.0.1</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
<groupId>com.squareup.okhttp3</groupId>
|
||||||
<artifactId>okhttp</artifactId>
|
<artifactId>okhttp</artifactId>
|
||||||
<version>3.14.0</version>
|
<version>3.14.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.jetbrains.kotlin</groupId>
|
||||||
<artifactId>kotlin-stdlib</artifactId>
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
<version>1.3.30</version>
|
<version>1.3.31</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -8,7 +8,7 @@ defaultTasks 'run'
|
||||||
mainClassName = 'net.thauvin.erik.pinboard.samples.JavaExample'
|
mainClassName = 'net.thauvin.erik.pinboard.samples.JavaExample'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'net.thauvin.erik:pinboard-poster:1.0.0'
|
compile 'net.thauvin.erik:pinboard-poster:1.0.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -6,7 +6,7 @@ plugins {
|
||||||
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("net.thauvin.erik:pinboard-poster:1.0.0")
|
compile("net.thauvin.erik:pinboard-poster:1.0.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
|
|
|
@ -13,7 +13,7 @@ val p = project {
|
||||||
version = "0.1"
|
version = "0.1"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("net.thauvin.erik:pinboard-poster:1.0.0")
|
compile("net.thauvin.erik:pinboard-poster:1.0.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
assemble {
|
assemble {
|
||||||
|
@ -23,6 +23,7 @@ val p = project {
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
|
ignoreErrorStream = true
|
||||||
mainClass = "net.thauvin.erik.pinboard.samples.KotlinExampleKt"
|
mainClass = "net.thauvin.erik.pinboard.samples.KotlinExampleKt"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue