File tree 2 files changed +31
-2
lines changed
2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,6 @@ repositories {
50
50
51
51
``` groovy
52
52
dependencies {
53
- compile "ch.poole:OpeningHoursFragment:0.13.3 "
53
+ compile "ch.poole:OpeningHoursFragment:0.13.4 "
54
54
}
55
55
```
Original file line number Diff line number Diff line change 1
1
// Project level build file starts here
2
+
3
+ buildscript {
4
+ repositories {
5
+ maven {
6
+ url " https://plugins.gradle.org/m2/"
7
+ }
8
+ }
9
+ dependencies {
10
+ classpath " com.github.breadmoirai:github-release:2.5.2"
11
+ }
12
+ }
13
+
2
14
plugins {
3
15
id " org.sonarqube" version " 3.1"
4
16
}
@@ -8,8 +20,9 @@ apply plugin: 'com.android.library'
8
20
apply plugin : ' maven-publish'
9
21
apply plugin : ' signing'
10
22
apply plugin : " jacoco"
23
+ apply plugin : " com.github.breadmoirai.github-release"
11
24
12
- version = ' 0.13.3 '
25
+ version = ' 0.13.4 '
13
26
def libName = " OpeningHoursFragment"
14
27
15
28
task updateTranslations (type : Exec ) {
@@ -88,6 +101,7 @@ android {
88
101
ext {
89
102
androidxVersion = " 1.0.0"
90
103
adb = android. getAdbExe(). toString()
104
+ githubToken = System . getenv(' GITHUB_TOKEN' )
91
105
}
92
106
93
107
dependencies {
@@ -300,3 +314,18 @@ publishing {
300
314
signing {
301
315
sign publishing. publications. openinghoursfragment
302
316
}
317
+
318
+ githubRelease {
319
+ token project. ext. githubToken == null ? " " : project. ext. githubToken
320
+ repo = " OpeningHoursFragment"
321
+ owner = " simonpoole"
322
+ tagName = project. version
323
+ releaseName = project. version
324
+ targetCommitish = " master"
325
+ generateReleaseNotes = true
326
+ overwrite = true
327
+ }
328
+
329
+ afterEvaluate {
330
+ publishOpeninghoursfragmentPublicationToSonatypeRepository. dependsOn tasks. githubRelease
331
+ }
You can’t perform that action at this time.
0 commit comments