Skip to content

Commit

Permalink
Gradle: use single-quoted strings where possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDOS committed Aug 31, 2023
1 parent 3039621 commit b36d40b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ plugins {

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

File buildDir = file(".");
File buildDir = file('.');
Properties props = new Properties()
props.load(new FileInputStream(buildDir.getAbsolutePath() + "/src/main/resources/com/neuronrobotics/nrjavaserial/build.properties"))
props.load(new FileInputStream("${buildDir.getAbsolutePath()}/src/main/resources/com/neuronrobotics/nrjavaserial/build.properties"))

group = "com.neuronrobotics"
group = 'com.neuronrobotics'
base.archivesName = props.'app.name'
version = props."app.version"
version = props.'app.version'

sourceSets {
test {
java {
srcDirs = ["test/src"]
srcDirs = ['test/src']
}
}
main {
resources {
srcDirs = ["src/main/resources", "src/main/c/resources"]
includes = ["**/*.so","**/*.dll", "**/*.jnilib","**/*.properties"]
srcDirs = ['src/main/resources', 'src/main/c/resources']
includes = ['**/*.so','**/*.dll', '**/*.jnilib', '**/*.properties']
}
}
}
Expand Down

0 comments on commit b36d40b

Please sign in to comment.