Skip to content

Commit 24a9725

Browse files
committed
Tweak deployment of release artifacts some more
1 parent b8817b2 commit 24a9725

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ buildscript {
77
maven { url "https://jitpack.io" }
88
}
99
dependencies {
10-
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$BINTRAY_PLUGIN_VERSION"
11-
classpath "com.github.ben-manes:gradle-versions-plugin:$VERSIONS_PLUGIN_VERSION"
10+
// Miscellaneous
1211
classpath "com.android.tools.build:gradle:$ANDROID_PLUGIN_VERSION"
1312
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
13+
classpath "com.github.ben-manes:gradle-versions-plugin:$VERSIONS_PLUGIN_VERSION"
1414
classpath "org.junit.platform:junit-platform-gradle-plugin:$JUNIT_PLATFORM_VERSION"
15+
16+
// Deployment: Snapshots
1517
classpath "digital.wup:android-maven-publish:$ANDROID_MAVEN_PLUGIN_VERSION"
18+
19+
// Deployment: Releases
20+
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$BINTRAY_PLUGIN_VERSION"
21+
classpath "com.github.dcendents:android-maven-gradle-plugin:$DCENDENTS_MAVEN_PLUGIN_VERSION"
1622
}
1723
}
1824

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ BINTRAY_PLUGIN_VERSION = 1.8.0
3737
SHADOW_PLUGIN_VERSION = 2.0.1
3838
VERSIONS_PLUGIN_VERSION = 0.17.0
3939
ANDROID_MAVEN_PLUGIN_VERSION = 3.3.0
40+
DCENDENTS_MAVEN_PLUGIN_VERSION = 2.0
4041

4142
# Dependency versions (languages)
4243
GROOVY_VERSION = 3.0.0-alpha-1

gradle/deployment.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,14 @@ if (!["java", "android"].contains(targetPlatform)) {
6565
apply plugin: "com.jfrog.bintray"
6666

6767
if (targetPlatform == "java") {
68+
// Releases
69+
apply plugin: "maven"
70+
// Snapshots
6871
apply plugin: "maven-publish"
6972
} else if (targetPlatform == "android") {
73+
// Releases
74+
apply plugin: "com.github.dcendents.android-maven"
75+
// Snapshots
7076
apply plugin: "digital.wup.android-maven-publish"
7177
}
7278

0 commit comments

Comments
 (0)