aboutsummaryrefslogtreecommitdiffstats
path: root/qtjenny-gradle-plugin/build.gradle.kts
blob: 2b855e4b8f5e82a17a690397f1059a835011f11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (C) 2025 The Qt Company Ltd.
 * SPDX-License-Identifier: Apache-2.0
 */

plugins {
    `kotlin-dsl`
}

group = "org.qtproject.qt.qtjenny.plugin"
version = "1.1.0"

gradlePlugin {
    plugins {
        register("QtGenerator") {
            id = "org.qtproject.qt.qtjennyPlugin"
            implementationClass = "org.qtproject.qt.qtjenny.gradle.QtJennyPlugin"
        }
    }
}

repositories {
    gradlePluginPortal()
    google()
    mavenCentral()
    mavenLocal()
}

dependencies {
    // To use this Gradle plugin, you need to include the Jenny compiler.
    // There are two ways to do this:

    // 1- Using the Maven dependency (recommended):
    //    Ensure you are using at least version 1.1.0 of QtJenny.
    //    If you have published it to Maven Local (./gradlew publishToMavenLocal), you can use:
    implementation("io.github.landerlyoung:jenny-compiler:SNAPSHOT-1.1.0")

    // 2- Using a manually built JAR:
    //    You can generate a full JAR with all dependencies from the compiler module.
    //    The compiled JAR should be located at:
    //        `compiler/build/libs/compiler-1.1.0-all.jar`
    //    To use it, uncomment the following line and adjust the path:
    // implementation(files("../jarFolder/compiler-1.1.0-all.jar"))

    // Required for Gradle plugin development:
    implementation(gradleApi())
}