diff --git a/PrintWrapper/build.gradle b/PrintWrapper/build.gradle index 137c35e..5e64fa0 100644 --- a/PrintWrapper/build.gradle +++ b/PrintWrapper/build.gradle @@ -4,12 +4,6 @@ plugins { id 'com.android.library' } -ext { - PUBLISH_GROUP_ID = 'com.zebra.printwrapper' - PUBLISH_ARTIFACT_ID = 'PrintWrapper' - PUBLISH_VERSION = '1.11' -} - android { namespace 'com.zebra.printwrapper' @@ -20,7 +14,7 @@ android { minSdkVersion 29 targetSdkVersion 34 versionCode 12 - versionName "1.11" + versionName "1.12" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" @@ -77,6 +71,19 @@ dependencies { } +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + groupId = 'com.zebra.printwrapper' + artifactId = 'printwrapper' + version = '1.12' + } + } + } +} + def jarName = 'PrintWrapper.jar' task clearJarRelease(type: Delete) { diff --git a/build.gradle b/build.gradle index 21e1608..ab877df 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { plugins { id 'com.android.application' version '7.2.1' apply false id 'com.android.library' version '7.2.1' apply false - + id 'maven-publish' } task clean(type: Delete) {