update gradle plugin/examples
[yosql.git] / yosql-tooling / yosql-tooling-gradle / build.gradle.kts
blob306947cf9f82004ed96b6f1721dd374a7c794732
1 /*
2  * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3  * directory of this distribution and at https://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4  * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5  * in the LICENSE file.
6  */
8 plugins {
9     id("java-gradle-plugin")
10     id("maven-publish")
11     id("com.gradle.plugin-publish") version "0.12.0"
12     id("wtf.metio.yosql.models.gradle")
15 java {
16     toolchain {
17         languageVersion.set(JavaLanguageVersion.of(17))
18     }
21 gradlePlugin {
22     val yoSql by plugins.creating {
23         id = "wtf.metio.yosql"
24         displayName = "YoSQL"
25         description = "Code generator that translates SQL to Java"
26         implementationClass = "${group}.YoSqlPlugin"
27     }
30 pluginBundle {
31     website = "https://yosql.projects.metio.wtf/"
32     vcsUrl = "https://github.com/metio/yosql/"
33     tags = listOf("java", "sql", "code-generator", "javapoet", "jdbc", "r2dbc")
36 dependencies {
37     implementation("wtf.metio.yosql.tooling:yosql-tooling-dagger:${version}")
38     implementation("wtf.metio.yosql.internals:yosql-internals-jdk-utils:${version}")
39     testImplementation(gradleTestKit())
42 tasks.named<Wrapper>("wrapper") {
43     distributionType = Wrapper.DistributionType.ALL