Skip to content

Commit 568ea7a

Browse files
committed
Publish to sonatype
1 parent ab6d238 commit 568ea7a

File tree

6 files changed

+37
-2
lines changed

6 files changed

+37
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Just add Switcher view in your layout XML and Switcher library in your project v
2424

2525
```gradle
2626
dependencies {
27-
implementation 'com.bitvale:switcher:1.1.1'
27+
implementation 'io.github.bitvale:switcher:1.1.2'
2828
}
2929
```
3030

@@ -64,4 +64,4 @@ switcher.setOnCheckedChangeListener { checked ->
6464
LICENCE
6565
-----
6666

67-
Switcher by [Alexander Kolpakov](https://play.google.com/store/apps/dev?id=7044571013168957413) is licensed under an [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).
67+
Switcher by [Alexander Kolpakov](https://play.google.com/store/apps/dev?id=7044571013168957413) is licensed under an [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id(GradlePluginId.ANDROID_APPLICATION) apply false
55
id(GradlePluginId.KOTLIN_ANDROID) apply false
66
id(GradlePluginId.COMMON_CONFIG_PLUGIN) apply false
7+
id(GradlePluginId.MAVEN_PUBLISH_PLUGIN) apply false
78
}
89

910
allprojects {

buildSrc/src/main/kotlin/GradlePluginId.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ object GradlePluginId {
33
const val ANDROID_LIBRARY = "com.android.library"
44
const val KOTLIN_ANDROID = "org.jetbrains.kotlin.android"
55
const val COMMON_CONFIG_PLUGIN = "common-config-plugin"
6+
const val MAVEN_PUBLISH_PLUGIN = "com.vanniktech.maven.publish"
67
}

gradle.properties

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,34 @@
88
# The setting is particularly useful for tweaking memory settings.
99
org.gradle.jvmargs=-Xmx1536m
1010
android.useAndroidX=true
11+
org.gradle.daemon=false
1112
# -------Versions-------
1213
kotlinVersion=1.5.31
1314
agpVersion=7.0.4
15+
gradleMavenPublishVersion=0.18.0
1416
# ----------------------
1517
appcompatVersion=1.2.0
1618
coreKtxVersion=1.7.0
1719
constraintlayoutVersion=2.0.4
20+
21+
22+
GROUP=io.github.bitvale
23+
POM_ARTIFACT_ID=switcher
24+
VERSION_NAME=1.1.2
25+
26+
POM_NAME=Switcher
27+
POM_DESCRIPTION=Android switchers
28+
POM_INCEPTION_YEAR=2022
29+
POM_URL=https://github.com/bitvale/Switcher/
30+
31+
POM_LICENSE_NAME=The Apache Software License, Version 2.0
32+
POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
33+
POM_LICENSE_DIST=repo
34+
35+
POM_SCM_URL=https://github.com/bitvale/Switcher/
36+
POM_SCM_CONNECTION=scm:git:git://github.com/bitvale/Switcher.git
37+
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/bitvale/Switcher.git
38+
39+
POM_DEVELOPER_ID=bitvale
40+
POM_DEVELOPER_NAME=Alexander Kolpakov
41+
POM_DEVELOPER_URL=https://github.com/bitvale/

library/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id(GradlePluginId.ANDROID_LIBRARY)
33
id(GradlePluginId.KOTLIN_ANDROID)
44
id(GradlePluginId.COMMON_CONFIG_PLUGIN)
5+
id(GradlePluginId.MAVEN_PUBLISH_PLUGIN)
56
}
67

78
dependencies {

settings.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ pluginManagement {
1616

1717
val agpVersion: String by settings
1818
val kotlinVersion: String by settings
19+
val gradleMavenPublishVersion: String by settings
1920

2021
plugins {
2122
id("com.android.application") version agpVersion
2223
id("com.android.library") version agpVersion
2324

2425
id("org.jetbrains.kotlin.jvm") version kotlinVersion
2526
id("org.jetbrains.kotlin.android") version kotlinVersion
27+
28+
id("com.vanniktech.maven.publish") version gradleMavenPublishVersion
2629
}
2730

2831
resolutionStrategy {
@@ -32,6 +35,11 @@ pluginManagement {
3235
"com.android.library" -> {
3336
useModule("com.android.tools.build:gradle:$agpVersion")
3437
}
38+
"com.vanniktech.maven.publish" -> {
39+
useModule(
40+
"com.vanniktech:gradle-maven-publish-plugin:$gradleMavenPublishVersion"
41+
)
42+
}
3543
}
3644
}
3745
}

0 commit comments

Comments
 (0)