build.gradle
61 lines
| 1.3 KiB
| text/x-groovy
|
GroovyLexer
/ variants / build.gradle
|
|
r38 | plugins { | ||
| id "java-library" | ||||
| id "ivy-publish" | ||||
| } | ||||
|
|
r60 | description = "Variant, source-set, and outgoing artifact model plugins for Gradle builds" | ||
|
|
r38 | java { | ||
| withJavadocJar() | ||||
| withSourcesJar() | ||||
| toolchain { | ||||
| languageVersion = JavaLanguageVersion.of(21) | ||||
| } | ||||
| } | ||||
| dependencies { | ||||
| compileOnly libs.jdt.annotations | ||||
| api gradleApi(), | ||||
|
|
r60 | project(":common") | ||
|
|
r38 | |||
| testImplementation gradleTestKit() | ||||
| testImplementation "org.junit.jupiter:junit-jupiter-api:5.11.4" | ||||
| testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.11.4" | ||||
| testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.11.4" | ||||
| } | ||||
| task printVersion{ | ||||
| doLast { | ||||
| println "project: $project.group:$project.name:$project.version" | ||||
| println "jar: ${->jar.archiveFileName.get()}" | ||||
| } | ||||
| } | ||||
| test { | ||||
| useJUnitPlatform() | ||||
| } | ||||
|
|
r56 | javadoc { | ||
| exclude "**/internal/**" | ||||
| } | ||||
|
|
r38 | publishing { | ||
| repositories { | ||||
| ivy { | ||||
|
|
r62 | url = "${System.properties["user.home"]}/ivy-repo" | ||
|
|
r38 | } | ||
| } | ||||
| publications { | ||||
| ivy(IvyPublication) { | ||||
| from components.java | ||||
| descriptor.description { | ||||
| text = providers.provider({ description }) | ||||
| } | ||||
|
|
r60 | descriptor.license { | ||
| name = "BSD-2-Clause" | ||||
| url = "https://spdx.org/licenses/BSD-2-Clause.html" | ||||
| } | ||||
|
|
r38 | } | ||
| } | ||||
| } | ||||
