Skip to content

Commit

Permalink
Artifact publishing added
Browse files Browse the repository at this point in the history
  • Loading branch information
anoop44 committed Mar 5, 2020
1 parent 4272e01 commit 4d92173
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
17 changes: 15 additions & 2 deletions 3dview/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import com.novoda.gradle.release.PublishExtension

plugins {
id("com.android.library")
kotlin("android")
id("com.novoda.bintray-release")
}


android {
compileSdkVersion(29)

defaultConfig {
minSdkVersion(14)
targetSdkVersion(29)
versionCode = 1
versionName = "1.0"
versionCode = rootProject.extra["versionCode"] as Int
versionName = rootProject.extra["versionName"] as String
}

buildTypes {
Expand All @@ -27,4 +31,13 @@ android {

dependencies {
implementation(kotlin("stdlib-jdk7", rootProject.extra["kotlinVersion"] as String ))
}

configure<PublishExtension> {
userOrg = "anoop44"
groupId = "ss.anoop"
artifactId = "3dview"
publishVersion = rootProject.extra["versionName"] as String
desc = "A simple ViewGroup that gives any view a 3d appearance"
website = "https://github.com/anoop44/3dview"
}
11 changes: 9 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
buildscript {
var kotlinVersion:String by extra
kotlinVersion = "1.3.61"

var versionName: String by extra
versionName = "1.0.0"

var versionCode: Int by extra
versionCode = 100

repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.0-alpha01")
classpath("com.android.tools.build:gradle:3.5.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")

classpath("com.novoda:bintray-release:0.9.2")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 comments on commit 4d92173

Please sign in to comment.