-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark StoneTask as cacheable and resolve some dbapp integration issues #515
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,12 @@ ext { | |
} | ||
|
||
tasks.register('versionWriterTask') { | ||
def versionName = project.property("VERSION_NAME") | ||
String versionName | ||
if (project.hasProperty("VERSION_NAME")) { | ||
versionName = "${project.property("VERSION_NAME")}" | ||
} else { | ||
versionName = project.version | ||
} | ||
Comment on lines
+31
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This project will use |
||
it.inputs.property("versionName", versionName) | ||
|
||
def generatedDir = project.layout.buildDirectory.dir("generated/version") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,13 @@ import org.gradle.api.file.DirectoryProperty | |
import org.gradle.api.file.RegularFileProperty | ||
import org.gradle.api.provider.ListProperty | ||
import org.gradle.api.provider.Property | ||
import org.gradle.api.tasks.Input | ||
import org.gradle.api.tasks.InputDirectory | ||
import org.gradle.api.tasks.InputFile | ||
import org.gradle.api.tasks.OutputDirectory | ||
import org.gradle.api.tasks.TaskAction | ||
import org.gradle.api.tasks.Optional | ||
import org.gradle.api.tasks.* | ||
import org.gradle.process.ExecOperations | ||
import java.io.File | ||
import java.io.FileOutputStream | ||
import javax.inject.Inject | ||
|
||
@CacheableTask | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With help of @devPalacio - marks this Task as cacheable which should increase build speeds |
||
abstract class StoneTask : DefaultTask() { | ||
|
||
@get:Inject | ||
|
@@ -26,16 +22,20 @@ abstract class StoneTask : DefaultTask() { | |
abstract val stoneConfigs: ListProperty<StoneConfig> | ||
|
||
@get:InputDirectory | ||
@get:PathSensitive(PathSensitivity.RELATIVE) | ||
abstract val generatorDir: DirectoryProperty | ||
|
||
@get:InputDirectory | ||
@get:PathSensitive(PathSensitivity.RELATIVE) | ||
abstract val specDir: DirectoryProperty | ||
|
||
@get:Optional | ||
@get:InputFile | ||
@get:PathSensitive(PathSensitivity.RELATIVE) | ||
abstract val routeWhitelistFilter: RegularFileProperty | ||
|
||
@get:InputDirectory | ||
@get:PathSensitive(PathSensitivity.RELATIVE) | ||
abstract val stoneDir: DirectoryProperty | ||
|
||
@get:Input | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbapp already has these on classpath so alias fails because each include a version and plugin block cannot handle this.