Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LicensePlugin (0.14 sec)

  1. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr6_writing_tasks.adoc

    [.multi-language-sample]
    =====
    .gradle/license-plugin/plugin/src/main/kotlin/license/LicensePlugin.kt
    [source,kotlin]
    ----
    import org.gradle.api.Project
    import org.gradle.api.Plugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr5_build_scripts.adoc

    Build init creates a "hello world" plugin when generating a Gradle plugin project.
    Inside `LicensePlugin` is simply a task that prints a greeting to the console, the task name is `greeting`:
    
    [.multi-language-sample]
    =====
    .gradle/license-plugin/plugin/src/main/kotlin/license/LicensePlugin.kt
    [source,kotlin]
    ----
    class LicensePlugin: Plugin<Project> {
        override fun apply(project: Project) {                          // Apply plugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr7_writing_plugins.adoc

    == Step 1. Develop the Plugin
    
    Let's tie our custom `LicenseTask` to our plugin.
    
    Update the `LicensePlugin` with the code for the `Plugin` below (don't change anything else in the file):
    
    [.multi-language-sample]
    =====
    .gradle/license-plugin/plugin/src/main/kotlin/license/LicensePlugin.kt
    [source,kotlin]
    ----
    class LicensePlugin: Plugin<Project> {
        override fun apply(project: Project) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr3_multi_project_builds.adoc

    │            │   │   └── groovy
    │            │   │       └── license
    │            │   │           └── LicensePlugin.groovy
    │            │   └── test
    │            │       └── ...
    │            └── build.gradle
    │
    └── settings.gradle
    ----
    =====
    
    Take the time to look at the `LicensePlugin.kt` or `LicensePlugin.groovy` code and the `gradle/license-plugin/settings.gradle(.kts)` file.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top