File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/build
2+ .gradle /
3+ .idea /
4+ app /build /
5+ local.properties
6+ * .iml
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- /build
1+ /build
2+ .gradle /
3+ .idea /
4+ app /build /
5+ local.properties
6+ * .iml
Original file line number Diff line number Diff line change 11plugins {
22 id ' com.android.library'
3+ id ' com.github.dcendents.android-maven'
34}
5+ group= ' com.github.iminsoftware'
46
57android {
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
3941dependencies {
You can’t perform that action at this time.
0 commit comments