apply plugin: 'com.android.library' apply plugin: 'maven-publish' android { compileSdkVersion 32 buildToolsVersion "32.0.0" defaultConfig { minSdkVersion 19 targetSdkVersion 32 versionCode 121000 versionName "1.2100.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles 'consumer-rules.pro' } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } afterEvaluate { publishing { publications { // Creates a Maven publication called "release". mavenPublish(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.hgsoft.app' artifactId = 'debuglogShow' version = '1.2100.1' } } repositories { maven { credentials { username 'yinxueqin' password 'hgits1024' } url = 'https://nexus.hgits.cn/nexus/repository/hgsoft/' } } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) compileOnly 'com.google.android.material:material:1.6.1' compileOnly 'androidx.appcompat:appcompat:1.4.2' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' }