Skip to content

Commit 745ded9

Browse files
author
develNerd
committed
Library
1 parent 782f766 commit 745ded9

File tree

6 files changed

+40
-20
lines changed

6 files changed

+40
-20
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

cs108library4a/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven-publish'
23

34
android {
45
compileSdkVersion 33
@@ -21,6 +22,32 @@ android {
2122
}
2223
}
2324

25+
def getVersionName = { ->
26+
return "1.0.0"
27+
}
28+
29+
def getArtifactId = { ->
30+
return "sled_machine"
31+
}
32+
33+
tasks.register('sourceJar', Jar) {
34+
from android.sourceSets.main.java.srcDirs
35+
classifier "sources"
36+
}
37+
38+
afterEvaluate{
39+
publishing{
40+
publications{
41+
release(MavenPublication){
42+
from components.release
43+
groupId='com.csl.cs108library4a'
44+
artifactId = 'sled_machine'
45+
version = getVersionName()
46+
}
47+
}
48+
}
49+
}
50+
2451

2552
dependencies {
2653
implementation fileTree(include: ['*.jar'], dir: 'libs')

0 commit comments

Comments
 (0)