Skip to content

Commit

Permalink
Use camel case for generated directory name (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 authored Apr 11, 2024
1 parent 03dd1d2 commit 63a49fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public void apply(Project project) {
project.getPluginManager().apply(JavaLibraryPlugin.class);

Provider<Directory> generatedJavaDir =
project.getLayout().getBuildDirectory().dir("generated/sources/metric-schema/java/main");
project.getLayout().getBuildDirectory().dir("generated/sources/metricSchema/java/main");
Provider<Directory> generatedResourcesDir =
project.getLayout().getBuildDirectory().dir("generated/sources/metric-schema/resources/main");
project.getLayout().getBuildDirectory().dir("generated/sources/metricSchema/resources/main");
Provider<Directory> metricSchemaDir =
project.getLayout().getBuildDirectory().dir("metricSchema");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class MetricSchemaPluginIntegrationSpec extends IntegrationSpec {
then:
def result = runTasksSuccessfully('classes')
result.wasExecuted(':generateMetrics')
fileExists("build/generated/sources/metric-schema/java/main/com/palantir/test/ServerMetrics.java")
fileExists("build/generated/sources/metricSchema/java/main/com/palantir/test/ServerMetrics.java")
}

def 'build cache works'() {
Expand All @@ -110,7 +110,7 @@ class MetricSchemaPluginIntegrationSpec extends IntegrationSpec {
file('src/main/metrics/metrics.yml') << METRICS

runTasksSuccessfully('generateMetrics')
fileExists("build/generated/sources/metric-schema/java/main/com/palantir/test/ServerMetrics.java")
fileExists("build/generated/sources/metricSchema/java/main/com/palantir/test/ServerMetrics.java")

// we want cache hits no matter where the project is checked out on disk
File originalProjectDir = getProjectDir()
Expand All @@ -119,7 +119,7 @@ class MetricSchemaPluginIntegrationSpec extends IntegrationSpec {
FileUtils.copyDirectory(originalProjectDir, newProjectDir)
setProjectDir(newProjectDir)
FileUtils.deleteDirectory(originalProjectDir)
FileUtils.deleteDirectory(file("build/generated/sources/metric-schema"))
FileUtils.deleteDirectory(file("build/generated/sources/metricSchema"))

then:
ExecutionResult result = runTasksSuccessfully('generateMetrics')
Expand Down

0 comments on commit 63a49fc

Please sign in to comment.