Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hello-xtc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

// Warn if using localOnly mode
val localOnly: String by project
val localOnly = providers.gradleProperty("localOnly").get()
if (localOnly.toBoolean()) {
logger.warn("WARNING: Will only use Maven Local for XTC plugin/XDK artifacts.")
}
Expand Down Expand Up @@ -37,7 +37,7 @@ xtcRun {
// }

// Print version information
val printVersionInfo by tasks.registering {
val printVersionInfo = tasks.register("printVersionInfo") {
val xtcVersionTask = tasks.named<XtcVersionTask>("xtcVersion")
dependsOn(xtcVersionTask)
val xdkVersion = xtcVersionTask.flatMap { it.xdkVersion }
Expand Down Expand Up @@ -65,7 +65,7 @@ val printVersionInfo by tasks.registering {
* it does not imply the full `build` lifecycle, so `testXtc` still requires `check`, `build`, or an
* explicit `testXtc` invocation. This follows normal Gradle least-surprise lifecycle behavior.
*/
val greet by tasks.registering {
val greet = tasks.register("greet") {
group = "application"
description = "Publish a greeting, directed to the contents of the 'entityToGreet' property. If no such property exists, we will greet 'World'."
dependsOn(printVersionInfo, tasks.runXtc)
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

pluginManagement {
val localOnly: String by settings
val localOnly = providers.gradleProperty("localOnly").get()
repositories {
// Add remote Maven repositories unless localOnly mode
if (!localOnly.toBoolean()) {
Expand All @@ -31,7 +31,7 @@ plugins {

@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
val localOnly: String by settings
val localOnly = providers.gradleProperty("localOnly").get()
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
// Add remote Maven repositories unless localOnly mode
Expand Down
Loading