Skip to content

Commit

Permalink
Publish to sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
bitvale committed Jan 3, 2022
1 parent ab6d238 commit 568ea7a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Just add Switcher view in your layout XML and Switcher library in your project v

```gradle
dependencies {
implementation 'com.bitvale:switcher:1.1.1'
implementation 'io.github.bitvale:switcher:1.1.2'
}
```

Expand Down Expand Up @@ -64,4 +64,4 @@ switcher.setOnCheckedChangeListener { checked ->
LICENCE
-----

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).
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).
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id(GradlePluginId.ANDROID_APPLICATION) apply false
id(GradlePluginId.KOTLIN_ANDROID) apply false
id(GradlePluginId.COMMON_CONFIG_PLUGIN) apply false
id(GradlePluginId.MAVEN_PUBLISH_PLUGIN) apply false
}

allprojects {
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/GradlePluginId.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ object GradlePluginId {
const val ANDROID_LIBRARY = "com.android.library"
const val KOTLIN_ANDROID = "org.jetbrains.kotlin.android"
const val COMMON_CONFIG_PLUGIN = "common-config-plugin"
const val MAVEN_PUBLISH_PLUGIN = "com.vanniktech.maven.publish"
}
24 changes: 24 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,34 @@
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
android.useAndroidX=true
org.gradle.daemon=false
# -------Versions-------
kotlinVersion=1.5.31
agpVersion=7.0.4
gradleMavenPublishVersion=0.18.0
# ----------------------
appcompatVersion=1.2.0
coreKtxVersion=1.7.0
constraintlayoutVersion=2.0.4


GROUP=io.github.bitvale
POM_ARTIFACT_ID=switcher
VERSION_NAME=1.1.2

POM_NAME=Switcher
POM_DESCRIPTION=Android switchers
POM_INCEPTION_YEAR=2022
POM_URL=https://github.com/bitvale/Switcher/

POM_LICENSE_NAME=The Apache Software License, Version 2.0
POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENSE_DIST=repo

POM_SCM_URL=https://github.com/bitvale/Switcher/
POM_SCM_CONNECTION=scm:git:git://github.com/bitvale/Switcher.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/bitvale/Switcher.git

POM_DEVELOPER_ID=bitvale
POM_DEVELOPER_NAME=Alexander Kolpakov
POM_DEVELOPER_URL=https://github.com/bitvale/
1 change: 1 addition & 0 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id(GradlePluginId.ANDROID_LIBRARY)
id(GradlePluginId.KOTLIN_ANDROID)
id(GradlePluginId.COMMON_CONFIG_PLUGIN)
id(GradlePluginId.MAVEN_PUBLISH_PLUGIN)
}

dependencies {
Expand Down
8 changes: 8 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ pluginManagement {

val agpVersion: String by settings
val kotlinVersion: String by settings
val gradleMavenPublishVersion: String by settings

plugins {
id("com.android.application") version agpVersion
id("com.android.library") version agpVersion

id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.android") version kotlinVersion

id("com.vanniktech.maven.publish") version gradleMavenPublishVersion
}

resolutionStrategy {
Expand All @@ -32,6 +35,11 @@ pluginManagement {
"com.android.library" -> {
useModule("com.android.tools.build:gradle:$agpVersion")
}
"com.vanniktech.maven.publish" -> {
useModule(
"com.vanniktech:gradle-maven-publish-plugin:$gradleMavenPublishVersion"
)
}
}
}
}
Expand Down

0 comments on commit 568ea7a

Please sign in to comment.