Skip to content

Commit

Permalink
Ignore stderr stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed May 27, 2019
1 parent 462c081 commit a96c113
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 22 deletions.
40 changes: 24 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import java.io.FileInputStream
import java.util.Properties

plugins {
`build-scan`
id("com.gradle.build-scan") version "2.3"
jacoco
java
kotlin("jvm") version "1.3.30"
kotlin("jvm") version "1.3.31"
`maven-publish`
id("com.github.ben-manes.versions") version "0.21.0"
id("com.jfrog.bintray") version "1.8.4"
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14"
id("org.jetbrains.dokka") version "0.9.18"
id("org.jlleitschuh.gradle.ktlint") version "7.2.1"
id("org.sonarqube") version "2.7"
id("org.jmailen.kotlinter") version "1.25.2"
id("org.sonarqube") version "2.7.1"
}

group = "net.thauvin.erik"
version = "1.0.1-beta"
version = "1.0.1"
description = "Pinboard Poster for Kotlin/Java"

val gitHub = "ethauvin/$name"
Expand Down Expand Up @@ -48,18 +48,24 @@ repositories {
}

dependencies {
compile("com.squareup.okhttp3:okhttp:3.14.0")
compile("com.squareup.okhttp3:okhttp:3.14.2")
compile(kotlin("stdlib"))

testImplementation("org.testng:testng:6.14.3")
}

detekt {
input = files("src/main/kotlin")
input = files("src/main/kotlin", "src/test/kotlin")
filters = ".*/resources/.*,.*/build/.*"
baseline = project.rootDir.resolve("detekt-baseline.xml")
}

kotlinter {
ignoreFailures = false
reporters = arrayOf("html")
experimentalRules = false
}

jacoco {
toolVersion = "0.8.3"
}
Expand Down Expand Up @@ -104,6 +110,16 @@ tasks {
destination = file("$projectDir/pom.xml")
}

assemble {
dependsOn(sourcesJar, javadocJar)
}

clean {
doLast {
project.delete(fileTree(deployDir))
}
}

dokka {
outputFormat = "html"
outputDirectory = "$buildDir/javadoc"
Expand All @@ -117,10 +133,6 @@ tasks {
includeNonPublic = false
}

assemble {
dependsOn(sourcesJar, javadocJar)
}

val copyToDeploy by registering(Copy::class) {
from(configurations.runtime) {
exclude("annotations-*.jar")
Expand All @@ -132,7 +144,7 @@ tasks {
register("deploy") {
description = "Copies all needed files to the $deployDir directory."
group = PublishingPlugin.PUBLISH_TASK_GROUP
dependsOn("build")
dependsOn("build", "jar")
outputs.dir(deployDir)
inputs.files(copyToDeploy)
mustRunAfter("clean")
Expand All @@ -153,10 +165,6 @@ tasks {
}
}

check {
dependsOn("ktlintCheck")
}

val bintrayUpload by existing(BintrayUploadTask::class) {
dependsOn(publishToMavenLocal, gitTag)
}
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.thauvin.erik</groupId>
<artifactId>pinboard-poster</artifactId>
<version>1.0.1-beta</version>
<version>1.0.1</version>
<dependencies>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>3.14.0</version>
<version>3.14.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.3.30</version>
<version>1.3.31</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion samples/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defaultTasks 'run'
mainClassName = 'net.thauvin.erik.pinboard.samples.JavaExample'

dependencies {
compile 'net.thauvin.erik:pinboard-poster:1.0.0'
compile 'net.thauvin.erik:pinboard-poster:1.0.1'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion samples/kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)

dependencies {
compile("net.thauvin.erik:pinboard-poster:1.0.0")
compile("net.thauvin.erik:pinboard-poster:1.0.1")
}

application {
Expand Down
3 changes: 2 additions & 1 deletion samples/kotlin/kobalt/src/Build.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ val p = project {
version = "0.1"

dependencies {
compile("net.thauvin.erik:pinboard-poster:1.0.0")
compile("net.thauvin.erik:pinboard-poster:1.0.1")
}

assemble {
Expand All @@ -23,6 +23,7 @@ val p = project {
}

application {
ignoreErrorStream = true
mainClass = "net.thauvin.erik.pinboard.samples.KotlinExampleKt"
}
}

0 comments on commit a96c113

Please sign in to comment.