File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,18 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
val artifact = " pokeapi"
4
4
val projectName = " PokeApi"
5
5
val sonarSnapshotUri = " https://s01.oss.sonatype.org/content/repositories/snapshots/"
6
+ val sonarReleaseUri = " https://s01.oss.sonatype.org/content/repositories/releases/"
6
7
7
8
description = " PokeApi is a simple library you can use to make request to get data about Pokémon."
8
9
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
+ }
10
18
11
19
plugins {
12
20
`java- library`
@@ -68,7 +76,7 @@ publishing {
68
76
}
69
77
repositories {
70
78
maven {
71
- url = uri(sonarSnapshotUri )
79
+ url = uri(getUriSonar() )
72
80
name = projectName
73
81
group
74
82
version
You can’t perform that action at this time.
0 commit comments