Added support for snapshot.
This commit is contained in:
parent
2c48f94e6d
commit
b1810846a5
3 changed files with 8 additions and 6 deletions
|
@ -8,7 +8,7 @@ plugins {
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.16.0"
|
id("io.gitlab.arturbosch.detekt") version "1.16.0"
|
||||||
id("org.jetbrains.dokka") version "1.4.32"
|
id("org.jetbrains.dokka") version "1.4.32"
|
||||||
id("org.jetbrains.kotlin.jvm") version "1.5.0"
|
id("org.jetbrains.kotlin.jvm") version "1.5.0"
|
||||||
id("org.sonarqube") version "3.1.1"
|
id("org.sonarqube") version "3.2.0"
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
jacoco
|
jacoco
|
||||||
|
@ -17,7 +17,7 @@ plugins {
|
||||||
|
|
||||||
description = "Estimated Reading Time for Blog Posts, Articles, etc."
|
description = "Estimated Reading Time for Blog Posts, Articles, etc."
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
version = "0.9.1"
|
version = "0.9.1-SNAPSHOT"
|
||||||
|
|
||||||
val deployDir = "deploy"
|
val deployDir = "deploy"
|
||||||
val gitHub = "ethauvin/$name"
|
val gitHub = "ethauvin/$name"
|
||||||
|
@ -27,7 +27,6 @@ var isRelease = "release" in gradle.startParameter.taskNames
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter() // needed by detekt 1.16.0
|
|
||||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,6 +44,7 @@ java {
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
|
toolVersion = "main-SNAPSHOT"
|
||||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,7 +182,9 @@ publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "ossrh"
|
name = "ossrh"
|
||||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
url = if (project.version.toString().contains("SNAPSHOT"))
|
||||||
|
uri("https://oss.sonatype.org/content/repositories/snapshots/") else
|
||||||
|
uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||||
credentials(PasswordCredentials::class)
|
credentials(PasswordCredentials::class)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.thauvin.erik:readingtime:0.9.1")
|
implementation("net.thauvin.erik:readingtime:0.9.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
application {
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.thauvin.erik</groupId>
|
<groupId>net.thauvin.erik</groupId>
|
||||||
<artifactId>readingtime</artifactId>
|
<artifactId>readingtime</artifactId>
|
||||||
<version>0.9.1</version>
|
<version>0.9.1-SNAPSHOT</version>
|
||||||
<name>readingtime</name>
|
<name>readingtime</name>
|
||||||
<description>Estimated Reading Time for Blog Posts, Articles, etc.</description>
|
<description>Estimated Reading Time for Blog Posts, Articles, etc.</description>
|
||||||
<url>https://github.com/ethauvin/readingtime</url>
|
<url>https://github.com/ethauvin/readingtime</url>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue