Skip to content

Commit a86147d

Browse files
committedJun 4, 2021
chore: Add missing Gradle UP-TO-DATE check annotations to support Gradle 7
1 parent e3b72c5 commit a86147d

5 files changed

+27
-1
lines changed
 

‎src/main/groovy/SauceConnectDownloadTask.groovy

+6
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ import java.io.File
55
import java.security.MessageDigest
66
import org.gradle.api.DefaultTask
77
import org.gradle.api.Project
8+
import org.gradle.api.tasks.Internal
89
import org.gradle.api.tasks.TaskAction
910
import org.gradle.internal.os.OperatingSystem
1011
import org.gradle.nativeplatform.platform.Architecture
1112

1213
class SauceConnectDownloadTask extends DefaultTask implements SauceConnectHelper{
1314

15+
@Internal
1416
int KB = 1024
17+
@Internal
1518
int MB = 1024*KB
19+
@Internal
1620
def artifactName
1721

22+
23+
@Internal
1824
Map getSauceVersionInformation() {
1925
def sauceData
2026
try {
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import org.gradle.api.NamedDomainObjectContainer
2+
import org.gradle.api.tasks.Internal
3+
24

35
class SauceConnectExtension {
6+
@Internal
47
String username = "$System.env.SAUCE_USERNAME"
8+
@Internal
59
String key = "$System.env.SAUCE_ACCESS_KEY"
10+
@Internal
611
String options = ""
712
}

‎src/main/groovy/SauceConnectHelper.groovy

+2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ package com.saucelabs
22

33
import org.gradle.internal.os.OperatingSystem
44
import org.gradle.nativeplatform.platform.Architecture
5+
import org.gradle.api.tasks.Internal
56

67
trait SauceConnectHelper {
8+
@Internal
79
String getOSType() {
810
String osType
911
String arch = System.getProperty("os.arch")

‎src/main/groovy/StartSauceConnectTask.groovy

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,26 @@ package com.saucelabs
22

33
import java.io.File
44
import org.gradle.api.DefaultTask
5+
import org.gradle.api.tasks.Internal
56
import org.gradle.api.tasks.TaskAction
67
import org.gradle.api.tasks.Input
78

89

910
class StartSauceConnectTask extends DefaultTask implements SauceConnectHelper {
11+
@Internal
1012
String command
13+
@Internal
1114
String ready = "Sauce Connect is up, you may start your tests."
15+
@Internal
1216
String directory = "$project.buildDir"
13-
17+
@Internal
1418
String username
19+
@Internal
1520
String key
21+
@Internal
1622
String options
1723

24+
@Internal
1825
def getSauceCommand() {
1926
if(getOSType() == "win32") {
2027
return directory + "\\sc\\bin\\sc.exe " + "/u " + username + " /k " + key + " /d " + directory + "\\sc\\bin\\sc.pid " + options

‎src/main/groovy/StopSauceConnectTask.groovy

+6
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@ package com.saucelabs
22

33
import java.io.File
44
import org.gradle.api.DefaultTask
5+
import org.gradle.api.tasks.Internal
56
import org.gradle.api.tasks.TaskAction
67
import org.gradle.internal.os.OperatingSystem
78
import org.gradle.nativeplatform.platform.Architecture
89

910

1011
class StopSauceConnectTask extends DefaultTask implements SauceConnectHelper {
1112

13+
@Internal
1214
String username = "$System.env.SAUCE_USERNAME"
15+
@Internal
1316
String key = "$System.env.SAUCE_ACCESS_KEY"
17+
@Internal
1418
String directory = "$project.buildDir"
1519

20+
@Internal
1621
String getPIDNumber() {
1722
String pidFilePath = ""
1823
if(getOSType() == "win32") {
@@ -24,6 +29,7 @@ class StopSauceConnectTask extends DefaultTask implements SauceConnectHelper {
2429
return pidFile.readLines().get(0)
2530
}
2631

32+
@Internal
2733
String getSauceCommand() {
2834
if (getOSType() == "win32") {
2935
return "Taskkill /PID " + getPIDNumber() + " /F"

0 commit comments

Comments
 (0)