Skip to content

Commit 2074618

Browse files
committed
Add maven-publish plugin
1 parent c209eb6 commit 2074618

File tree

5 files changed

+77
-3
lines changed

5 files changed

+77
-3
lines changed

adal/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

7+
group = 'com.mcal'
8+
version = project.artifactVersion
9+
610
android {
711
compileSdk 33
812

@@ -49,4 +53,18 @@ dependencies {
4953

5054
implementation misc.gson
5155
implementation misc.annotations
56+
}
57+
58+
afterEvaluate {
59+
publishing {
60+
publications {
61+
// Creates a Maven publication called "release".
62+
release(MavenPublication) {
63+
from components.release
64+
groupId = 'com.mcal'
65+
artifactId = 'adal'
66+
version = project.artifactVersion
67+
}
68+
}
69+
}
5270
}

fmod/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

7+
group = 'com.mcal'
8+
version = project.artifactVersion
9+
610
android {
711
compileSdk 33
812

@@ -27,3 +31,17 @@ dependencies {
2731
implementation misc.annotations
2832
implementation misc.annotations.android
2933
}
34+
35+
afterEvaluate {
36+
publishing {
37+
publications {
38+
// Creates a Maven publication called "release".
39+
release(MavenPublication) {
40+
from components.release
41+
groupId = 'com.mcal'
42+
artifactId = 'fmod'
43+
version = project.artifactVersion
44+
}
45+
}
46+
}
47+
}

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ org.gradle.workers.max=8
1010
org.gradle.caching=true
1111

1212
org.gradle.parallel=true
13-
org.gradle.daemon=true
13+
org.gradle.daemon=true
14+
15+
artifactVersion="1.19.71.02"

minecraft/build.gradle

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

7+
group = 'com.mcal'
8+
version = project.artifactVersion
9+
610
android {
711
compileSdk 33
812

@@ -47,4 +51,18 @@ dependencies {
4751
implementation misc.httpmime
4852

4953
runtimeOnly google.services
50-
}
54+
}
55+
56+
afterEvaluate {
57+
publishing {
58+
publications {
59+
// Creates a Maven publication called "release".
60+
release(MavenPublication) {
61+
from components.release
62+
groupId = 'com.mcal'
63+
artifactId = 'minecraft'
64+
version = project.artifactVersion
65+
}
66+
}
67+
}
68+
}

xbox/build.gradle

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

7+
group = 'com.mcal'
8+
version = project.artifactVersion
9+
610
android {
711
compileSdk 33
812

@@ -56,4 +60,18 @@ dependencies {
5660
implementation jetpack.mvvm.extensions
5761

5862
runtimeOnly google.services
59-
}
63+
}
64+
65+
afterEvaluate {
66+
publishing {
67+
publications {
68+
// Creates a Maven publication called "release".
69+
release(MavenPublication) {
70+
from components.release
71+
groupId = 'com.mcal'
72+
artifactId = 'xbox'
73+
version = project.artifactVersion
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)