Added support for snapshot.
This commit is contained in:
parent
9463c8e944
commit
79eb854093
4 changed files with 15 additions and 11 deletions
|
@ -7,13 +7,13 @@ plugins {
|
|||
`maven-publish`
|
||||
signing
|
||||
id("com.github.ben-manes.versions") version "0.38.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.16.0"
|
||||
id("io.gitlab.arturbosch.detekt") version "1.17.0-RC1"
|
||||
id("net.thauvin.erik.gradle.semver") version "1.0.4"
|
||||
id("org.jetbrains.dokka") version "1.4.32"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.5.0"
|
||||
id("org.jetbrains.kotlin.kapt") version "1.5.0"
|
||||
id("org.jetbrains.kotlin.plugin.serialization") version "1.5.0"
|
||||
id("org.sonarqube") version "3.1.1"
|
||||
id("org.sonarqube") version "3.2.0"
|
||||
}
|
||||
|
||||
group = "net.thauvin.erik"
|
||||
|
@ -36,7 +36,6 @@ val versions: VersionInfo by extra { VersionInfo }
|
|||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
jcenter() // needed for Dokka
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
||||
}
|
||||
|
||||
|
@ -49,7 +48,7 @@ dependencies {
|
|||
implementation("com.squareup.okhttp3:okhttp:${versions.okhttp}")
|
||||
implementation("com.squareup.okhttp3:logging-interceptor:${versions.okhttp}")
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:1.0-M1-1.4.0-rc-218")
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:1.0-M1-1.4.0-rc")
|
||||
testImplementation("org.mockito:mockito-core:3.9.0")
|
||||
testImplementation("org.testng:testng:7.4.0")
|
||||
}
|
||||
|
@ -61,6 +60,7 @@ kapt {
|
|||
}
|
||||
|
||||
detekt {
|
||||
toolVersion = "main-SNAPSHOT"
|
||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||
}
|
||||
|
||||
|
@ -235,7 +235,11 @@ publishing {
|
|||
repositories {
|
||||
maven {
|
||||
name = "ossrh"
|
||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
project.afterEvaluate {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ repositories {
|
|||
dependencies {
|
||||
implementation("javax.servlet:javax.servlet-api:4.0.1")
|
||||
|
||||
implementation("net.thauvin.erik:akismet-kotlin:0.9.3")
|
||||
implementation("net.thauvin.erik:akismet-kotlin:0.9.3-SNAPSHOT")
|
||||
}
|
||||
|
||||
application {
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -8,7 +8,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.thauvin.erik</groupId>
|
||||
<artifactId>akismet-kotlin</artifactId>
|
||||
<version>0.9.3</version>
|
||||
<version>0.9.3-SNAPSHOT</version>
|
||||
<name>akismet-kotlin</name>
|
||||
<description>Akismet for Kotlin/Java, a client library for accessing the Automattic Kismet (Akismet) spam comments filtering service.</description>
|
||||
<url>https://github.com/ethauvin/akismet-kotlin</url>
|
||||
|
@ -63,7 +63,7 @@
|
|||
<dependency>
|
||||
<groupId>org.jetbrains.kotlinx</groupId>
|
||||
<artifactId>kotlinx-serialization-runtime-jvm</artifactId>
|
||||
<version>1.0-M1-1.4.0-rc-218</version>
|
||||
<version>1.0-M1-1.4.0-rc</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#Generated by the Semver Plugin for Gradle
|
||||
#Sun Mar 21 16:17:41 PDT 2021
|
||||
#Sun May 02 22:00:05 PDT 2021
|
||||
version.buildmeta=
|
||||
version.major=0
|
||||
version.minor=9
|
||||
version.patch=3
|
||||
version.prerelease=
|
||||
version.prerelease=SNAPSHOT
|
||||
version.project=Akismet Kotlin
|
||||
version.semver=0.9.3
|
||||
version.semver=0.9.3-SNAPSHOT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue