Skip to content

Commit 916402e

Browse files
committed
修复
1 parent 520bfb4 commit 916402e

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
jcenter()
1515
}
1616
dependencies {
17-
classpath 'com.android.tools.build:gradle:3.3.2'
17+
classpath 'com.android.tools.build:gradle:4.2.2'
1818
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1919

2020
// NOTE: Do not place your application dependencies here; they belong

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

myview/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android-extensions'
33
apply plugin: 'kotlin-android'
4+
apply plugin: 'maven-publish'
45

56
android {
67
compileSdkVersion 28
@@ -63,3 +64,20 @@ artifacts {
6364
repositories {
6465
mavenCentral()
6566
}
67+
68+
afterEvaluate {
69+
publishing {
70+
publications {
71+
// Creates a Maven publication called "release".
72+
release(MavenPublication) {
73+
// Applies the component for the release build variant.
74+
from components.release
75+
76+
// // You can then customize attributes of the publication as shown below.
77+
// groupId = 'com.github.wzgl5533'
78+
// artifactId = 'CustomViewInstruction'
79+
// version = '1.0.0'
80+
}
81+
}
82+
}
83+
}

0 commit comments

Comments
 (0)