build.gradle
38 lines
| 725 B
| text/x-groovy
|
GroovyLexer
/ common / build.gradle
|
|
r0 | plugins { | |
| id "java-library" | |||
| id "ivy-publish" | |||
| } | |||
| java { | |||
| withJavadocJar() | |||
| withSourcesJar() | |||
|
|
r1 | toolchain { | |
| languageVersion = JavaLanguageVersion.of(17) | |||
| } | |||
|
|
r0 | } | |
| dependencies { | |||
| api gradleApi() | |||
| } | |||
| task printVersion{ | |||
| doLast { | |||
|
|
r1 | println "project: $project.group:$project.name:$project.version" | |
|
|
r0 | println "jar: ${->jar.archiveFileName.get()}" | |
| } | |||
| } | |||
| publishing { | |||
| repositories { | |||
| ivy { | |||
| url "${System.properties["user.home"]}/ivy-repo" | |||
| } | |||
| } | |||
|
|
r1 | publications { | |
| ivy(IvyPublication) { | |||
| from components.java | |||
| descriptor.description { | |||
| text = providers.provider({ description }) | |||
| } | |||
| } | |||
| } | |||
|
|
r0 | } |
