diff --git a/build.gradle b/build.gradle index 65764cb..d42d373 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.3.2' + classpath 'com.android.tools.build:gradle:4.2.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9dc6ba4..0310a9c 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip diff --git a/myview/build.gradle b/myview/build.gradle index a28bbd9..6cc1b5a 100644 --- a/myview/build.gradle +++ b/myview/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android' +apply plugin: 'maven-publish' android { compileSdkVersion 28 @@ -63,3 +64,20 @@ artifacts { repositories { mavenCentral() } + +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + // Applies the component for the release build variant. + from components.release + +// // You can then customize attributes of the publication as shown below. +// groupId = 'com.github.wzgl5533' +// artifactId = 'CustomViewInstruction' +// version = '1.0.0' + } + } + } +}