Single quotes where possible.

This commit is contained in:
Florian Nücke
2021-07-19 21:19:28 +02:00
parent ea8a001032
commit 4c201e31eb

View File

@@ -25,15 +25,15 @@ def getGitRef() {
}
return stdout.toString().trim()
} catch (final Throwable ignored) {
return "unknown"
return 'unknown'
}
}
final def semver = "${version_major}.${version_minor}.${version_patch}"
String build_number = System.getenv("PROMOTED_NUMBER")
String build_number = System.getenv('PROMOTED_NUMBER')
if (build_number == null)
build_number = System.getenv("BUILD_NUMBER")
build_number = System.getenv('BUILD_NUMBER')
if (build_number == null)
build_number = getGitRef()
@@ -52,14 +52,14 @@ repositories {
dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly 'org.jetbrains:annotations:16.0.2'
compileOnly "org.jetbrains:annotations:16.0.2"
implementation 'li.cil.sedna:sedna-mc:MC${minecraft_version}-Forge-0.0.1+270'
implementation "li.cil.sedna:sedna-mc:MC${minecraft_version}-Forge-0.0.1+270"
// These three will be provided by sedna-mc in standalone.
implementation 'li.cil.ceres:ceres:0.0.2+20'
implementation 'li.cil.sedna:sedna:1.0.0+100'
implementation 'li.cil.sedna:sedna-buildroot:0.0.1+15'
implementation "li.cil.ceres:ceres:0.0.2+20"
implementation "li.cil.sedna:sedna:1.0.0+100"
implementation "li.cil.sedna:sedna-buildroot:0.0.1+15"
compileOnly fg.deobf("li.cil.markdown_manual:MarkdownManual:MC${minecraft_version}-Forge-${manual_version}:api")
runtimeOnly fg.deobf("li.cil.markdown_manual:MarkdownManual:MC${minecraft_version}-Forge-${manual_version}")
@@ -67,18 +67,18 @@ dependencies {
compileOnly fg.deobf("mezz.jei:jei-${jei_minecraft_version}:${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei-${jei_minecraft_version}:${jei_version}")
testImplementation 'li.cil.ceres:ceres:0.0.2+20'
testImplementation 'li.cil.sedna:sedna:1.0.0+100'
testImplementation "li.cil.ceres:ceres:0.0.2+20"
testImplementation "li.cil.sedna:sedna:1.0.0+100"
testImplementation "org.mockito:mockito-core:2.+"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.1"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.1"
}
task packageScripts(type: Zip) {
archiveFileName = "scripts.zip"
archiveFileName = 'scripts.zip'
destinationDirectory = file("$buildDir/resources/main/data/oc2/file_systems")
from "src/main/scripts"
from 'src/main/scripts'
}
processResources {
@@ -147,9 +147,9 @@ minecraft {
}
task copyGeneratedResources(type: Copy) {
from "src/generated"
into "src/main"
exclude "resources/.cache"
from 'src/generated'
into 'src/main'
exclude 'resources/.cache'
}
jar {
@@ -157,13 +157,13 @@ jar {
manifest {
attributes([
"Specification-Title" : "oc2",
"Specification-Vendor" : "Sangar",
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : "${semver}",
"Implementation-Vendor" : "Sangar",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
'Specification-Title' : 'oc2',
'Specification-Vendor' : 'Sangar',
'Specification-Version' : '1',
'Implementation-Title' : project.name,
'Implementation-Version' : "${semver}",
'Implementation-Vendor' : 'Sangar',
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
@@ -189,7 +189,7 @@ publishing {
}
repositories {
maven {
url System.getenv("MAVEN_PATH")
url System.getenv('MAVEN_PATH')
}
}
}