Skip to content

Commit 41d8d11

Browse files
committed
build: restore release plugin
1 parent 3f1da14 commit 41d8d11

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

logback-android/build.gradle

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
plugins {
2+
id 'net.researchgate.release' version '3.0.2'
3+
}
14
apply plugin: 'com.android.library'
25

36
android {
@@ -97,10 +100,24 @@ allprojects {
97100
}
98101
}
99102

103+
release {
104+
tagTemplate = 'v_${version}'
105+
preTagCommitMessage = ':cloud: Release'
106+
tagCommitMessage = ':cloud: Release'
107+
newVersionCommitMessage = ':cloud: Bump'
108+
109+
versionPropertyFile = '../gradle.properties'
110+
versionProperties = ['VERSION_NAME']
111+
112+
git {
113+
requireBranch.set('main')
114+
}
115+
}
116+
100117
ext {
101118
PUBLISH_GROUP_ID = GROUP
102119
PUBLISH_VERSION = VERSION_NAME
103120
PUBLISH_ARTIFACT_ID = POM_ARTIFACT_ID
104121
}
105122

106-
apply from: "${rootProject.projectDir}/gradle/publish-module.gradle"
123+
apply from: "${rootProject.projectDir}/gradle/publish-module.gradle"

0 commit comments

Comments
 (0)