Skip to content

Commit c69c59d

Browse files
author
肖琪(融汇/产品技术中心)
committed
增加jitpack
1 parent 3734dea commit c69c59d

4 files changed

Lines changed: 60 additions & 3 deletions

File tree

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ dependencies {
3737
testImplementation 'junit:junit:4.12'
3838
androidTestImplementation 'com.android.support.test:runner:1.0.2'
3939
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
40-
// implementation 'com.noober.background:core:1.6.5'
41-
implementation 'com.github.JavaNoober:BackgroundLibrary:core:v1.5.7'
42-
// implementation project(':library')
40+
implementation 'com.noober.background:core:1.6.5'
41+
// implementation 'com.github.JavaNoober:BackgroundLibrary:1.6.6'
42+
implementation project(':library')
4343
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4444
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ buildscript {
1010
}
1111
dependencies {
1212
classpath 'com.android.tools.build:gradle:3.3.1'
13+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1314
// classpath 'com.novoda:bintray-release:0.8.1'
1415
// NOTE: Do not place your application dependencies here; they belong
1516
// in the individual module build.gradle files

library/build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apply plugin: 'com.android.library'
22
//apply plugin: 'bintray-release'
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
5+
group='com.noober.background'
36

47
android {
58
compileSdkVersion 29
@@ -47,4 +50,29 @@ dependencies {
4750
//}
4851
repositories {
4952
mavenCentral()
53+
}
54+
55+
task sourcesJar(type: Jar) {
56+
classifier = 'sources'
57+
from android.sourceSets.main.java.sourceFiles
58+
}
59+
60+
task javadoc(type: Javadoc) {
61+
source = android.sourceSets.main.java.sourceFiles
62+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
63+
}
64+
65+
task javadocJar(type: Jar, dependsOn: javadoc) {
66+
classifier = 'javadoc'
67+
from javadoc.destinationDir
68+
}
69+
70+
task classesJar(type: Jar) {
71+
from "$buildDir/intermediates/classes/release"
72+
}
73+
74+
artifacts {
75+
archives classesJar
76+
archives javadocJar
77+
archives sourcesJar
5078
}

libraryx/build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
apply plugin: 'com.android.library'
22
//apply plugin: 'bintray-release'
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
5+
group='com.noober.background'
36

47
android {
58
compileSdkVersion 29
@@ -47,4 +50,29 @@ dependencies {
4750
//}
4851
repositories {
4952
mavenCentral()
53+
}
54+
55+
task sourcesJar(type: Jar) {
56+
classifier = 'sources'
57+
from android.sourceSets.main.java.sourceFiles
58+
}
59+
60+
task javadoc(type: Javadoc) {
61+
source = android.sourceSets.main.java.sourceFiles
62+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
63+
}
64+
65+
task javadocJar(type: Jar, dependsOn: javadoc) {
66+
classifier = 'javadoc'
67+
from javadoc.destinationDir
68+
}
69+
70+
task classesJar(type: Jar) {
71+
from "$buildDir/intermediates/classes/release"
72+
}
73+
74+
artifacts {
75+
archives classesJar
76+
archives javadocJar
77+
archives sourcesJar
5078
}

0 commit comments

Comments
 (0)