Add config for 2027
This commit is contained in:
@@ -37,6 +37,26 @@ dependencies {
|
||||
testImplementation 'org.testng:testng:7.10.2'
|
||||
}
|
||||
|
||||
def envFile = file('.env')
|
||||
if (envFile.exists()) {
|
||||
def envVars = [:]
|
||||
envFile.readLines().each { line ->
|
||||
def trimmed = line.trim()
|
||||
if (trimmed && !trimmed.startsWith('#')) {
|
||||
def parts = trimmed.split('=', 2)
|
||||
if (parts.size() == 2) {
|
||||
def key = parts[0].trim()
|
||||
def value = parts[1].trim()
|
||||
if (value.startsWith('"') && value.endsWith('"')) {
|
||||
value = value.substring(1, value.length() - 1)
|
||||
}
|
||||
envVars[key] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
test { environment envVars }
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes(
|
||||
|
||||
Reference in New Issue
Block a user