Skip to content

Commit b5c1d26

Browse files
committed
add plugin to install to local maven
1 parent 5edb47e commit b5c1d26

4 files changed

Lines changed: 26 additions & 6 deletions

File tree

build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33

44
buildscript {
5-
apply from: "${rootDir.absolutePath}/ext.gradle"
5+
// apply from: "${rootDir.absolutePath}/ext.gradle"
66
repositories {
77
google()
88
jcenter()
99
mavenCentral()
1010
}
1111
dependencies {
1212
classpath "com.android.tools.build:gradle:$buildToolGradleVersion"
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
14-
classpath "com.squareup.sqldelight:gradle-plugin:$sqldelightVersion"
1513
}
1614
}
1715

gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
buildToolGradleVersion = 3.3.0
66
kotlinVersion = 1.3.21
7+
androidMavenGradlePluginVersion = 2.1
78
supportVersion = 28.0.0
89
okHttpVersion = 3.14.0
910
sqldelightVersion = 1.1.1
10-
androidXVersion = 1.0.0
11+
androidXVersion = 1.0.0
12+
13+
uploadManagerVersionName = 0.9

lib/build.gradle

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
apply plugin: 'com.android.library'
66
apply plugin: 'kotlin-android'
77
apply plugin: 'com.squareup.sqldelight'
8+
apply plugin: 'com.github.dcendents.android-maven'
9+
10+
group = 'me.ctknight.uploadmanager'
11+
version = "$uploadManagerVersionName"
812

913
android {
1014
compileSdkVersion 28
@@ -14,7 +18,7 @@ android {
1418
minSdkVersion 21
1519
targetSdkVersion 28
1620
versionCode 1
17-
versionName "1.0"
21+
versionName "$uploadManagerVersionName"
1822
}
1923
buildTypes {
2024
release {
@@ -28,17 +32,31 @@ android {
2832
}
2933
}
3034

35+
buildscript {
36+
// apply from: "${rootDir.absolutePath}/ext.gradle"
37+
repositories {
38+
google()
39+
jcenter()
40+
mavenCentral()
41+
}
42+
dependencies {
43+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
44+
classpath "com.squareup.sqldelight:gradle-plugin:$sqldelightVersion"
45+
classpath "com.github.dcendents:android-maven-gradle-plugin:$androidMavenGradlePluginVersion"
46+
}
47+
}
3148

3249
dependencies {
3350
implementation fileTree(include: ['*.jar'], dir: 'libs')
3451
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlinVersion}"
3552
implementation "androidx.core:core-ktx:${androidXVersion}"
36-
implementation "com.squareup.okhttp3:okhttp:${okHttpVersion}"
53+
api "com.squareup.okhttp3:okhttp:${okHttpVersion}"
3754
api "com.squareup.sqldelight:runtime:${sqldelightVersion}"
3855
implementation "com.squareup.sqldelight:android-driver:${sqldelightVersion}"
3956
}
4057

4158
sqldelight {
4259
UploadDatabase {
60+
// schemaOutputDirectory = file("db")
4361
}
4462
}

lib/settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'UploadManager'

0 commit comments

Comments
 (0)