build.gradle
50 lines
| 999 B
| text/x-groovy
|
GroovyLexer
/ common / build.gradle
|
|
r0 | plugins { | ||
| id "java-library" | ||||
| id "ivy-publish" | ||||
| } | ||||
| 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" | ||||
|
|
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 }) | ||||
| } | ||||
| } | ||||
| } | ||||
|
|
r26 | } | ||
