diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 61a9130..b589d56 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 26821fb..3efdf15 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -5,9 +5,10 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index 58918f5..403dd45 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 379ec6d..4a26202 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,9 +2,15 @@ - - - + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index e77a022..b0fbdd0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,7 +7,7 @@ android { minSdkVersion 19 targetSdkVersion 33 versionCode 38 - versionName "2.8.22" + versionName "2.8.23" } } diff --git a/cs108library4a/build.gradle b/cs108library4a/build.gradle index 4fb349d..8d9e6ca 100644 --- a/cs108library4a/build.gradle +++ b/cs108library4a/build.gradle @@ -1,4 +1,5 @@ apply plugin: 'com.android.library' +apply plugin: 'maven-publish' android { compileSdkVersion 33 @@ -19,6 +20,39 @@ android { minifyEnabled false } } + lintOptions { + abortOnError false + absolutePaths false + } +} + +def getVersionName = { -> + return "2.8.23" +} + +def getArtifactId = { -> + return "sled_machine" +} + + + +task sourceJar(type: Jar) { + from android.sourceSets.main.java.srcDirs + classifier "sources" +} + +afterEvaluate{ + publishing{ + publications{ + release(MavenPublication){ + from components.release + groupId='com.csl.cs108library4a' + artifactId = getArtifactId() + version = getVersionName() + artifact(sourceJar) + } + } + } }