File tree Expand file tree Collapse file tree 4 files changed +37
-26
lines changed
build-logic/convention/src/main/kotlin Expand file tree Collapse file tree 4 files changed +37
-26
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,13 @@ abstract class GithubCreateReleaseTask : Github() {
74
74
val name = " ${project.name} -v$commitCount "
75
75
76
76
if (repository.getReleaseByTagName(tagName) != null ) {
77
- doLast {
78
- project.logger.warn(" Release $name already exists" )
79
- }
77
+ val logString = " Release $name already exists"
78
+
79
+ project.gradle.addBuildListener(object : BuildAdapter () {
80
+ override fun buildFinished (result : BuildResult ) {
81
+ println (logString)
82
+ }
83
+ })
80
84
return
81
85
}
82
86
Original file line number Diff line number Diff line change @@ -10,11 +10,17 @@ import org.gradle.process.ExecOutput
10
10
private fun Project.getCommitCountExec () = providers.exec {
11
11
executable(" git" )
12
12
args(" rev-list" , " --count" , " HEAD" )
13
- args(projectDir.absolutePath )
14
- args(rootProject.file(" gradle" ).absolutePath )
13
+ args(projectDir)
14
+ args(rootProject.file(" gradle" ))
15
15
args(rootProject.file(" build-logic" ))
16
16
17
- rootProject.projectDir.listFiles { file -> file.isFile && file.extension != " md" }!! .forEach { args(it.absolutePath) }
17
+ args(rootProject.file(" build.gradle.kts" ))
18
+ args(rootProject.file(" settings.gradle.kts" ))
19
+ args(rootProject.file(" gradle.properties" ))
20
+ args(rootProject.file(" proguard-rules.pro" ))
21
+
22
+ args(rootProject.file(" gradlew" ))
23
+ args(rootProject.file(" gradlew.bat" ))
18
24
19
25
extensions.findByType<BaseExtension >()?.let {
20
26
val metadata = rootProject.file(" metadata" ).resolve(it.namespace ? : " -" )
Original file line number Diff line number Diff line change
1
+ include(" :AlwaysAllowChargingFeedback" )
2
+ include(" :AlwaysAllowMultiInstanceSplit" )
3
+ include(" :AnimationScaleMod" )
4
+ include(" :AntiBrightnessChange" )
5
+ include(" :AutomaticAdvancedSettingsExpander" )
6
+ include(" :BetterBluetoothDeviceSort" )
7
+ include(" :BetterVerboseWiFiLogging" )
8
+ include(" :ClassHunter" )
9
+ include(" :CodecMod" )
10
+ include(" :DontResetIfBootedAndConnected" )
11
+ include(" :FreeNotifications" )
12
+ include(" :KeepSplitScreenRatio" )
13
+ include(" :MotionEventMod" )
14
+ include(" :MuteSlf4jWarnings" )
15
+ include(" :OpenWifiOnTop" )
16
+ include(" :PersistentForegroundServiceNotifications" )
17
+ include(" :PreventAudioFocus" )
18
+ include(" :ResetAllNotificationChannels" )
19
+ include(" :RotationControl" )
20
+ include(" :UpsideWifi" )
Original file line number Diff line number Diff line change @@ -44,23 +44,4 @@ include(":logger")
44
44
include(" :reflection" )
45
45
include(" :template" )
46
46
47
- include(" :AlwaysAllowChargingFeedback" )
48
- include(" :AlwaysAllowMultiInstanceSplit" )
49
- include(" :AnimationScaleMod" )
50
- include(" :AntiBrightnessChange" )
51
- include(" :AutomaticAdvancedSettingsExpander" )
52
- include(" :BetterBluetoothDeviceSort" )
53
- include(" :BetterVerboseWiFiLogging" )
54
- include(" :ClassHunter" )
55
- include(" :CodecMod" )
56
- include(" :DontResetIfBootedAndConnected" )
57
- include(" :FreeNotifications" )
58
- include(" :KeepSplitScreenRatio" )
59
- include(" :MotionEventMod" )
60
- include(" :MuteSlf4jWarnings" )
61
- include(" :OpenWifiOnTop" )
62
- include(" :PersistentForegroundServiceNotifications" )
63
- include(" :PreventAudioFocus" )
64
- include(" :ResetAllNotificationChannels" )
65
- include(" :RotationControl" )
66
- include(" :UpsideWifi" )
47
+ apply (from = " modules.gradle.kts" )
You can’t perform that action at this time.
0 commit comments