Added support for snapshot.
This commit is contained in:
parent
3772d523c8
commit
e76957689f
4 changed files with 13 additions and 8 deletions
|
@ -12,7 +12,7 @@ plugins {
|
||||||
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.jetbrains.kotlin.kapt") version "1.5.0"
|
id("org.jetbrains.kotlin.kapt") version "1.5.0"
|
||||||
id("org.sonarqube") version "3.1.1"
|
id("org.sonarqube") version "3.2.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
|
@ -35,7 +35,6 @@ val versions: VersionInfo by extra { VersionInfo }
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
jcenter() // needed for dokka
|
|
||||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,6 +56,7 @@ kapt {
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
|
toolVersion = "main-SNAPSHOT"
|
||||||
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
baseline = project.rootDir.resolve("config/detekt/baseline.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +220,12 @@ publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "ossrh"
|
name = "ossrh"
|
||||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
project.afterEvaluate {
|
||||||
|
url = if (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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.thauvin.erik:bitly-shorten:0.9.4")
|
implementation("net.thauvin.erik:bitly-shorten:0.9.4-SNAPSHOT")
|
||||||
implementation("org.json:json:20210307")
|
implementation("org.json:json:20210307")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
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>bitly-shorten</artifactId>
|
<artifactId>bitly-shorten</artifactId>
|
||||||
<version>0.9.4</version>
|
<version>0.9.4-SNAPSHOT</version>
|
||||||
<name>bitly-shorten</name>
|
<name>bitly-shorten</name>
|
||||||
<description>Bitly Shortener for Kotlin/Java</description>
|
<description>Bitly Shortener for Kotlin/Java</description>
|
||||||
<url>https://github.com/ethauvin/bitly-shorten</url>
|
<url>https://github.com/ethauvin/bitly-shorten</url>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#Generated by the Semver Plugin for Gradle
|
#Generated by the Semver Plugin for Gradle
|
||||||
#Wed Apr 28 10:20:02 PDT 2021
|
#Sun May 02 22:02:16 PDT 2021
|
||||||
version.buildmeta=
|
version.buildmeta=
|
||||||
version.major=0
|
version.major=0
|
||||||
version.minor=9
|
version.minor=9
|
||||||
version.patch=4
|
version.patch=4
|
||||||
version.prerelease=
|
version.prerelease=SNAPSHOT
|
||||||
version.semver=0.9.4
|
version.semver=0.9.4-SNAPSHOT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue