-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve documentation on snapshots * Add compatibility table * Remove unused function, `"task" in project.tasks.names` is equivalent and better. * Update changelog
- Loading branch information
1 parent
9b70d7f
commit 8922ae1
Showing
8 changed files
with
139 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
common/src/main/kotlin/net/twisterrob/gradle/dsl/ProjectExtensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
package net.twisterrob.gradle.dsl | ||
|
||
import org.gradle.api.Project | ||
import org.gradle.api.UnknownTaskException | ||
import org.gradle.api.reporting.ReportingExtension | ||
import org.gradle.api.tasks.TaskContainer | ||
import org.gradle.kotlin.dsl.getByName | ||
|
||
val Project.reporting: ReportingExtension | ||
get() = this.extensions.getByName<ReportingExtension>(ReportingExtension.NAME) | ||
|
||
operator fun TaskContainer.contains(name: String): Boolean = | ||
try { | ||
this.named(name) | ||
true | ||
} catch (ex: UnknownTaskException) { | ||
false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters