Skip to content

Commit 88a99f6

Browse files
committed
kapt useBuildCache
Signed-off-by: Gopal S Akshintala <[email protected]>
1 parent d4d6a62 commit 88a99f6

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

.idea/kotlinc.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildSrc/src/main/kotlin/revoman.kt-conventions.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ val libs: VersionCatalog = extensions.getByType<VersionCatalogsExtension>().name
1616

1717
dependencies { testImplementation(libs.kotestBundle) }
1818

19+
kapt {
20+
useBuildCache = true
21+
}
22+
1923
tasks {
2024
withType<KotlinCompile> {
2125
kotlinOptions {

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ org.gradle.jvmargs=-XX:+UseParallelGC
1313

1414
moshix.generateProguardRules=false
1515

16+
kapt.classloaders.cache.size=1
1617
kapt.include.compile.classpath=false
18+
kapt.incremental.apt=false
1719
kapt.use.k2=true
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* ************************************************************************************************
3+
* Copyright (c) 2023, Salesforce, Inc. All rights reserved. SPDX-License-Identifier: Apache License
4+
* Version 2.0 For full license text, see the LICENSE file in the repo root or
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
* ************************************************************************************************
7+
*/
8+
package com.salesforce.revoman.integration.restfulapidev
9+
10+
import com.google.common.truth.Truth.assertThat
11+
import com.salesforce.revoman.ReVoman
12+
import com.salesforce.revoman.input.config.Kick
13+
import org.junit.jupiter.api.Test
14+
15+
class RestfulAPIDevKtTest {
16+
private val PM_COLLECTION_PATH =
17+
"pm-templates/restfulapidev/restful-api.dev.postman_collection.json"
18+
19+
private val PM_ENVIRONMENT_PATH =
20+
"pm-templates/restfulapidev/restful-api.dev.postman_environment.json"
21+
22+
@Test
23+
fun `restful-api dev`() {
24+
val rundown =
25+
ReVoman.revUp( // <1>
26+
Kick.configure()
27+
.templatePath(PM_COLLECTION_PATH) // <2>
28+
.environmentPath(PM_ENVIRONMENT_PATH) // <3>
29+
.nodeModulesRelativePath("js")
30+
.off()
31+
)
32+
assertThat(rundown.stepReports).hasSize(3)
33+
}
34+
}

0 commit comments

Comments
 (0)