Skip to content

Commit eaae336

Browse files
committed
Change version to 0.0.1
1 parent 35ca99b commit eaae336

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

build.gradle.kts

+10-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33
val artifact = "pokeapi"
44
val projectName = "PokeApi"
55
val sonarSnapshotUri = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
6+
val sonarReleaseUri = "https://s01.oss.sonatype.org/content/repositories/releases/"
67

78
description = "PokeApi is a simple library you can use to make request to get data about Pokémon."
89
group = "fr.tykok"
9-
version = "1.0-SNAPSHOT"
10+
version = "0.0.1"
11+
12+
fun getUriSonar(): String {
13+
return if (version.toString().endsWith("SNAPSHOT"))
14+
sonarSnapshotUri
15+
else
16+
sonarReleaseUri
17+
}
1018

1119
plugins {
1220
`java-library`
@@ -68,7 +76,7 @@ publishing {
6876
}
6977
repositories {
7078
maven {
71-
url = uri(sonarSnapshotUri)
79+
url = uri(getUriSonar())
7280
name = projectName
7381
group
7482
version

0 commit comments

Comments
 (0)