build.gradle
57 lines
| 1.3 KiB
| text/x-groovy
|
GroovyLexer
/ common / build.gradle
|
|
r0 | plugins { | ||
| id "java-library" | ||||
| id "ivy-publish" | ||||
| } | ||||
|
|
r60 | description = "Shared Gradle build utilities used by Implab plugins" | ||
|
|
r0 | java { | ||
| withJavadocJar() | ||||
| withSourcesJar() | ||||
|
|
r16 | toolchain { | ||
|
|
r21 | languageVersion = JavaLanguageVersion.of(21) | ||
|
|
r1 | } | ||
|
|
r0 | } | ||
| dependencies { | ||||
|
|
r14 | compileOnly libs.jdt.annotations | ||
|
|
r22 | api gradleApi(), | ||
| libs.bundles.jackson | ||||
|
|
r26 | |||
| testImplementation gradleTestKit() | ||||
| testImplementation "org.junit.jupiter:junit-jupiter-api:5.11.4" | ||||
| testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.11.4" | ||||
|
|
r32 | testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.11.4" | ||
|
|
r0 | } | ||
| task printVersion{ | ||||
| doLast { | ||||
|
|
r1 | println "project: $project.group:$project.name:$project.version" | ||
|
|
r0 | println "jar: ${->jar.archiveFileName.get()}" | ||
| } | ||||
| } | ||||
|
|
r26 | test { | ||
| useJUnitPlatform() | ||||
| } | ||||
|
|
r0 | publishing { | ||
| repositories { | ||||
| ivy { | ||||
| url "${System.properties["user.home"]}/ivy-repo" | ||||
| } | ||||
| } | ||||
|
|
r1 | 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" | ||||
| } | ||||
|
|
r1 | } | ||
| } | ||||
|
|
r26 | } | ||
