Skip to content

Commit b5238af

Browse files
committed
提交jitPack 仓库
1 parent 6c71ab6 commit b5238af

4 files changed

Lines changed: 26 additions & 12 deletions

File tree

app/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
/build
2+
.gradle/
3+
.idea/
4+
app/build/
5+
local.properties
6+
*.iml

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ buildscript {
55
google()
66
jcenter()
77
mavenCentral()
8+
maven { url 'https://www.jitpack.io' }
89
}
910
dependencies {
1011
classpath 'com.android.tools.build:gradle:3.6.0'
11-
12+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1213
// NOTE: Do not place your application dependencies here; they belong
1314
// in the individual module build.gradle files
1415
}
@@ -19,6 +20,7 @@ allprojects {
1920
google()
2021
jcenter()
2122
mavenCentral()
23+
maven { url 'https://www.jitpack.io' }
2224
}
2325
}
2426

printlibrary/.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
/build
1+
/build
2+
.gradle/
3+
.idea/
4+
app/build/
5+
local.properties
6+
*.iml

printlibrary/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
plugins {
22
id 'com.android.library'
3+
id 'com.github.dcendents.android-maven'
34
}
5+
group='com.github.iminsoftware'
46

57
android {
68
compileSdkVersion 32
@@ -24,16 +26,16 @@ android {
2426
}
2527

2628
//生成jar包
27-
task makeJar(type: Copy) {
28-
//产生jar包代码来源,其中runtime_library_classes这段路径不同版本的
29-
//androidstudio 路径来源会有不同。
30-
delete 'build/libs/printerLibrary.jar'
31-
from('build/intermediates/runtime_library_classes/debug/') //jar文件来源
32-
into('build/libs/') //最终jar的生成路径
33-
include('classes.jar')
34-
rename('classes.jar', 'printerLibrary.jar') //命名为comlibrary.jar
35-
}
36-
makeJar.dependsOn(build)
29+
// task makeJar(type: Copy) {
30+
// //产生jar包代码来源,其中runtime_library_classes这段路径不同版本的
31+
// //androidstudio 路径来源会有不同。
32+
// delete 'build/libs/printerLibrary.jar'
33+
// from('build/intermediates/runtime_library_classes/debug/') //jar文件来源
34+
// into('build/libs/') //最终jar的生成路径
35+
// include('classes.jar')
36+
// rename('classes.jar', 'printerLibrary.jar') //命名为comlibrary.jar
37+
// }
38+
// makeJar.dependsOn(build)
3739
}
3840

3941
dependencies {

0 commit comments

Comments
 (0)